hot-glue 0.2.3 → 0.2.9E

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -1
  3. data/.travis.yml +15 -0
  4. data/Gemfile +8 -2
  5. data/Gemfile.lock +35 -24
  6. data/README.md +307 -85
  7. data/Rakefile +34 -24
  8. data/app/helpers/hot_glue/controller_helper.rb +6 -4
  9. data/app/helpers/hot_glue_helper.rb +4 -0
  10. data/app/views/layouts/_flash_notices.erb +12 -0
  11. data/lib/generators/hot_glue/install_generator.rb +55 -0
  12. data/lib/generators/hot_glue/markup_templates/erb.rb +51 -8
  13. data/lib/generators/hot_glue/markup_templates/haml.rb +2 -2
  14. data/lib/generators/hot_glue/scaffold_generator.rb +87 -35
  15. data/lib/generators/hot_glue/templates/capybara_login.rb +8 -0
  16. data/lib/generators/hot_glue/templates/confirmable.js +14 -0
  17. data/lib/generators/hot_glue/templates/controller.rb.erb +18 -22
  18. data/lib/generators/hot_glue/templates/erb/_line.erb +1 -1
  19. data/lib/generators/hot_glue/templates/erb/_list.erb +10 -2
  20. data/lib/generators/hot_glue/templates/erb/_show.erb +18 -2
  21. data/lib/generators/hot_glue/templates/erb/create.turbo_stream.erb +3 -3
  22. data/lib/generators/hot_glue/templates/erb/destroy.turbo_stream.erb +1 -1
  23. data/lib/generators/hot_glue/templates/erb/edit.erb +3 -13
  24. data/lib/generators/hot_glue/templates/erb/index.erb +1 -2
  25. data/lib/generators/hot_glue/templates/erb/update.turbo_stream.erb +5 -2
  26. data/lib/generators/hot_glue/templates/haml/_line.haml +1 -1
  27. data/lib/generators/hot_glue/templates/haml/_list.haml +5 -1
  28. data/lib/generators/hot_glue/templates/haml/create.turbo_stream.haml +3 -3
  29. data/lib/generators/hot_glue/templates/haml/destroy.turbo_stream.haml +1 -1
  30. data/lib/generators/hot_glue/templates/haml/edit.haml +0 -2
  31. data/lib/generators/hot_glue/templates/haml/index.haml +1 -2
  32. data/lib/generators/hot_glue/templates/system_spec.rb.erb +146 -47
  33. data/lib/hot-glue.rb +1 -2
  34. data/lib/hotglue/version.rb +1 -1
  35. metadata +23 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a29f1b4b001de5e14dbfc1ce046aae144d53f81eb5efecb05c88a69cad06b09
4
- data.tar.gz: e4efb4c1d9d87cda11f835750475b6cfc86ea9daa4c25ce5cc08eebca1968d97
3
+ metadata.gz: 694eeeb9fd33b795d9f231788f078b48de4417ab38d5bd8194da97e214d0eb49
4
+ data.tar.gz: 1cea85144279962b16695b36b22d7e523333343e361a4240932ef34dd8468a80
5
5
  SHA512:
6
- metadata.gz: 1b2b2f354390c5d2d0cef4fbd87dfee63de72b69112efc4e1c24c23037ca96f899d077b8876f81a6b8347787d3b997b1b5a7d08608c3039640003398c4974071
7
- data.tar.gz: f933f8f06deff1d2f80632ed4b2e4d9ed5ff4d70246c8c99562a15b13ece0a75b3aa9fa86e27935de4555744ee6039183d960debd89eb9bc82f6f2937ab99730
6
+ metadata.gz: 26fcba271d8af01f7eac6a86597eab276991ea9a4510f3f1f41cec0898e9a8162f82c76993d090e3383f037951eb495b0f577feb44900d7342552ffba616fd1d
7
+ data.tar.gz: c286a2b3ce6dd43b598ffec01266c963420cbacf2af68abc3609cd99169ba4fc0eca3944cd8dc4c55af90691f2a572a9d1113c61a50c00ff5b54ae6ba53d201f
data/.github/FUNDING.yml CHANGED
@@ -1,2 +1,2 @@
1
1
  github: [jasonfb]
2
- custom: ["https://www.instagram.com/jfbcodes/"]
2
+ custom: ["https://heliosdev.shop?utm_source=gh_hot_glue_funding_link"]
data/.travis.yml ADDED
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+
3
+ before_install:
4
+ - gem update --system
5
+
6
+
7
+ branches:
8
+ only:
9
+ - main
10
+
11
+
12
+ script: "rake spec"
13
+
14
+ rvm:
15
+ - 2.7.2
data/Gemfile CHANGED
@@ -3,8 +3,14 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
4
  gemspec
5
5
 
6
+ # not required for your app
6
7
  gem 'sqlite3'
7
8
  gem 'byebug'
8
-
9
9
  gem 'rails', '6.1'
10
- gem 'devise', require: true
10
+ gem 'devise', require: true
11
+
12
+
13
+ # for testing
14
+ gem "rails-controller-testing", group: [:test]
15
+ gem "database_cleaner", group: [:test]
16
+ gem "rspec-rails", group: [:test]
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hot-glue (0.2.2)
4
+ hot-glue (0.2.7)
5
5
  ffaker (~> 2.16)
6
- haml-rails (~> 2.0)
7
6
  kaminari (~> 1.2)
8
7
  rails (> 5.1, <= 7.0.0)
9
8
  sass-rails
@@ -76,32 +75,24 @@ GEM
76
75
  byebug (11.1.3)
77
76
  concurrent-ruby (1.1.9)
78
77
  crass (1.0.6)
78
+ database_cleaner (2.0.1)
79
+ database_cleaner-active_record (~> 2.0.0)
80
+ database_cleaner-active_record (2.0.1)
81
+ activerecord (>= 5.a)
82
+ database_cleaner-core (~> 2.0.0)
83
+ database_cleaner-core (2.0.1)
79
84
  devise (4.8.0)
80
85
  bcrypt (~> 3.0)
81
86
  orm_adapter (~> 0.1)
82
87
  railties (>= 4.1.0)
83
88
  responders
84
89
  warden (~> 1.2.3)
90
+ diff-lcs (1.4.4)
85
91
  erubi (1.10.0)
86
- erubis (2.7.0)
87
- ffaker (2.19.0)
92
+ ffaker (2.20.0)
88
93
  ffi (1.15.4)
89
94
  globalid (0.4.2)
90
95
  activesupport (>= 4.2.0)
91
- haml (5.2.2)
92
- temple (>= 0.8.0)
93
- tilt
94
- haml-rails (2.0.1)
95
- actionpack (>= 5.1)
96
- activesupport (>= 5.1)
97
- haml (>= 4.0.6, < 6.0)
98
- html2haml (>= 1.0.1)
99
- railties (>= 5.1)
100
- html2haml (2.2.0)
101
- erubis (~> 2.7.0)
102
- haml (>= 4.0, < 6)
103
- nokogiri (>= 1.6.0)
104
- ruby_parser (~> 3.5)
105
96
  i18n (1.8.10)
106
97
  concurrent-ruby (~> 1.0)
107
98
  kaminari (1.2.1)
@@ -154,6 +145,10 @@ GEM
154
145
  bundler (>= 1.15.0)
155
146
  railties (= 6.1.0)
156
147
  sprockets-rails (>= 2.0.0)
148
+ rails-controller-testing (1.0.5)
149
+ actionpack (>= 5.0.1.rc1)
150
+ actionview (>= 5.0.1.rc1)
151
+ activesupport (>= 5.0.1.rc1)
157
152
  rails-dom-testing (2.0.3)
158
153
  activesupport (>= 4.2.0)
159
154
  nokogiri (>= 1.6)
@@ -169,8 +164,23 @@ GEM
169
164
  responders (3.0.1)
170
165
  actionpack (>= 5.0)
171
166
  railties (>= 5.0)
172
- ruby_parser (3.17.0)
173
- sexp_processor (~> 4.15, >= 4.15.1)
167
+ rspec-core (3.10.1)
168
+ rspec-support (~> 3.10.0)
169
+ rspec-expectations (3.10.1)
170
+ diff-lcs (>= 1.2.0, < 2.0)
171
+ rspec-support (~> 3.10.0)
172
+ rspec-mocks (3.10.2)
173
+ diff-lcs (>= 1.2.0, < 2.0)
174
+ rspec-support (~> 3.10.0)
175
+ rspec-rails (5.0.2)
176
+ actionpack (>= 5.2)
177
+ activesupport (>= 5.2)
178
+ railties (>= 5.2)
179
+ rspec-core (~> 3.10)
180
+ rspec-expectations (~> 3.10)
181
+ rspec-mocks (~> 3.10)
182
+ rspec-support (~> 3.10)
183
+ rspec-support (3.10.2)
174
184
  sass-rails (6.0.0)
175
185
  sassc-rails (~> 2.1, >= 2.1.1)
176
186
  sassc (2.4.0)
@@ -181,7 +191,6 @@ GEM
181
191
  sprockets (> 3.0)
182
192
  sprockets-rails
183
193
  tilt
184
- sexp_processor (4.15.3)
185
194
  sprockets (4.0.2)
186
195
  concurrent-ruby (~> 1.0)
187
196
  rack (> 1, < 3)
@@ -190,10 +199,9 @@ GEM
190
199
  activesupport (>= 4.0)
191
200
  sprockets (>= 3.0.0)
192
201
  sqlite3 (1.4.2)
193
- temple (0.8.2)
194
202
  thor (1.1.0)
195
203
  tilt (2.0.10)
196
- turbo-rails (0.7.11)
204
+ turbo-rails (0.8.1)
197
205
  rails (>= 6.0.0)
198
206
  tzinfo (2.0.4)
199
207
  concurrent-ruby (~> 1.0)
@@ -210,10 +218,13 @@ PLATFORMS
210
218
 
211
219
  DEPENDENCIES
212
220
  byebug
221
+ database_cleaner
213
222
  devise
214
223
  hot-glue!
215
224
  rails (= 6.1)
225
+ rails-controller-testing
226
+ rspec-rails
216
227
  sqlite3
217
228
 
218
229
  BUNDLED WITH
219
- 2.2.19
230
+ 2.1.4