somatics3-generators 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.4
data/bin/somatics CHANGED
@@ -16,6 +16,7 @@ ARGV.clear
16
16
  template = File.join(template_path,'somatics.rb')
17
17
 
18
18
  # puts "#{path} #{a} #{args.join(',')} #{template}"
19
+ puts "rails #{args.join(' ')} -m #{template}"
19
20
  system "rails #{args.join(' ')} -m #{template}"
20
21
 
21
22
  exit
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
- # puts "#{path} #{a} #{args.join(',')} #{template}"
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 => 'list', :params => params.merge({:"#{model_name}_sort" => key, :page => nil})},
31
+ :url => {:action => 'index', :params => params.merge({:"#{model_name}_sort" => key, :page => nil})},
32
32
  :update => 'content',
33
- :method => :get
33
+ :method => :get
34
34
  }
35
35
  html_options = {
36
36
  :title => "Sort by this field",
37
- :href => url_for(:action => 'list', :params => params.merge({:"#{model_name}_sort" => key, :page => nil}))
37
+ :href => url_for(:action => 'index', :params => params.merge({:"#{model_name}_sort" => key, :page => nil}))
38
38
  }
39
- link_to_remote(text + sort_asc_desc_helper(model_name,param), options, html_options)
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.link_to_remote(text,{
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
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{somatics3-generators}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benjamin Wong"]
@@ -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', :git => 'git://github.com/mislav/will_paginate.git', :branch => "rails3"
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: 27
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benjamin Wong