haml-rails 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,4 +12,8 @@ Once you've done that, any time you generate a controller or scaffold, you'll ge
12
12
 
13
13
  ### Contributors
14
14
 
15
- Haml generators originally from [rails3-generators](http://github.com/indirect/rails3-generators), and written by Paul Barry, Anuj Dutta, Louis T, and Chris Rhoden. Tests originally written by Louis T.
15
+ Haml generators originally from [rails3-generators](http://github.com/indirect/rails3-generators), and written by José Valim, André Arko, Paul Barry, Anuj Dutta, Louis T, and Chris Rhoden. Tests originally written by Louis T.
16
+
17
+ ### License
18
+
19
+ Ruby license or MIT license, take your pick.
data/haml-rails.gemspec CHANGED
@@ -14,13 +14,13 @@ Gem::Specification.new do |s|
14
14
  s.rubyforge_project = "haml-rails"
15
15
  s.required_rubygems_version = ">= 1.3.6"
16
16
 
17
- s.add_dependency "haml", "~> 3.0"
18
- s.add_dependency "activesupport", "~> 3.0"
19
- s.add_dependency "actionpack", "~> 3.0"
20
- s.add_dependency "railties", "~> 3.0"
17
+ s.add_dependency "haml", "~> 3.1"
18
+ s.add_dependency "activesupport", [">= 3.1", "< 4.1"]
19
+ s.add_dependency "actionpack", [">= 3.1", "< 4.1"]
20
+ s.add_dependency "railties", [">= 3.1", "< 4.1"]
21
21
 
22
- s.add_development_dependency "rails", "~> 3.0"
23
- s.add_development_dependency "bundler", "~> 1.0.0"
22
+ s.add_development_dependency "rails", [">= 3.1", "< 4.1"]
23
+ s.add_development_dependency "bundler", "~> 1.1"
24
24
 
25
25
  s.files = `git ls-files`.split("\n")
26
26
  s.executables = `git ls-files`.split("\n").select{|f| f =~ /^bin/}
@@ -1,5 +1,5 @@
1
1
  = form_for @<%= singular_table_name %> do |f|
2
- -if @<%= singular_table_name %>.errors.any?
2
+ - if @<%= singular_table_name %>.errors.any?
3
3
  #error_explanation
4
4
  %h2= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
5
5
  %ul
@@ -16,7 +16,7 @@
16
16
  <% end -%>
17
17
  %td= link_to 'Show', <%= singular_table_name %>
18
18
  %td= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
19
- %td= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete
19
+ %td= link_to 'Destroy', <%= singular_table_name %>, <%= key_value :method, ":delete" %>, <%= key_value :data, "{ #{key_value :confirm, "'Are you sure?'"} }" %>
20
20
 
21
21
  %br
22
22
 
@@ -1,5 +1,5 @@
1
1
  module Haml
2
2
  module Rails
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
data/test/test_helper.rb CHANGED
@@ -18,7 +18,7 @@ Rails.application.config.root = Rails.root
18
18
 
19
19
  # Call configure to load the settings from
20
20
  # Rails.application.config.generators to Rails::Generators
21
- Rails::Generators.configure!
21
+ Rails::Generators.configure! Rails.application.config.generators
22
22
 
23
23
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
24
24
 
metadata CHANGED
@@ -1,124 +1,146 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: haml-rails
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 3
9
- - 4
10
- version: 0.3.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.5
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
13
- - "Andr\xC3\xA9 Arko"
7
+ authors:
8
+ - André Arko
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-10-15 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-09-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: haml
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 3
32
- - 0
33
- version: "3.0"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: activesupport
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
40
25
  none: false
41
- requirements:
26
+ requirements:
42
27
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 7
45
- segments:
46
- - 3
47
- - 0
48
- version: "3.0"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '3.1'
38
+ - - <
39
+ - !ruby/object:Gem::Version
40
+ version: '4.1'
49
41
  type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: actionpack
53
42
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
43
+ version_requirements: !ruby/object:Gem::Requirement
55
44
  none: false
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 7
60
- segments:
61
- - 3
62
- - 0
63
- version: "3.0"
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '3.1'
49
+ - - <
50
+ - !ruby/object:Gem::Version
51
+ version: '4.1'
52
+ - !ruby/object:Gem::Dependency
53
+ name: actionpack
54
+ requirement: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '3.1'
60
+ - - <
61
+ - !ruby/object:Gem::Version
62
+ version: '4.1'
64
63
  type: :runtime
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: railties
68
64
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
65
+ version_requirements: !ruby/object:Gem::Requirement
70
66
  none: false
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 7
75
- segments:
76
- - 3
77
- - 0
78
- version: "3.0"
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '3.1'
71
+ - - <
72
+ - !ruby/object:Gem::Version
73
+ version: '4.1'
74
+ - !ruby/object:Gem::Dependency
75
+ name: railties
76
+ requirement: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '3.1'
82
+ - - <
83
+ - !ruby/object:Gem::Version
84
+ version: '4.1'
79
85
  type: :runtime
80
- version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '3.1'
93
+ - - <
94
+ - !ruby/object:Gem::Version
95
+ version: '4.1'
96
+ - !ruby/object:Gem::Dependency
82
97
  name: rails
98
+ requirement: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '3.1'
104
+ - - <
105
+ - !ruby/object:Gem::Version
106
+ version: '4.1'
107
+ type: :development
83
108
  prerelease: false
84
- requirement: &id005 !ruby/object:Gem::Requirement
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '3.1'
115
+ - - <
116
+ - !ruby/object:Gem::Version
117
+ version: '4.1'
118
+ - !ruby/object:Gem::Dependency
119
+ name: bundler
120
+ requirement: !ruby/object:Gem::Requirement
85
121
  none: false
86
- requirements:
122
+ requirements:
87
123
  - - ~>
88
- - !ruby/object:Gem::Version
89
- hash: 7
90
- segments:
91
- - 3
92
- - 0
93
- version: "3.0"
124
+ - !ruby/object:Gem::Version
125
+ version: '1.1'
94
126
  type: :development
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: bundler
98
127
  prerelease: false
99
- requirement: &id006 !ruby/object:Gem::Requirement
128
+ version_requirements: !ruby/object:Gem::Requirement
100
129
  none: false
101
- requirements:
130
+ requirements:
102
131
  - - ~>
103
- - !ruby/object:Gem::Version
104
- hash: 23
105
- segments:
106
- - 1
107
- - 0
108
- - 0
109
- version: 1.0.0
110
- type: :development
111
- version_requirements: *id006
112
- description: Haml-rails provides Haml generators for Rails 3. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah.
113
- email:
132
+ - !ruby/object:Gem::Version
133
+ version: '1.1'
134
+ description: Haml-rails provides Haml generators for Rails 3. It also enables Haml
135
+ as the templating engine for you, so you don't have to screw around in your own
136
+ application.rb when your Gemfile already clearly indicated what templating engine
137
+ you have installed. Hurrah.
138
+ email:
114
139
  - andre@arko.net
115
140
  executables: []
116
-
117
141
  extensions: []
118
-
119
142
  extra_rdoc_files: []
120
-
121
- files:
143
+ files:
122
144
  - .gitignore
123
145
  - Gemfile
124
146
  - README.md
@@ -142,41 +164,28 @@ files:
142
164
  - test/lib/generators/haml/scaffold_generator_test.rb
143
165
  - test/lib/generators/haml/testing_helper.rb
144
166
  - test/test_helper.rb
145
- has_rdoc: true
146
167
  homepage: http://github.com/indirect/haml-rails
147
168
  licenses: []
148
-
149
169
  post_install_message:
150
170
  rdoc_options: []
151
-
152
- require_paths:
171
+ require_paths:
153
172
  - lib
154
- required_ruby_version: !ruby/object:Gem::Requirement
173
+ required_ruby_version: !ruby/object:Gem::Requirement
155
174
  none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- hash: 3
160
- segments:
161
- - 0
162
- version: "0"
163
- required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
180
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- hash: 23
169
- segments:
170
- - 1
171
- - 3
172
- - 6
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
173
184
  version: 1.3.6
174
185
  requirements: []
175
-
176
186
  rubyforge_project: haml-rails
177
- rubygems_version: 1.3.7
187
+ rubygems_version: 1.8.24
178
188
  signing_key:
179
189
  specification_version: 3
180
190
  summary: let your Gemfile do the configuring
181
191
  test_files: []
182
-