hot-glue 0.4.5 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +71 -0
- data/.github/FUNDING.yml +2 -2
- data/.gitignore +4 -1
- data/Gemfile +5 -1
- data/Gemfile.lock +16 -16
- data/README.md +340 -251
- data/README2.md +79 -0
- data/config/database.yml +8 -83
- data/db/schema.rb +1 -0
- data/lib/generators/hot_glue/install_generator.rb +0 -1
- data/lib/generators/hot_glue/layout/builder.rb +51 -33
- data/lib/generators/hot_glue/markup_templates/erb.rb +97 -88
- data/lib/generators/hot_glue/scaffold_generator.rb +292 -91
- data/lib/generators/hot_glue/templates/controller.rb.erb +51 -47
- data/lib/generators/hot_glue/templates/erb/_form.erb +3 -2
- data/lib/generators/hot_glue/templates/erb/_line.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/_list.erb +31 -21
- data/lib/generators/hot_glue/templates/erb/_new_button.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/_new_form.erb +4 -3
- data/lib/generators/hot_glue/templates/erb/_show.erb +10 -6
- data/lib/generators/hot_glue/templates/erb/create.turbo_stream.erb +4 -4
- data/lib/generators/hot_glue/templates/erb/destroy.turbo_stream.erb +2 -2
- data/lib/generators/hot_glue/templates/erb/edit.erb +2 -2
- data/lib/generators/hot_glue/templates/erb/index.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/new.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/update.turbo_stream.erb +2 -2
- data/lib/hotglue/version.rb +3 -1
- metadata +6 -20
- data/db/schema.rb +0 -60
- data/lib/generators/hot_glue/markup_templates/haml.rb +0 -243
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a742ee0c02993ed08614aafae1af82e86528f002b69a7213c8cd731518b14df3
|
4
|
+
data.tar.gz: 6bd0941019c42f2ce0eee5d94447098b748a0475726efd53554c1f62f3051f2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bdfa2cdfbf27a138d53be2455df509345ec20f0f37d047a67e77d7365fff543a76e41504f3a1699a6eb24056ad939e55254ec6b4195c8647734d4b7f6eb288a
|
7
|
+
data.tar.gz: d123bf48ca0e1beb4eacdceeee934aaca4b6e6c6284a2c0c3f09e39caab94e9561bea7ccd8fcb92d6c8942df5ae855958270d2a8726a06dc3875fbfa6ec7b7d8
|
@@ -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
|
2
|
-
"https://
|
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
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 '
|
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.
|
4
|
+
hot-glue (0.4.8.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
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
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
|