twilson63-nifty-generators 0.3.2 → 0.3.3

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/Manifest CHANGED
@@ -2,6 +2,7 @@ CHANGELOG
2
2
  lib/nifty_generators.rb
3
3
  LICENSE
4
4
  Manifest
5
+ nifty-generators.gemspec
5
6
  rails_generators/nifty_authentication/lib/insert_commands.rb
6
7
  rails_generators/nifty_authentication/nifty_authentication_generator.rb
7
8
  rails_generators/nifty_authentication/templates/authentication.rb
@@ -114,6 +115,9 @@ rails_generators/nifty_scaffold/templates/fixtures.yml
114
115
  rails_generators/nifty_scaffold/templates/helper.rb
115
116
  rails_generators/nifty_scaffold/templates/migration.rb
116
117
  rails_generators/nifty_scaffold/templates/model.rb
118
+ rails_generators/nifty_scaffold/templates/tests/cucumber/factories.rb
119
+ rails_generators/nifty_scaffold/templates/tests/cucumber/manage_item.feature
120
+ rails_generators/nifty_scaffold/templates/tests/cucumber/step_definitions/items_steps.rb
117
121
  rails_generators/nifty_scaffold/templates/tests/rspec/actions/create.rb
118
122
  rails_generators/nifty_scaffold/templates/tests/rspec/actions/destroy.rb
119
123
  rails_generators/nifty_scaffold/templates/tests/rspec/actions/edit.rb
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('nifty-generators', '0.3.2') do |p|
5
+ Echoe.new('nifty-generators', '0.3.3') do |p|
6
6
  p.project = "forked-niftygenerators"
7
7
  p.description = "A collection of useful generator scripts for Rails."
8
8
  p.url = "http://github.com/twilson63/nifty-generators"
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{nifty-generators}
5
- s.version = "0.3.2"
5
+ s.version = "0.3.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tom Wilson, Ryan Bates"]
9
- s.date = %q{2009-04-25}
9
+ s.date = %q{2009-04-26}
10
10
  s.description = %q{A collection of useful generator scripts for Rails.}
11
11
  s.email = %q{ryan (at) railscasts (dot) com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/nifty_generators.rb", "LICENSE", "README.rdoc", "tasks/deployment.rake", "TODO"]
@@ -1,4 +1,5 @@
1
1
  = javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"
2
2
  = javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"
3
3
  = javascript_include_tag "http://s3.amazonaws.com/jackhq.cdn/javascripts/ddsmoothmenu.js"
4
+ = javascript_include_tag "http://s3.amazonaws.com/jackhq.cdn/javascripts/jquery.form.js"
4
5
  = javascript_include_tag "application.js"
@@ -1,9 +1,7 @@
1
1
  $(document).ready( function(){
2
- //$('.rounded').corners();
3
- $('input:submit').addClass('ui-corner-all');
4
- //$('input:submit').corners();
2
+ $('.button').addClass('ui-corner-all');
5
3
  $('a.button').css('color','white');
6
- //$('a.button').corners();
4
+
7
5
  $('#navigation').addClass('ui-corner-all');
8
6
  $('#footer').addClass('ui-corner-all');
9
7
 
@@ -33,6 +33,29 @@ label {
33
33
  display : block;
34
34
  }
35
35
 
36
+
37
+ a.button, .button {
38
+ outline: none;
39
+ border: none;
40
+ text-decoration: none;
41
+ cursor: pointer;
42
+ white-space: nowrap;
43
+ vertical-align: middle; /* or top */
44
+ display: -moz-inline-box;
45
+ display: inline-block;
46
+ overflow: visible; /* IE6 form button fix */
47
+ }
48
+
49
+ a.button, .button {
50
+ color: #fff;
51
+ background-color: #2255AA;
52
+ padding: 5px 7px;
53
+ }
54
+ .button:hover {
55
+ background-color: #5186D7;
56
+ }
57
+
58
+
36
59
  .post-content-widget {
37
60
  margin-top:20px;
38
61
  }
@@ -3,9 +3,9 @@
3
3
  %td= h <%= singular_name %>.<%= attribute.name %>
4
4
  <%- end -%>
5
5
  <%- if action? :edit -%>
6
- %td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>), :class => "<%= options[:ajaxify] ? 'dialog_link' : '' %>"
6
+ %td= link_to 'Edit', edit_<%= singular_name %>_path(@<%= parent_singular_name %>, <%= singular_name %>), :class => "<%= options[:ajaxify] ? 'dialog_link' : '' %>"
7
7
  <%- end -%>
8
8
  <%- if action? :destroy -%>
9
- %td= link_to 'Remove', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
9
+ %td= link_to 'Remove', <%= singular_name %>_path(@<%= parent_singular_name %>, <%= singular_name %>), :confirm => 'Are you sure?', :method => :delete
10
10
  <%- end -%>
11
11
 
@@ -8,6 +8,6 @@
8
8
  = render :partial => "<%= singular_name %>", :collection => <%= plural_name %>
9
9
 
10
10
  <%- if actions? :new -%>
11
- %p= link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path, :class => "button <%= options[:ajaxify] ? 'dialog_link' : '' %>"
11
+ %p= link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path(@<%= parent_singular_name %>), :class => "button <%= options[:ajaxify] ? 'dialog_link' : '' %>"
12
12
 
13
13
  <%- end -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilson63-nifty-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wilson, Ryan Bates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-25 00:00:00 -07:00
12
+ date: 2009-04-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15