hot-glue 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +15 -0
- data/.gitignore +3 -1
- data/.ruby-version +1 -0
- data/.travis.yml +2 -2
- data/Gemfile +17 -7
- data/LICENSE +2 -16
- data/README.md +188 -92
- data/README2.md +0 -2
- data/config/database.yml +22 -8
- data/db/schema.rb +149 -0
- data/lib/generators/hot_glue/install_generator.rb +1 -55
- data/lib/generators/hot_glue/scaffold_generator.rb +85 -5
- data/lib/generators/hot_glue/templates/controller.rb.erb +15 -44
- data/lib/generators/hot_glue/templates/erb/_line.erb +2 -2
- data/lib/generators/hot_glue/templates/erb/_list.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/_new_button.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/_new_form.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/create.turbo_stream.erb +2 -2
- data/lib/generators/hot_glue/templates/erb/destroy.turbo_stream.erb +2 -2
- data/lib/generators/hot_glue/templates/erb/edit.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/edit.turbo_stream.erb +1 -1
- data/lib/generators/hot_glue/templates/erb/update.turbo_stream.erb +1 -1
- data/lib/generators/hot_glue/templates/system_spec.rb.erb +11 -124
- data/lib/hotglue/version.rb +1 -1
- data/script/clean_generated_code +20 -0
- data/script/test +47 -0
- metadata +10 -8
- data/.circleci/config.yml +0 -71
- data/Gemfile.lock +0 -230
- data/Rakefile +0 -42
- data/bin/rails +0 -14
- data/db/schema.rb +0 -1
@@ -2,15 +2,17 @@ require 'rails_helper'
|
|
2
2
|
|
3
3
|
describe "interaction for <%= controller_class_name %>", type: :feature do
|
4
4
|
include HotGlue::ControllerHelper
|
5
|
+
include ActionView::RecordIdentifier
|
6
|
+
|
5
7
|
<%= @existing_content %>
|
6
8
|
<% unless @god %>let(:<%= @auth %>) {create(:<%= @auth.gsub('current_', '') %>)}<%end%>
|
7
|
-
|
9
|
+
<%= (@columns - @show_only).map { |col|
|
8
10
|
type = eval("#{singular_class}.columns_hash['#{col}']").type
|
9
11
|
case type
|
10
12
|
when :integer
|
11
13
|
if col.to_s.ends_with?("_id")
|
12
14
|
assoc = "#{col.to_s.gsub('_id','')}"
|
13
|
-
"let!(:#{assoc}1) {create(:#{assoc}" + (@hawk_keys["#{assoc}_id".to_sym] ? ", #{@auth.gsub('current_', '')}: #{@auth}": "") + ")}"
|
15
|
+
" let!(:#{assoc}1) {create(:#{assoc}" + (@hawk_keys["#{assoc}_id".to_sym] ? ", #{@auth.gsub('current_', '')}: #{@auth}": "") + ")}"
|
14
16
|
end
|
15
17
|
else
|
16
18
|
end
|
@@ -46,10 +48,10 @@ describe "interaction for <%= controller_class_name %>", type: :feature do
|
|
46
48
|
"#{col}: rand(100)"
|
47
49
|
end
|
48
50
|
end
|
49
|
-
}.compact.join(",
|
51
|
+
}.compact.join(", ")
|
50
52
|
%>let!(:<%= singular %>1) {create(:<%= singular %><%= object_parent_mapping_as_argument_for_specs %> <%= item1_addOns %> )}
|
51
53
|
<%= objest_nest_factory_setup %> <% unless @god %>
|
52
|
-
before
|
54
|
+
before do
|
53
55
|
login_as(<%= @auth %>)
|
54
56
|
end <% end %>
|
55
57
|
|
@@ -78,61 +80,9 @@ describe "interaction for <%= controller_class_name %>", type: :feature do
|
|
78
80
|
<% unless @no_create %> describe "new & create" do
|
79
81
|
it "should create a new <%= singular.titlecase %>" do
|
80
82
|
visit <%= path_helper_plural %>
|
81
|
-
click_link "New <%=
|
82
|
-
expect(page).to have_selector(:xpath, './/h3[contains(., "New <%=
|
83
|
-
|
84
|
-
<%=
|
85
|
-
(@columns - @show_only).map { |col|
|
86
|
-
type = eval("#{singular_class}.columns_hash['#{col}']").type
|
87
|
-
case type
|
88
|
-
when :date
|
89
|
-
" " + "new_#{col} = Date.current + (rand(100).days) \n" +
|
90
|
-
' ' + "find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
91
|
-
when :time
|
92
|
-
# " " + "new_#{col} = DateTime.current + (rand(100).days) \n" +
|
93
|
-
# ' ' + "find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
94
|
-
|
95
|
-
when :datetime
|
96
|
-
" " + "new_#{col} = DateTime.current + (rand(100).days) \n" +
|
97
|
-
' ' + "find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
98
|
-
|
99
|
-
when :integer
|
100
|
-
|
101
|
-
if col.to_s.ends_with?("_id")
|
102
|
-
assoc = col.to_s.gsub('_id','')
|
103
|
-
" #{col}_selector = find(\"[name='#{singular}[#{col}]']\").click \n" +
|
104
|
-
" #{col}_selector.first('option', text: #{assoc}1.name).select_option"
|
105
|
-
else
|
106
|
-
" new_#{col} = rand(10) \n" +
|
107
|
-
" find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
108
|
-
|
109
|
-
end
|
110
|
-
|
111
|
-
when :enum
|
112
|
-
" list_of_#{col.to_s} = #{singular_class}.defined_enums['#{col.to_s}'].keys \n" +
|
113
|
-
" " + "new_#{col.to_s} = list_of_#{col.to_s}[rand(list_of_#{col.to_s}.length)].to_s \n" +
|
114
|
-
' find("select[name=\'' + singular + '[' + col.to_s + ']\'] option[value=\'#{new_' + col.to_s + '}\']").select_option'
|
115
|
-
|
116
|
-
when :boolean
|
117
|
-
" new_#{col} = rand(2).floor \n" +
|
118
|
-
" find(\"[name='#{singular}[#{col}]'][value='\#{new_" + col.to_s + "}']\").choose"
|
119
|
-
when :string
|
120
|
-
if col.to_s.include?("email")
|
121
|
-
" " + "new_#{col} = 'new_test-email@nowhere.com' \n" +
|
122
|
-
" find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
123
|
-
|
124
|
-
else
|
125
|
-
" " + "new_#{col} = 'new_test-email@nowhere.com' \n" +
|
126
|
-
" find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
127
|
-
end
|
128
|
-
when :text
|
129
|
-
" " + "new_#{col} = FFaker::Lorem.paragraphs(1).join("") \n" +
|
130
|
-
" find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
131
|
-
end
|
132
|
-
|
133
|
-
}.join("\n")
|
134
|
-
|
135
|
-
%>
|
83
|
+
click_link "New <%= thing_label %>"
|
84
|
+
expect(page).to have_selector(:xpath, './/h3[contains(., "New <%= thing_label %>")]')
|
85
|
+
<%= test_capybara_block %>
|
136
86
|
click_button "Save"
|
137
87
|
expect(page).to have_content("Successfully created")
|
138
88
|
<%=" " +
|
@@ -168,72 +118,9 @@ describe "interaction for <%= controller_class_name %>", type: :feature do
|
|
168
118
|
find("a.edit-<%= singular %>-button[href='/<%= namespace_with_slash %><%= plural %>/#{<%= singular %>1.id}/edit']").click
|
169
119
|
|
170
120
|
expect(page).to have_content("Editing #{<%= singular %>1.<%= @display_class %>.squish || "(no name)"}")
|
171
|
-
<%=
|
172
|
-
(@columns - @show_only).map { |col|
|
173
|
-
type = eval("#{singular_class}.columns_hash['#{col}']").type
|
174
|
-
limit = eval("#{singular_class}.columns_hash['#{col}']").limit
|
175
|
-
sql_type = eval("#{singular_class}.columns_hash['#{col}']").sql_type
|
176
|
-
case type
|
177
|
-
when :datetime
|
178
|
-
" new_#{col} = DateTime.current + 1.day \n" +
|
179
|
-
" find(\"[name='#{singular}[#{col}]']\").fill_in(with: new_#{col.to_s})"
|
180
|
-
when :integer
|
181
|
-
if !col.to_s.ends_with?("_id")
|
182
|
-
" new_#{col} = rand(10000).floor \n" +
|
183
|
-
" find(\"[name='#{singular}[#{col}]']\").fill_in(with: new_#{col.to_s})"
|
184
|
-
end
|
185
|
-
when :text
|
186
|
-
if sql_type == "text"
|
187
|
-
" " + "new_#{col.to_s} = FFaker::Lorem.paragraphs(3).join \n" +
|
188
|
-
' find("textarea[name=\'' + singular + '[' + col.to_s + ']\']").fill_in(with: new_' + col.to_s + ')'
|
189
|
-
|
190
|
-
else # unreachable?
|
191
|
-
" " + "new_#{col.to_s} = FFaker::Name.name \n" +
|
192
|
-
' find("input[name=\'' + singular + '[' + col.to_s + ']\']").fill_in(with: new_' + col.to_s + ')'
|
193
|
-
end
|
194
|
-
when :string
|
195
|
-
|
196
|
-
if col.to_s.include?("email")
|
197
|
-
" " + "new_#{col} = 'new_test-email@nowhere.com' \n" +
|
198
|
-
" find(\"[name='#{singular}[#{ col.to_s }]']\").fill_in(with: new_#{col.to_s})"
|
199
|
-
|
200
|
-
elsif sql_type == "varchar"
|
201
|
-
" " + "new_#{col.to_s} = FFaker::Name.name \n" +
|
202
|
-
' find("input[name=\'' + singular + '[' + col.to_s + ']\']").fill_in(with: new_' + col.to_s + ')'
|
203
|
-
else
|
204
|
-
" " + "new_#{col.to_s} = FFaker::Lorem.paragraphs(1).join \n" +
|
205
|
-
' find("input[name=\'' + singular + '[' + col.to_s + ']\']").fill_in(with: new_' + col.to_s + ')'
|
206
|
-
end
|
207
|
-
when :boolean
|
208
|
-
" new_#{col} = rand(2).floor \n" +
|
209
|
-
" find(\"[name='#{singular}[#{col}]'][value='\#{new_#{col}}']\").choose"
|
210
|
-
when :float
|
211
|
-
" new_#{col} = rand(1)*5000 \n" +
|
212
|
-
" find(\"[name='#{singular}[#{col}]']\").fill_in(with: new_#{col.to_s })"
|
213
|
-
when :date
|
214
|
-
" new_#{col} = Date.current + rand(100).days \n" +
|
215
|
-
" find(\"[name='#{singular}[#{col}]']\").fill_in(with: new_#{col.to_s })"
|
216
|
-
when :time
|
217
|
-
" new_#{col} = Time.current + rand(144).hours \n" +
|
218
|
-
" find(\"[name='#{singular}[#{col}]']\").fill_in(with: new_#{col.to_s })"
|
219
|
-
when :datetime
|
220
|
-
" new_#{col} = DateTime.current + rand(1000).minutes \n" +
|
221
|
-
" find(\"[name='#{singular}[#{col}]']\").fill_in(with: new_#{col.to_s })"
|
222
|
-
|
223
|
-
when :enum
|
224
|
-
" list_of_#{col.to_s} = #{singular_class}.defined_enums['#{col.to_s}'].keys \n" +
|
225
|
-
" " + "new_#{col.to_s} = list_of_#{col.to_s}[rand(list_of_#{col.to_s}.length)].to_s \n" +
|
226
|
-
' find("select[name=\'' + singular + '[' + col.to_s + ']\'] option[value=\'#{new_' + col.to_s + '}\']").select_option'
|
227
|
-
|
228
|
-
else
|
229
|
-
" " + "new_#{col.to_s} = FFaker::Name.name \n" +
|
230
|
-
' find("input[name=\'' + singular + '[' + col.to_s + ']\']").fill_in(with: new_' + col.to_s + ')'
|
231
|
-
|
232
|
-
end
|
233
|
-
}.join("\n")
|
234
|
-
%>
|
121
|
+
<%= test_capybara_block %>
|
235
122
|
click_button "Save"
|
236
|
-
within("turbo-frame#<%=
|
123
|
+
within("turbo-frame#<%= @namespace %>__#{dom_id(<%= singular %>1)} ") do
|
237
124
|
<%=
|
238
125
|
(@columns - @show_only).map { |col|
|
239
126
|
type = eval("#{singular_class}.columns_hash['#{col}']").type
|
data/lib/hotglue/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
rm dummy/app/controllers/ghis_controller.rb
|
3
|
+
rm dummy/app/controllers/abcs_controller.rb
|
4
|
+
rm dummy/app/controllers/dfgs_controller.rb
|
5
|
+
rm dummy/app/controllers/cantelopes_controller.rb
|
6
|
+
rm dummy/app/controllers/jkls_controller.rb
|
7
|
+
rm dummy/app/controllers/users_controller.rb
|
8
|
+
|
9
|
+
rm -rf dummy/app/views/cantelopes/*
|
10
|
+
rm -rf dummy/app/views/jkls/*
|
11
|
+
rm -rf dummy/app/views/ghis/*
|
12
|
+
rm -rf dummy/app/views/abcs/*
|
13
|
+
rm -rf dummy/app/views/dfgs/*
|
14
|
+
rm -rf dummy/app/views/users/*
|
15
|
+
|
16
|
+
/bin/rm -rf dummy/spec/system/
|
17
|
+
|
18
|
+
|
19
|
+
# !("application_controller.rb"|"welcome_controller.rb")
|
20
|
+
#find dummy/app/views/ -type f ! -name "application.html.erb" ! -name "welcome/index.erb" -delete
|
data/script/test
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
clean_generated_code() {
|
4
|
+
./clean_generated_code
|
5
|
+
}
|
6
|
+
|
7
|
+
echo "Internal test suite for Hot Glue (install, basic commands)..."
|
8
|
+
# the internal specs test only Hot Glue's command line usage
|
9
|
+
rspec spec
|
10
|
+
|
11
|
+
script/clean_generated_code
|
12
|
+
|
13
|
+
echo "Integration test suite for Hot Glue..."
|
14
|
+
# note that the dummy/ is in the root of the repository
|
15
|
+
# these specs generate several controllers & specs and then run the generated
|
16
|
+
# specs to test the generated code
|
17
|
+
|
18
|
+
cd dummy
|
19
|
+
|
20
|
+
echo "Setting up database..."
|
21
|
+
|
22
|
+
bundle install
|
23
|
+
rake db:create db:reset db:test:prepare
|
24
|
+
|
25
|
+
echo "Generating all code for testing..."
|
26
|
+
rails generate hot_glue:scaffold Abc --gd
|
27
|
+
|
28
|
+
rails generate hot_glue:scaffold Ghi --gd
|
29
|
+
|
30
|
+
rails generate hot_glue:scaffold Dfg --auth=current_user
|
31
|
+
|
32
|
+
rails generate hot_glue:scaffold Fruits::Cantelope --gd
|
33
|
+
|
34
|
+
#rails generate hot_glue:scaffold User --no-create --self-auth
|
35
|
+
#rails generate hot_glue:scaffold Jkl --gd
|
36
|
+
#rails generate hot_glue:scaffold Pet --gd
|
37
|
+
#rails generate hot_glue:scaffold Appointment --hawk=pets --gd
|
38
|
+
#rails generate hot_glue:scaffold Humen --gd
|
39
|
+
#rails generate hot_glue:scaffold Family --gd
|
40
|
+
|
41
|
+
|
42
|
+
rspec spec || exit
|
43
|
+
|
44
|
+
cd ../
|
45
|
+
|
46
|
+
script/clean_generated_code
|
47
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hot-glue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Fleetwood-Boldt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -59,21 +59,19 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- ".circleci/config.yml"
|
63
62
|
- ".github/FUNDING.yml"
|
63
|
+
- ".github/workflows/test.yml"
|
64
64
|
- ".gitignore"
|
65
|
+
- ".ruby-version"
|
65
66
|
- ".travis.yml"
|
66
67
|
- Gemfile
|
67
|
-
- Gemfile.lock
|
68
68
|
- LICENSE
|
69
69
|
- README.md
|
70
70
|
- README2.md
|
71
|
-
- Rakefile
|
72
71
|
- app/assets/config/manifest.js
|
73
72
|
- app/helpers/hot_glue/controller_helper.rb
|
74
73
|
- app/helpers/hot_glue_helper.rb
|
75
74
|
- app/views/layouts/_flash_notices.erb
|
76
|
-
- bin/rails
|
77
75
|
- config/database.yml
|
78
76
|
- config/hot_glue.yml
|
79
77
|
- db/schema.rb
|
@@ -124,11 +122,15 @@ files:
|
|
124
122
|
- lib/hot-glue.rb
|
125
123
|
- lib/hotglue/engine.rb
|
126
124
|
- lib/hotglue/version.rb
|
125
|
+
- script/clean_generated_code
|
126
|
+
- script/test
|
127
127
|
homepage: https://heliosdev.shop/p/hot-glue?utm_source=rubygems.org&utm_campaign=rubygems_link
|
128
128
|
licenses:
|
129
|
-
-
|
129
|
+
- Nonstandard
|
130
130
|
metadata:
|
131
131
|
source_code_uri: https://github.com/jasonfb/hot-glue
|
132
|
+
homepage: https://heliosdev.shop/hot-glue
|
133
|
+
funding: https://tekduds.com
|
132
134
|
post_install_message: |
|
133
135
|
---------------------------------------------
|
134
136
|
Welcome to Hot Glue - A Scaffold Building Companion for Hotwire + Turbo-Rails
|
@@ -148,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
150
|
- !ruby/object:Gem::Version
|
149
151
|
version: '0'
|
150
152
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
153
|
+
rubygems_version: 3.3.7
|
152
154
|
signing_key:
|
153
155
|
specification_version: 4
|
154
156
|
summary: A gem to build Tubro Rails scaffolding.
|
data/.circleci/config.yml
DELETED
@@ -1,71 +0,0 @@
|
|
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/Gemfile.lock
DELETED
@@ -1,230 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
hot-glue (0.5.2)
|
5
|
-
ffaker (~> 2.16)
|
6
|
-
kaminari (~> 1.2)
|
7
|
-
rails (> 5.1)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actioncable (6.1.0)
|
13
|
-
actionpack (= 6.1.0)
|
14
|
-
activesupport (= 6.1.0)
|
15
|
-
nio4r (~> 2.0)
|
16
|
-
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (6.1.0)
|
18
|
-
actionpack (= 6.1.0)
|
19
|
-
activejob (= 6.1.0)
|
20
|
-
activerecord (= 6.1.0)
|
21
|
-
activestorage (= 6.1.0)
|
22
|
-
activesupport (= 6.1.0)
|
23
|
-
mail (>= 2.7.1)
|
24
|
-
actionmailer (6.1.0)
|
25
|
-
actionpack (= 6.1.0)
|
26
|
-
actionview (= 6.1.0)
|
27
|
-
activejob (= 6.1.0)
|
28
|
-
activesupport (= 6.1.0)
|
29
|
-
mail (~> 2.5, >= 2.5.4)
|
30
|
-
rails-dom-testing (~> 2.0)
|
31
|
-
actionpack (6.1.0)
|
32
|
-
actionview (= 6.1.0)
|
33
|
-
activesupport (= 6.1.0)
|
34
|
-
rack (~> 2.0, >= 2.0.9)
|
35
|
-
rack-test (>= 0.6.3)
|
36
|
-
rails-dom-testing (~> 2.0)
|
37
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
38
|
-
actiontext (6.1.0)
|
39
|
-
actionpack (= 6.1.0)
|
40
|
-
activerecord (= 6.1.0)
|
41
|
-
activestorage (= 6.1.0)
|
42
|
-
activesupport (= 6.1.0)
|
43
|
-
nokogiri (>= 1.8.5)
|
44
|
-
actionview (6.1.0)
|
45
|
-
activesupport (= 6.1.0)
|
46
|
-
builder (~> 3.1)
|
47
|
-
erubi (~> 1.4)
|
48
|
-
rails-dom-testing (~> 2.0)
|
49
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
50
|
-
activejob (6.1.0)
|
51
|
-
activesupport (= 6.1.0)
|
52
|
-
globalid (>= 0.3.6)
|
53
|
-
activemodel (6.1.0)
|
54
|
-
activesupport (= 6.1.0)
|
55
|
-
activerecord (6.1.0)
|
56
|
-
activemodel (= 6.1.0)
|
57
|
-
activesupport (= 6.1.0)
|
58
|
-
activestorage (6.1.0)
|
59
|
-
actionpack (= 6.1.0)
|
60
|
-
activejob (= 6.1.0)
|
61
|
-
activerecord (= 6.1.0)
|
62
|
-
activesupport (= 6.1.0)
|
63
|
-
marcel (~> 0.3.1)
|
64
|
-
mimemagic (~> 0.3.2)
|
65
|
-
activesupport (6.1.0)
|
66
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
67
|
-
i18n (>= 1.6, < 2)
|
68
|
-
minitest (>= 5.1)
|
69
|
-
tzinfo (~> 2.0)
|
70
|
-
zeitwerk (~> 2.3)
|
71
|
-
bcrypt (3.1.16)
|
72
|
-
builder (3.2.4)
|
73
|
-
byebug (11.1.3)
|
74
|
-
concurrent-ruby (1.1.9)
|
75
|
-
crass (1.0.6)
|
76
|
-
database_cleaner (2.0.1)
|
77
|
-
database_cleaner-active_record (~> 2.0.0)
|
78
|
-
database_cleaner-active_record (2.0.1)
|
79
|
-
activerecord (>= 5.a)
|
80
|
-
database_cleaner-core (~> 2.0.0)
|
81
|
-
database_cleaner-core (2.0.1)
|
82
|
-
devise (4.8.0)
|
83
|
-
bcrypt (~> 3.0)
|
84
|
-
orm_adapter (~> 0.1)
|
85
|
-
railties (>= 4.1.0)
|
86
|
-
responders
|
87
|
-
warden (~> 1.2.3)
|
88
|
-
diff-lcs (1.4.4)
|
89
|
-
docile (1.4.0)
|
90
|
-
erubi (1.10.0)
|
91
|
-
factory_bot (6.2.0)
|
92
|
-
activesupport (>= 5.0.0)
|
93
|
-
ffaker (2.20.0)
|
94
|
-
globalid (0.4.2)
|
95
|
-
activesupport (>= 4.2.0)
|
96
|
-
i18n (1.8.10)
|
97
|
-
concurrent-ruby (~> 1.0)
|
98
|
-
kaminari (1.2.2)
|
99
|
-
activesupport (>= 4.1.0)
|
100
|
-
kaminari-actionview (= 1.2.2)
|
101
|
-
kaminari-activerecord (= 1.2.2)
|
102
|
-
kaminari-core (= 1.2.2)
|
103
|
-
kaminari-actionview (1.2.2)
|
104
|
-
actionview
|
105
|
-
kaminari-core (= 1.2.2)
|
106
|
-
kaminari-activerecord (1.2.2)
|
107
|
-
activerecord
|
108
|
-
kaminari-core (= 1.2.2)
|
109
|
-
kaminari-core (1.2.2)
|
110
|
-
loofah (2.10.0)
|
111
|
-
crass (~> 1.0.2)
|
112
|
-
nokogiri (>= 1.5.9)
|
113
|
-
mail (2.7.1)
|
114
|
-
mini_mime (>= 0.1.1)
|
115
|
-
marcel (0.3.3)
|
116
|
-
mimemagic (~> 0.3.2)
|
117
|
-
method_source (1.0.0)
|
118
|
-
mimemagic (0.3.10)
|
119
|
-
nokogiri (~> 1)
|
120
|
-
rake
|
121
|
-
mini_mime (1.1.0)
|
122
|
-
mini_portile2 (2.5.3)
|
123
|
-
minitest (5.14.4)
|
124
|
-
nio4r (2.5.7)
|
125
|
-
nokogiri (1.11.7)
|
126
|
-
mini_portile2 (~> 2.5.0)
|
127
|
-
racc (~> 1.4)
|
128
|
-
orm_adapter (0.5.0)
|
129
|
-
racc (1.5.2)
|
130
|
-
rack (2.2.3)
|
131
|
-
rack-test (1.1.0)
|
132
|
-
rack (>= 1.0, < 3)
|
133
|
-
rails (6.1.0)
|
134
|
-
actioncable (= 6.1.0)
|
135
|
-
actionmailbox (= 6.1.0)
|
136
|
-
actionmailer (= 6.1.0)
|
137
|
-
actionpack (= 6.1.0)
|
138
|
-
actiontext (= 6.1.0)
|
139
|
-
actionview (= 6.1.0)
|
140
|
-
activejob (= 6.1.0)
|
141
|
-
activemodel (= 6.1.0)
|
142
|
-
activerecord (= 6.1.0)
|
143
|
-
activestorage (= 6.1.0)
|
144
|
-
activesupport (= 6.1.0)
|
145
|
-
bundler (>= 1.15.0)
|
146
|
-
railties (= 6.1.0)
|
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)
|
152
|
-
rails-dom-testing (2.0.3)
|
153
|
-
activesupport (>= 4.2.0)
|
154
|
-
nokogiri (>= 1.6)
|
155
|
-
rails-html-sanitizer (1.3.0)
|
156
|
-
loofah (~> 2.3)
|
157
|
-
railties (6.1.0)
|
158
|
-
actionpack (= 6.1.0)
|
159
|
-
activesupport (= 6.1.0)
|
160
|
-
method_source
|
161
|
-
rake (>= 0.8.7)
|
162
|
-
thor (~> 1.0)
|
163
|
-
rake (13.0.3)
|
164
|
-
responders (3.0.1)
|
165
|
-
actionpack (>= 5.0)
|
166
|
-
railties (>= 5.0)
|
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)
|
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)
|
194
|
-
sprockets (4.0.2)
|
195
|
-
concurrent-ruby (~> 1.0)
|
196
|
-
rack (> 1, < 3)
|
197
|
-
sprockets-rails (3.2.2)
|
198
|
-
actionpack (>= 4.0)
|
199
|
-
activesupport (>= 4.0)
|
200
|
-
sprockets (>= 3.0.0)
|
201
|
-
sqlite3 (1.4.2)
|
202
|
-
thor (1.1.0)
|
203
|
-
tzinfo (2.0.4)
|
204
|
-
concurrent-ruby (~> 1.0)
|
205
|
-
warden (1.2.9)
|
206
|
-
rack (>= 2.0.9)
|
207
|
-
websocket-driver (0.7.5)
|
208
|
-
websocket-extensions (>= 0.1.0)
|
209
|
-
websocket-extensions (0.1.5)
|
210
|
-
zeitwerk (2.4.2)
|
211
|
-
|
212
|
-
PLATFORMS
|
213
|
-
-darwin-20
|
214
|
-
ruby
|
215
|
-
|
216
|
-
DEPENDENCIES
|
217
|
-
byebug
|
218
|
-
database_cleaner
|
219
|
-
devise
|
220
|
-
factory_bot
|
221
|
-
hot-glue!
|
222
|
-
rails
|
223
|
-
rails-controller-testing
|
224
|
-
rspec-rails
|
225
|
-
rspec_junit_formatter
|
226
|
-
simplecov-rcov
|
227
|
-
sqlite3
|
228
|
-
|
229
|
-
BUNDLED WITH
|
230
|
-
2.1.4
|
data/Rakefile
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
|
2
|
-
begin
|
3
|
-
require 'bundler/setup'
|
4
|
-
rescue LoadError
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
7
|
-
|
8
|
-
begin
|
9
|
-
require 'rspec/core/rake_task'
|
10
|
-
RSpec::Core::RakeTask.new(:spec)
|
11
|
-
task :default => :spec
|
12
|
-
rescue LoadError
|
13
|
-
puts 'FAILED: unable to load rspec/core/rake_task in Rakefile'
|
14
|
-
end
|
15
|
-
|
16
|
-
#
|
17
|
-
# require 'rdoc/task'
|
18
|
-
#
|
19
|
-
# RDoc::Task.new(:rdoc) do |rdoc|
|
20
|
-
# rdoc.rdoc_dir = 'rdoc'
|
21
|
-
# rdoc.title = 'HotGlue'
|
22
|
-
# rdoc.options << '--line-numbers'
|
23
|
-
# rdoc.rdoc_files.include('README.md')
|
24
|
-
# rdoc.rdoc_files.include('lib/**/*.rb')
|
25
|
-
# end
|
26
|
-
#
|
27
|
-
# APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
|
28
|
-
# load 'rails/tasks/engine.rake'
|
29
|
-
#
|
30
|
-
# load 'rails/tasks/statistics.rake'
|
31
|
-
#
|
32
|
-
# require 'bundler/gem_tasks'
|
33
|
-
|
34
|
-
# require 'rake/testtask'
|
35
|
-
#
|
36
|
-
# Rake::TestTask.new(:test) do |t|
|
37
|
-
# t.libs << 'test'
|
38
|
-
# t.pattern = 'test/**/*_test.rb'
|
39
|
-
# t.verbose = false
|
40
|
-
# end
|
41
|
-
#
|
42
|
-
# task default: :test
|
data/bin/rails
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
-
# installed from the root of your application.
|
4
|
-
|
5
|
-
ENGINE_ROOT = File.expand_path('..', __dir__)
|
6
|
-
ENGINE_PATH = File.expand_path('../lib/hotglue/engine', __dir__)
|
7
|
-
APP_PATH = File.expand_path('../spec/dummy/application', __dir__)
|
8
|
-
|
9
|
-
# Set up gems listed in the Gemfile.
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
11
|
-
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
12
|
-
|
13
|
-
require 'rails/all'
|
14
|
-
require 'rails/engine/commands'
|
data/db/schema.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
db/spec/dummy/db/schema.rb
|