haml-rails 2.1.0 → 3.1.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +55 -32
- data/CHANGELOG.md +25 -0
- data/Gemfile +21 -0
- data/README.md +8 -3
- data/haml-rails.gemspec +4 -3
- data/lib/generators/haml/authentication/authentication_generator.rb +17 -0
- data/lib/generators/haml/authentication/templates/app/views/passwords/edit.html.haml +10 -0
- data/lib/generators/haml/authentication/templates/app/views/passwords/new.html.haml +8 -0
- data/lib/generators/haml/authentication/templates/app/views/sessions/new.html.haml +12 -0
- data/lib/generators/haml/controller/controller_generator.rb +2 -0
- data/lib/generators/haml/mailer/mailer_generator.rb +2 -0
- data/lib/generators/haml/scaffold/scaffold_generator.rb +25 -10
- data/lib/generators/haml/scaffold/templates/5_1/_form.html.haml +26 -0
- data/lib/generators/haml/scaffold/templates/5_1/edit.html.haml +7 -0
- data/lib/generators/haml/scaffold/templates/5_1/index.html.haml +25 -0
- data/lib/generators/haml/scaffold/templates/5_1/new.html.haml +5 -0
- data/lib/generators/haml/scaffold/templates/5_1/show.html.haml +11 -0
- data/lib/generators/haml/scaffold/templates/5_2/_form.html.haml +26 -0
- data/lib/generators/haml/scaffold/templates/5_2/edit.html.haml +7 -0
- data/lib/generators/haml/scaffold/templates/5_2/index.html.haml +25 -0
- data/lib/generators/haml/scaffold/templates/5_2/new.html.haml +5 -0
- data/lib/generators/haml/scaffold/templates/5_2/show.html.haml +11 -0
- data/lib/generators/haml/scaffold/templates/6_0/_form.html.haml +29 -0
- data/lib/generators/haml/scaffold/templates/6_0/edit.html.haml +7 -0
- data/lib/generators/haml/scaffold/templates/6_0/index.html.haml +25 -0
- data/lib/generators/haml/scaffold/templates/6_0/new.html.haml +5 -0
- data/lib/generators/haml/scaffold/templates/6_0/show.html.haml +18 -0
- data/lib/generators/haml/scaffold/templates/6_1/_form.html.haml +29 -0
- data/lib/generators/haml/scaffold/templates/6_1/edit.html.haml +7 -0
- data/lib/generators/haml/scaffold/templates/6_1/index.html.haml +25 -0
- data/lib/generators/haml/scaffold/templates/6_1/new.html.haml +5 -0
- data/lib/generators/haml/scaffold/templates/6_1/show.html.haml +18 -0
- data/lib/generators/haml/scaffold/templates/7_0/_form.html.haml +29 -0
- data/lib/generators/haml/scaffold/templates/7_0/edit.html.haml +10 -0
- data/lib/generators/haml/scaffold/templates/7_0/index.html.haml +11 -0
- data/lib/generators/haml/scaffold/templates/7_0/new.html.haml +8 -0
- data/lib/generators/haml/scaffold/templates/7_0/partial.html.haml +14 -0
- data/lib/generators/haml/scaffold/templates/7_0/show.html.haml +10 -0
- data/lib/generators/haml/scaffold/templates/7_1 +1 -0
- data/lib/generators/haml/scaffold/templates/7_2/_form.html.haml +29 -0
- data/lib/generators/haml/scaffold/templates/7_2/edit.html.haml +12 -0
- data/lib/generators/haml/scaffold/templates/7_2/index.html.haml +13 -0
- data/lib/generators/haml/scaffold/templates/7_2/new.html.haml +10 -0
- data/lib/generators/haml/scaffold/templates/7_2/partial.html.haml +14 -0
- data/lib/generators/haml/scaffold/templates/7_2/show.html.haml +10 -0
- data/lib/generators/haml/scaffold/templates/8_0 +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/_form.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/edit.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/index.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/new.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/8_1/partial.html.haml +14 -0
- data/lib/generators/haml/scaffold/templates/8_1/show.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/_form.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/edit.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/index.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/new.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/partial.html.haml +1 -0
- data/lib/generators/haml/scaffold/templates/show.html.haml +1 -0
- data/lib/haml-rails/version.rb +3 -1
- data/lib/haml-rails.rb +12 -1
- data/lib/rails/generators/haml/application_layout/application_layout_generator.rb +8 -3
- data/test/fixtures/routes.rb +2 -0
- data/test/lib/generators/haml/controller_generator_test.rb +2 -0
- data/test/lib/generators/haml/mailer_generator_test.rb +2 -0
- data/test/lib/generators/haml/scaffold_generator_test.rb +2 -0
- data/test/lib/generators/haml/scaffold_template_contents_test.rb +76 -0
- data/test/lib/haml-rails/dependency_tracker_test.rb +60 -0
- data/test/test_helper.rb +30 -7
- metadata +224 -183
- data/Appraisals +0 -19
- data/gemfiles/rails_5_1.gemfile +0 -8
- data/gemfiles/rails_5_2.gemfile +0 -8
- data/gemfiles/rails_6_0.gemfile +0 -8
- data/gemfiles/rails_6_1.gemfile +0 -8
- data/gemfiles/rails_7_0.gemfile +0 -8
- data/lib/generators/haml/scaffold/templates/_form.html.haml +0 -15
- data/lib/generators/haml/scaffold/templates/edit.html.haml +0 -7
- data/lib/generators/haml/scaffold/templates/index.html.haml +0 -25
- data/lib/generators/haml/scaffold/templates/new.html.haml +0 -5
- data/lib/generators/haml/scaffold/templates/show.html.haml +0 -11
metadata
CHANGED
|
@@ -1,207 +1,248 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: haml-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- André Arko
|
|
8
|
-
autorequire:
|
|
7
|
+
- André Arko
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- !ruby/object:Gem::
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- !ruby/object:Gem::
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
you have installed. Hurrah.
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: haml
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 4.0.6
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 4.0.6
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: activesupport
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
-
|
|
33
|
+
- ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: "5.1"
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "5.1"
|
|
44
|
+
- !ruby/object:Gem::Dependency
|
|
45
|
+
name: actionpack
|
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
-
|
|
49
|
+
- ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: "5.1"
|
|
52
|
+
type: :runtime
|
|
53
|
+
prerelease: false
|
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
-
|
|
57
|
+
- ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: "5.1"
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: railties
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
-
|
|
65
|
+
- ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: "5.1"
|
|
68
|
+
type: :runtime
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
-
|
|
73
|
+
- ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: "5.1"
|
|
76
|
+
- !ruby/object:Gem::Dependency
|
|
77
|
+
name: html2haml
|
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
-
|
|
81
|
+
- ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: 1.0.1
|
|
84
|
+
type: :development
|
|
85
|
+
prerelease: false
|
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
-
|
|
89
|
+
- ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: 1.0.1
|
|
92
|
+
- !ruby/object:Gem::Dependency
|
|
93
|
+
name: rails
|
|
94
|
+
requirement: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
-
|
|
97
|
+
- ">="
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: "5.1"
|
|
100
|
+
type: :development
|
|
101
|
+
prerelease: false
|
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
103
|
+
requirements:
|
|
104
|
+
-
|
|
105
|
+
- ">="
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: "5.1"
|
|
108
|
+
- !ruby/object:Gem::Dependency
|
|
109
|
+
name: bundler
|
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
-
|
|
113
|
+
- ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: "0"
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
-
|
|
121
|
+
- ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: "0"
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: rake
|
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
-
|
|
129
|
+
- ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: "0"
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
-
|
|
137
|
+
- ">="
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: "0"
|
|
140
|
+
description: "Haml-rails provides Haml generators for Rails 5.1 and above. 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."
|
|
143
141
|
email:
|
|
144
|
-
- andre@arko.net
|
|
142
|
+
- andre@arko.net
|
|
145
143
|
executables: []
|
|
146
144
|
extensions: []
|
|
147
145
|
extra_rdoc_files: []
|
|
148
146
|
files:
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
- Gemfile
|
|
153
|
-
- LICENSE
|
|
154
|
-
- README.md
|
|
155
|
-
- Rakefile
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
- haml
|
|
162
|
-
- lib/generators/haml/controller/
|
|
163
|
-
- lib/generators/haml/
|
|
164
|
-
- lib/generators/haml/mailer/
|
|
165
|
-
- lib/generators/haml/mailer/templates/layout.
|
|
166
|
-
- lib/generators/haml/mailer/templates/
|
|
167
|
-
- lib/generators/haml/mailer/templates/view.
|
|
168
|
-
- lib/generators/haml/
|
|
169
|
-
- lib/generators/haml/scaffold/
|
|
170
|
-
- lib/generators/haml/scaffold/templates/
|
|
171
|
-
- lib/generators/haml/scaffold/templates/
|
|
172
|
-
- lib/generators/haml/scaffold/templates/
|
|
173
|
-
- lib/generators/haml/scaffold/templates/
|
|
174
|
-
- lib/generators/haml/scaffold/templates/
|
|
175
|
-
- lib/haml
|
|
176
|
-
- lib/haml
|
|
177
|
-
- lib/
|
|
178
|
-
- lib/
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
|
|
147
|
+
- .github/workflows/ruby.yml
|
|
148
|
+
- .gitignore
|
|
149
|
+
- CHANGELOG.md
|
|
150
|
+
- Gemfile
|
|
151
|
+
- LICENSE
|
|
152
|
+
- README.md
|
|
153
|
+
- Rakefile
|
|
154
|
+
- haml-rails.gemspec
|
|
155
|
+
- lib/generators/haml/authentication/authentication_generator.rb
|
|
156
|
+
- lib/generators/haml/authentication/templates/app/views/passwords/edit.html.haml
|
|
157
|
+
- lib/generators/haml/authentication/templates/app/views/passwords/new.html.haml
|
|
158
|
+
- lib/generators/haml/authentication/templates/app/views/sessions/new.html.haml
|
|
159
|
+
- lib/generators/haml/controller/controller_generator.rb
|
|
160
|
+
- lib/generators/haml/controller/templates/view.html.haml
|
|
161
|
+
- lib/generators/haml/mailer/mailer_generator.rb
|
|
162
|
+
- lib/generators/haml/mailer/templates/layout.html.haml
|
|
163
|
+
- lib/generators/haml/mailer/templates/layout.text.haml
|
|
164
|
+
- lib/generators/haml/mailer/templates/view.html.haml
|
|
165
|
+
- lib/generators/haml/mailer/templates/view.text.haml
|
|
166
|
+
- lib/generators/haml/scaffold/scaffold_generator.rb
|
|
167
|
+
- lib/generators/haml/scaffold/templates/5_1/_form.html.haml
|
|
168
|
+
- lib/generators/haml/scaffold/templates/5_1/edit.html.haml
|
|
169
|
+
- lib/generators/haml/scaffold/templates/5_1/index.html.haml
|
|
170
|
+
- lib/generators/haml/scaffold/templates/5_1/new.html.haml
|
|
171
|
+
- lib/generators/haml/scaffold/templates/5_1/show.html.haml
|
|
172
|
+
- lib/generators/haml/scaffold/templates/5_2/_form.html.haml
|
|
173
|
+
- lib/generators/haml/scaffold/templates/5_2/edit.html.haml
|
|
174
|
+
- lib/generators/haml/scaffold/templates/5_2/index.html.haml
|
|
175
|
+
- lib/generators/haml/scaffold/templates/5_2/new.html.haml
|
|
176
|
+
- lib/generators/haml/scaffold/templates/5_2/show.html.haml
|
|
177
|
+
- lib/generators/haml/scaffold/templates/6_0/_form.html.haml
|
|
178
|
+
- lib/generators/haml/scaffold/templates/6_0/edit.html.haml
|
|
179
|
+
- lib/generators/haml/scaffold/templates/6_0/index.html.haml
|
|
180
|
+
- lib/generators/haml/scaffold/templates/6_0/new.html.haml
|
|
181
|
+
- lib/generators/haml/scaffold/templates/6_0/show.html.haml
|
|
182
|
+
- lib/generators/haml/scaffold/templates/6_1/_form.html.haml
|
|
183
|
+
- lib/generators/haml/scaffold/templates/6_1/edit.html.haml
|
|
184
|
+
- lib/generators/haml/scaffold/templates/6_1/index.html.haml
|
|
185
|
+
- lib/generators/haml/scaffold/templates/6_1/new.html.haml
|
|
186
|
+
- lib/generators/haml/scaffold/templates/6_1/show.html.haml
|
|
187
|
+
- lib/generators/haml/scaffold/templates/7_0/_form.html.haml
|
|
188
|
+
- lib/generators/haml/scaffold/templates/7_0/edit.html.haml
|
|
189
|
+
- lib/generators/haml/scaffold/templates/7_0/index.html.haml
|
|
190
|
+
- lib/generators/haml/scaffold/templates/7_0/new.html.haml
|
|
191
|
+
- lib/generators/haml/scaffold/templates/7_0/partial.html.haml
|
|
192
|
+
- lib/generators/haml/scaffold/templates/7_0/show.html.haml
|
|
193
|
+
- lib/generators/haml/scaffold/templates/7_1
|
|
194
|
+
- lib/generators/haml/scaffold/templates/7_2/_form.html.haml
|
|
195
|
+
- lib/generators/haml/scaffold/templates/7_2/edit.html.haml
|
|
196
|
+
- lib/generators/haml/scaffold/templates/7_2/index.html.haml
|
|
197
|
+
- lib/generators/haml/scaffold/templates/7_2/new.html.haml
|
|
198
|
+
- lib/generators/haml/scaffold/templates/7_2/partial.html.haml
|
|
199
|
+
- lib/generators/haml/scaffold/templates/7_2/show.html.haml
|
|
200
|
+
- lib/generators/haml/scaffold/templates/8_0
|
|
201
|
+
- lib/generators/haml/scaffold/templates/8_1/_form.html.haml
|
|
202
|
+
- lib/generators/haml/scaffold/templates/8_1/edit.html.haml
|
|
203
|
+
- lib/generators/haml/scaffold/templates/8_1/index.html.haml
|
|
204
|
+
- lib/generators/haml/scaffold/templates/8_1/new.html.haml
|
|
205
|
+
- lib/generators/haml/scaffold/templates/8_1/partial.html.haml
|
|
206
|
+
- lib/generators/haml/scaffold/templates/8_1/show.html.haml
|
|
207
|
+
- lib/generators/haml/scaffold/templates/_form.html.haml
|
|
208
|
+
- lib/generators/haml/scaffold/templates/edit.html.haml
|
|
209
|
+
- lib/generators/haml/scaffold/templates/index.html.haml
|
|
210
|
+
- lib/generators/haml/scaffold/templates/new.html.haml
|
|
211
|
+
- lib/generators/haml/scaffold/templates/partial.html.haml
|
|
212
|
+
- lib/generators/haml/scaffold/templates/show.html.haml
|
|
213
|
+
- lib/haml-rails.rb
|
|
214
|
+
- lib/haml-rails/version.rb
|
|
215
|
+
- lib/rails/generators/haml/application_layout/application_layout_generator.rb
|
|
216
|
+
- lib/tasks/erb2haml.rake
|
|
217
|
+
- test/fixtures/routes.rb
|
|
218
|
+
- test/lib/generators/haml/controller_generator_test.rb
|
|
219
|
+
- test/lib/generators/haml/mailer_generator_test.rb
|
|
220
|
+
- test/lib/generators/haml/scaffold_generator_test.rb
|
|
221
|
+
- test/lib/generators/haml/scaffold_template_contents_test.rb
|
|
222
|
+
- test/lib/haml-rails/dependency_tracker_test.rb
|
|
223
|
+
- test/test_helper.rb
|
|
224
|
+
homepage: "https://github.com/haml/haml-rails"
|
|
185
225
|
licenses:
|
|
186
|
-
- MIT
|
|
187
|
-
metadata:
|
|
188
|
-
|
|
226
|
+
- MIT
|
|
227
|
+
metadata:
|
|
228
|
+
rubygems_mfa_required: "true"
|
|
189
229
|
rdoc_options: []
|
|
190
230
|
require_paths:
|
|
191
|
-
- lib
|
|
231
|
+
- lib
|
|
192
232
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
233
|
requirements:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
234
|
+
-
|
|
235
|
+
- ">="
|
|
236
|
+
- !ruby/object:Gem::Version
|
|
237
|
+
version: 2.3.0
|
|
197
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
239
|
requirements:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
240
|
+
-
|
|
241
|
+
- ">="
|
|
242
|
+
- !ruby/object:Gem::Version
|
|
243
|
+
version: 2.0.0
|
|
202
244
|
requirements: []
|
|
203
|
-
rubygems_version:
|
|
204
|
-
signing_key:
|
|
245
|
+
rubygems_version: 4.1.0.dev
|
|
205
246
|
specification_version: 4
|
|
206
247
|
summary: let your Gemfile do the configuring
|
|
207
248
|
test_files: []
|
data/Appraisals
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
appraise "rails_5_1" do
|
|
2
|
-
gem "rails", "~> 5.1.0"
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
appraise "rails_5_2" do
|
|
6
|
-
gem "rails", "~> 5.2.0"
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
appraise "rails_6_0" do
|
|
10
|
-
gem "rails", "~> 6.0.0"
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
appraise "rails_6_1" do
|
|
14
|
-
gem "rails", "~> 6.1.0"
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
appraise "rails_7_0" do
|
|
18
|
-
gem "rails", "~> 7.0.0"
|
|
19
|
-
end
|
data/gemfiles/rails_5_1.gemfile
DELETED
data/gemfiles/rails_5_2.gemfile
DELETED
data/gemfiles/rails_6_0.gemfile
DELETED
data/gemfiles/rails_6_1.gemfile
DELETED
data/gemfiles/rails_7_0.gemfile
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
= form_for @<%= singular_table_name %> do |f|
|
|
2
|
-
- if @<%= singular_table_name %>.errors.any?
|
|
3
|
-
#error_explanation
|
|
4
|
-
%h2= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
|
|
5
|
-
%ul
|
|
6
|
-
- @<%= singular_table_name %>.errors.full_messages.each do |message|
|
|
7
|
-
%li= message
|
|
8
|
-
|
|
9
|
-
<% for attribute in attributes -%>
|
|
10
|
-
.field
|
|
11
|
-
= f.label :<%= attribute.name %>
|
|
12
|
-
= f.<%= attribute.field_type %> :<%= attribute.name %>
|
|
13
|
-
<% end -%>
|
|
14
|
-
.actions
|
|
15
|
-
= f.submit 'Save'
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
%h1 Listing <%= plural_table_name %>
|
|
2
|
-
|
|
3
|
-
%table
|
|
4
|
-
%thead
|
|
5
|
-
%tr
|
|
6
|
-
<% for attribute in attributes -%>
|
|
7
|
-
%th <%= attribute.human_name %>
|
|
8
|
-
<% end -%>
|
|
9
|
-
%th
|
|
10
|
-
%th
|
|
11
|
-
%th
|
|
12
|
-
|
|
13
|
-
%tbody
|
|
14
|
-
- @<%= plural_table_name %>.each do |<%= singular_table_name %>|
|
|
15
|
-
%tr
|
|
16
|
-
<% for attribute in attributes -%>
|
|
17
|
-
%td= <%= singular_table_name %>.<%= attribute.name %>
|
|
18
|
-
<% end -%>
|
|
19
|
-
%td= link_to 'Show', <%= singular_table_name %>
|
|
20
|
-
%td= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
|
|
21
|
-
%td= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' }
|
|
22
|
-
|
|
23
|
-
%br
|
|
24
|
-
|
|
25
|
-
= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
%p#notice= notice
|
|
2
|
-
|
|
3
|
-
<% for attribute in attributes -%>
|
|
4
|
-
%p
|
|
5
|
-
%b <%= attribute.human_name %>:
|
|
6
|
-
= @<%= singular_table_name %>.<%= attribute.name %>
|
|
7
|
-
<% end -%>
|
|
8
|
-
|
|
9
|
-
= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
|
|
10
|
-
\|
|
|
11
|
-
= link_to 'Back', <%= index_helper %>_path
|