hot-glue 0.4.6 → 0.4.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +71 -0
  3. data/.github/FUNDING.yml +2 -2
  4. data/.gitignore +4 -1
  5. data/Gemfile +5 -1
  6. data/Gemfile.lock +16 -16
  7. data/README.md +333 -314
  8. data/README2.md +79 -0
  9. data/config/database.yml +8 -83
  10. data/db/schema.rb +1 -0
  11. data/lib/generators/hot_glue/install_generator.rb +0 -1
  12. data/lib/generators/hot_glue/layout/builder.rb +51 -33
  13. data/lib/generators/hot_glue/markup_templates/erb.rb +97 -88
  14. data/lib/generators/hot_glue/scaffold_generator.rb +259 -95
  15. data/lib/generators/hot_glue/templates/controller.rb.erb +51 -47
  16. data/lib/generators/hot_glue/templates/erb/_form.erb +3 -2
  17. data/lib/generators/hot_glue/templates/erb/_line.erb +1 -1
  18. data/lib/generators/hot_glue/templates/erb/_list.erb +19 -12
  19. data/lib/generators/hot_glue/templates/erb/_new_button.erb +1 -1
  20. data/lib/generators/hot_glue/templates/erb/_new_form.erb +4 -3
  21. data/lib/generators/hot_glue/templates/erb/_show.erb +10 -6
  22. data/lib/generators/hot_glue/templates/erb/create.turbo_stream.erb +4 -4
  23. data/lib/generators/hot_glue/templates/erb/destroy.turbo_stream.erb +2 -2
  24. data/lib/generators/hot_glue/templates/erb/edit.erb +2 -2
  25. data/lib/generators/hot_glue/templates/erb/index.erb +1 -1
  26. data/lib/generators/hot_glue/templates/erb/new.erb +1 -1
  27. data/lib/generators/hot_glue/templates/erb/update.turbo_stream.erb +2 -2
  28. data/lib/hotglue/version.rb +3 -1
  29. metadata +5 -19
  30. data/db/schema.rb +0 -60
  31. data/lib/generators/hot_glue/markup_templates/haml.rb +0 -243
  32. data/lib/generators/hot_glue/markup_templates/slim.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afc68861e358b8c531dc375f1430773020b486019ea649e81fb428fcf1e16176
4
- data.tar.gz: a1120fd066f8a36cccc5a2f909f9d7dd64e2e8bb1f2a20c4a7c8a88829b014b5
3
+ metadata.gz: bdbd3dc1b80457ca68ba5bc2b3bf97ae1c2001e145c09d8d527c788ad86fa1ee
4
+ data.tar.gz: 2b0bf49dd1828de1a31d221163370bf7fe4042f20593036676ac580cadd209dc
5
5
  SHA512:
6
- metadata.gz: 0d7e6a3503778e7403af19cee81120a30a79b8463a34f6458919091d95531636f9c4251b7c0c4b25542855f718481960610d3d94d41691d0216c2ccac9b29cde
7
- data.tar.gz: a5c32f698bd91486f7100b936e3eafd2333656de8bc2e1ddbcdf56351b9248aad1dd4934da8736d9c072c6bcac901af9d9043c6e9014bcd9beb3b700a28c3284
6
+ metadata.gz: f2109863ad2f6a06faee8972d49dd4263b04a91adecde2b084b93a3490c2f270a3131f4306113ecea2b9e673758d58d03ba59f8eb62f5e412968d3be7329ef1f
7
+ data.tar.gz: e4989cc116e44d9e04bd588f65c6080e932e02fb8dcc201f010e0e16adfa76b143dd5a82c3829897acca7eab9b669c9d5541d5f96988ef2ee391f502938cadd6
@@ -0,0 +1,71 @@
1
+ # Use the latest 2.1 version of CircleCI pipeline process engine.
2
+ # See: https://circleci.com/docs/2.0/configuration-reference
3
+ version: 2.1
4
+
5
+ # Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
6
+ # See: https://circleci.com/docs/2.0/orb-intro/
7
+ orbs:
8
+ ruby: circleci/ruby@1.4.0
9
+
10
+ # Define a job to be invoked later in a workflow.
11
+ # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
12
+ jobs:
13
+ build:
14
+ docker:
15
+ - image: cimg/ruby:2.7.5-browsers
16
+ executor: ruby/default
17
+ steps:
18
+ - checkout
19
+ - ruby/install-deps # use the ruby orb to install dependencies
20
+
21
+ - run:
22
+ name: Which bundler?
23
+ command: bundle -v
24
+ test: # our next job, called "test"
25
+ parallelism: 1
26
+ # here we set TWO docker images.
27
+ docker:
28
+
29
+ - image: cimg/ruby:2.7.5-browsers # this is our primary docker image, where step commands run.
30
+ auth:
31
+ username: mydockerhub-user
32
+ password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
33
+ - image: redis:6.2.6
34
+ - image: circleci/postgres:9.5-alpine
35
+ auth:
36
+ username: mydockerhub-user
37
+ password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
38
+ environment: # add POSTGRES environment variables.
39
+ POSTGRES_USER: circleci-demo-ruby
40
+ POSTGRES_DB: hot-glue-test
41
+ POSTGRES_PASSWORD: ""
42
+ # environment variables specific to Ruby/Rails, applied to the primary container.
43
+ environment:
44
+ BUNDLE_JOBS: "3"
45
+ BUNDLE_RETRY: "3"
46
+ PGHOST: 127.0.0.1
47
+ PGUSER: circleci-demo-ruby
48
+ PGPASSWORD: ""
49
+ RAILS_ENV: test
50
+ # A series of steps to run, some are similar to those in "build".
51
+ steps:
52
+ - checkout
53
+ - ruby/install-deps
54
+ # Here we make sure that the secondary container boots
55
+ # up before we run operations on the database.
56
+ - run:
57
+ name: Wait for DB
58
+ command: dockerize -wait tcp://localhost:5432 -timeout 1m
59
+ # Run rspec in parallel
60
+ - run: bundle exec rspec --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec/results.xml --format progress
61
+
62
+ # We use workflows to orchestrate the jobs that we declared above.
63
+ workflows:
64
+ version: 2
65
+ build_and_test: # The name of our workflow is "build_and_test"
66
+ jobs: # The list of jobs we run as part of this workflow.
67
+ - build # Run build first.
68
+ - test: # Then run test,
69
+ requires: # Test requires that build passes for it to run.
70
+ - build # Finally, run the build job.
71
+
data/.github/FUNDING.yml CHANGED
@@ -1,2 +1,2 @@
1
- custom: ["https://heliosdev.shop/hot-glue-license?utm_source=github.com&utm_campaign=github_hot_glue_repo_funding_link",
2
- "https://jfb.teachable.com/p/hot-glue-in-depth-tutorial?utm_source=github.com&utm_campaign=github_hot_glue_repo_funding_link"]
1
+ custom: ["https://heliosdev.shop/p/hot-glue?utm_source=github.com&utm_campaign=github_hot_glue_repo_funding_link",
2
+ "https://jfbcodes.com/p/hot-glue-in-depth-tutorial?utm_source=github.com&utm_campaign=github_hot_glue_repo_funding_link"]
data/.gitignore CHANGED
@@ -18,4 +18,7 @@ spec/dummy/app/views/
18
18
  spec/dummy/app/controllers/
19
19
  spec/dummy/specs/
20
20
 
21
- spec/strawman/
21
+ spec/dummy/node_modules/
22
+ spec/dummy/log/
23
+
24
+ coverage/
data/Gemfile CHANGED
@@ -1,10 +1,12 @@
1
+ # THESE GEMS ARE NOT PART OF YOUR RAILS APP!!!
2
+
1
3
  source 'https://rubygems.org'
2
4
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
5
 
4
6
  gemspec
5
7
 
6
8
  # not required for your app
7
- gem 'pg'
9
+ gem 'sqlite3'
8
10
  gem 'byebug'
9
11
  gem 'rails'
10
12
  gem 'devise', require: true
@@ -13,4 +15,6 @@ gem 'devise', require: true
13
15
  gem "rails-controller-testing", group: [:test]
14
16
  gem "database_cleaner", group: [:test]
15
17
  gem "rspec-rails", group: [:test]
18
+ gem "rspec_junit_formatter", group: [:test]
16
19
  gem "factory_bot", group: [:test]
20
+ gem 'simplecov-rcov'
data/Gemfile.lock CHANGED
@@ -1,11 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hot-glue (0.4.6)
4
+ hot-glue (0.4.9.1)
5
5
  ffaker (~> 2.16)
6
6
  kaminari (~> 1.2)
7
7
  rails (> 5.1)
8
- sass-rails
9
8
 
10
9
  GEM
11
10
  remote: https://rubygems.org/
@@ -87,11 +86,11 @@ GEM
87
86
  responders
88
87
  warden (~> 1.2.3)
89
88
  diff-lcs (1.4.4)
89
+ docile (1.4.0)
90
90
  erubi (1.10.0)
91
91
  factory_bot (6.2.0)
92
92
  activesupport (>= 5.0.0)
93
93
  ffaker (2.20.0)
94
- ffi (1.15.5)
95
94
  globalid (0.4.2)
96
95
  activesupport (>= 4.2.0)
97
96
  i18n (1.8.10)
@@ -127,7 +126,6 @@ GEM
127
126
  mini_portile2 (~> 2.5.0)
128
127
  racc (~> 1.4)
129
128
  orm_adapter (0.5.0)
130
- pg (1.2.3)
131
129
  racc (1.5.2)
132
130
  rack (2.2.3)
133
131
  rack-test (1.1.0)
@@ -183,16 +181,16 @@ GEM
183
181
  rspec-mocks (~> 3.10)
184
182
  rspec-support (~> 3.10)
185
183
  rspec-support (3.10.2)
186
- sass-rails (6.0.0)
187
- sassc-rails (~> 2.1, >= 2.1.1)
188
- sassc (2.4.0)
189
- ffi (~> 1.9)
190
- sassc-rails (2.1.2)
191
- railties (>= 4.0.0)
192
- sassc (>= 2.0)
193
- sprockets (> 3.0)
194
- sprockets-rails
195
- tilt
184
+ rspec_junit_formatter (0.5.1)
185
+ rspec-core (>= 2, < 4, != 2.12.0)
186
+ simplecov (0.21.2)
187
+ docile (~> 1.1)
188
+ simplecov-html (~> 0.11)
189
+ simplecov_json_formatter (~> 0.1)
190
+ simplecov-html (0.12.3)
191
+ simplecov-rcov (0.2.3)
192
+ simplecov (>= 0.4.1)
193
+ simplecov_json_formatter (0.1.3)
196
194
  sprockets (4.0.2)
197
195
  concurrent-ruby (~> 1.0)
198
196
  rack (> 1, < 3)
@@ -200,8 +198,8 @@ GEM
200
198
  actionpack (>= 4.0)
201
199
  activesupport (>= 4.0)
202
200
  sprockets (>= 3.0.0)
201
+ sqlite3 (1.4.2)
203
202
  thor (1.1.0)
204
- tilt (2.0.10)
205
203
  tzinfo (2.0.4)
206
204
  concurrent-ruby (~> 1.0)
207
205
  warden (1.2.9)
@@ -221,10 +219,12 @@ DEPENDENCIES
221
219
  devise
222
220
  factory_bot
223
221
  hot-glue!
224
- pg
225
222
  rails
226
223
  rails-controller-testing
227
224
  rspec-rails
225
+ rspec_junit_formatter
226
+ simplecov-rcov
227
+ sqlite3
228
228
 
229
229
  BUNDLED WITH
230
230
  2.1.4