somatics3-generators 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/somatics +1 -0
- data/bin/somatify +2 -2
- data/lib/generators/somatics/install/templates/helper_admin.rb +4 -4
- data/lib/generators/somatics/install/templates/lib/somatic_link_renderer.rb +2 -2
- data/somatics3-generators.gemspec +1 -1
- data/templates/somatics.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/bin/somatics
CHANGED
data/bin/somatify
CHANGED
@@ -12,10 +12,10 @@ args = ARGV.dup
|
|
12
12
|
ARGV.clear
|
13
13
|
path = args.shift.strip rescue '.'
|
14
14
|
|
15
|
-
a = File.expand_path(path)
|
15
|
+
# a = File.expand_path(path)
|
16
16
|
template = File.join(template_path,'somatics.rb')
|
17
17
|
|
18
|
-
|
18
|
+
puts "rake rails:template LOCATION=#{template}"
|
19
19
|
system "rake rails:template LOCATION=#{template}"
|
20
20
|
|
21
21
|
exit
|
@@ -28,15 +28,15 @@ module Admin::AdminHelper
|
|
28
28
|
key = param
|
29
29
|
key += "_reverse" if params[:"#{model_name}_sort"] == param
|
30
30
|
options = {
|
31
|
-
:url => {:action => '
|
31
|
+
:url => {:action => 'index', :params => params.merge({:"#{model_name}_sort" => key, :page => nil})},
|
32
32
|
:update => 'content',
|
33
|
-
|
33
|
+
:method => :get
|
34
34
|
}
|
35
35
|
html_options = {
|
36
36
|
:title => "Sort by this field",
|
37
|
-
:href => url_for(:action => '
|
37
|
+
:href => url_for(:action => 'index', :params => params.merge({:"#{model_name}_sort" => key, :page => nil}))
|
38
38
|
}
|
39
|
-
|
39
|
+
link_to(text + sort_asc_desc_helper(model_name,param), options, html_options,:remote=>true)
|
40
40
|
end
|
41
41
|
|
42
42
|
def operators_for_select(filter_type)
|
@@ -24,13 +24,13 @@ protected
|
|
24
24
|
def page_link(page, text, attributes = {})
|
25
25
|
# @template.content_tag(:li, @template.link_to(text, url_for(page)), attributes)
|
26
26
|
# @template.link_to(text, url_for(page), attributes)
|
27
|
-
@template.
|
27
|
+
@template.link_to(text,{
|
28
28
|
:url => url_for(page),
|
29
29
|
:update => 'content',
|
30
30
|
:method => :get
|
31
31
|
},attributes.merge({
|
32
32
|
:href => url_for(page)
|
33
|
-
})
|
33
|
+
}),:remote=>true
|
34
34
|
)
|
35
35
|
end
|
36
36
|
|
data/templates/somatics.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
# repo_entered = ask 'Type your repository for the project (SVN), followed by [ENTER]:'
|
6
6
|
|
7
|
-
gem 'will_paginate', :
|
7
|
+
gem 'will_paginate', :version => "~> 3.0.pre2"
|
8
8
|
gem 'prawn', :version => '0.6.3'
|
9
9
|
gem 'somatics3-generators'
|
10
10
|
gem 'json'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: somatics3-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benjamin Wong
|