hot-glue 0.4.4 → 0.4.8.1
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/.gitignore +4 -1
- data/Gemfile +5 -1
- data/Gemfile.lock +17 -17
- data/{LICENCE → LICENSE} +10 -6
- data/README.md +293 -246
- 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 +42 -31
- data/lib/generators/hot_glue/markup_templates/erb.rb +97 -86
- data/lib/generators/hot_glue/scaffold_generator.rb +249 -82
- 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 +26 -20
- data/lib/generators/hot_glue/templates/erb/_new_form.erb +3 -2
- data/lib/generators/hot_glue/templates/erb/_show.erb +11 -7
- 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 -26
- 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: afd7653fa703e1bf60d018a359d175c3f99db44446e727c8e6efcea7076ed856
|
4
|
+
data.tar.gz: 1796ccdc104e936c5416ef8068b1b148d4038f071822f1d62c24d7c0be97f658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5899771864cb198681bec532523d375319885cc65a48ffdc3b783af471fd37cc80c94a3e894cd8374829eef066e2a42fe9d9e6af323561de2198ea562ea8d5fe
|
7
|
+
data.tar.gz: c86ad53fce047f3ce3e029dcf880cbed981d94f79ff1838a6a87288e141b2a33ac72dca01dbc7760937c7cf463da57d2fb56a0aeba3eb009b1781296019aba33
|
@@ -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/.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)
|
5
5
|
ffaker (~> 2.16)
|
6
6
|
kaminari (~> 1.2)
|
7
|
-
rails (> 5.1
|
8
|
-
sass-rails
|
7
|
+
rails (> 5.1)
|
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.4)
|
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
|
data/{LICENCE → LICENSE}
RENAMED
@@ -1,3 +1,7 @@
|
|
1
|
+
© 2022 Jason Fleetwood-Boldt. All Rights Reserved
|
2
|
+
This software is 'fauxpen source,' which means you can think of it like 'free' as in speech but not 'free' as in beer....
|
3
|
+
|
4
|
+
It is definitely 'free' as in Britney.
|
1
5
|
|
2
6
|
FOR HOBBYISTS/STUDENTS/TEACHERS/INDIVIDUALS/NON-PROFITS:
|
3
7
|
|
@@ -7,14 +11,14 @@ Any users of this software agree to work to
|
|
7
11
|
1) dismantle systemic racism
|
8
12
|
2) seek justice for black, brown, transgender people, women, and
|
9
13
|
3) work towards LGBTQIAA+ representation and inclusion
|
10
|
-
|
11
|
-
FOR ALL OTHERS:
|
12
|
-
|
13
|
-
TO PURCHASE A LICENSE PLEASE VISIT
|
14
|
-
https://heliosdev.shop/hot-glue-license
|
15
|
-
|
16
14
|
Organizations using this software agree to center the narratives of black, brown, transgender, and non-advantaged people in the world.
|
17
15
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
18
16
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
17
|
|
18
|
+
Just sign the pledge at https://heliosdev.shop/hot-glue-license and your email will be granted lifetime usage access.
|
19
|
+
|
20
|
+
TO PURCHASE A COMMERCIAL USAGE LICENSE PLEASE VISIT
|
21
|
+
https://heliosdev.shop/hot-glue-license
|
20
22
|
|
23
|
+
OR JUST BUY THE TUTORIAL (all purchases come with lifetime license)
|
24
|
+
https://jfb.teachable.com/p/hot-glue-in-depth-tutorial
|