rails_app_generator 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/28: +0 -0
- data/CHANGELOG.md +7 -0
- data/app:template +0 -0
- data/lib/rails_app_generator/addons/chartkick.rb +1 -16
- data/lib/rails_app_generator/addons/groupdate.rb +1 -18
- data/lib/rails_app_generator/addons/hexapdf.rb +30 -0
- data/lib/rails_app_generator/app_generator.rb +3 -11
- data/lib/rails_app_generator/options/rails_options.rb +1 -0
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/templates/thor_task/profile/after_template.rb +0 -2
- metadata +4 -2
- data/templates/thor_task/profile/config/initializers/addon_name.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bff2db058b7a94cca7a3a2dbf88c224712abed77f395e6e17e88ca390db06e63
|
4
|
+
data.tar.gz: 7bfad8880b3d40e34fa4a46d8921e179e20f53f3fe04e830651536939cff52e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3740692527a1cf226504e1c06a582b671bbf0685eb4c0f11a55d4431a244f681a5a0cb34d52c9b74806c816005e28ba5aff84bdb1d39acc6f3181586b81536c6
|
7
|
+
data.tar.gz: ec99ceb2866abc91fb1e7137370897b35b5407845f15ff8f0017ca1df9f41e259a4bac5bbb84aee7beb3abe2966dcdedbb39536550d236ca98ca431b57f91677
|
data/28:
ADDED
File without changes
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.1.20](https://github.com/klueless-io/rails_app_generator/compare/v0.1.19...v0.1.20) (2022-08-06)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* addon chartkick and groupdate ([2bef1f1](https://github.com/klueless-io/rails_app_generator/commit/2bef1f1948d6ea7c2245e42bbb84308e201c35d5))
|
7
|
+
|
1
8
|
## [0.1.19](https://github.com/klueless-io/rails_app_generator/compare/v0.1.18...v0.1.19) (2022-08-06)
|
2
9
|
|
3
10
|
|
data/app:template
ADDED
File without changes
|
@@ -7,24 +7,9 @@ module RailsAppGenerator
|
|
7
7
|
class Chartkick < AddOn
|
8
8
|
required_gem gem.version('chartkick', '4.2.1', 'Create beautiful JavaScript charts with one line of Ruby')
|
9
9
|
|
10
|
-
def apply
|
11
|
-
puts 'Applying Chartkick'
|
12
|
-
# say 'Setting up Chartkick'
|
13
|
-
# template('chartkick_template.rb', 'target/chartkick.rb', force: true)
|
14
|
-
# template('app/javascript/stylesheets/components.scss')
|
15
|
-
# create_file('target/chartkick.rb', 'put your content here')
|
16
|
-
# directory 'app/template', 'app/target', force: true
|
17
|
-
# empty_directory 'app/target'
|
18
|
-
# inject_into_file('app/application.js', "some content")
|
19
|
-
# rails_command('tailwindcss:install')
|
20
|
-
end
|
21
|
-
|
22
|
-
def before_bundle
|
23
|
-
puts 'Setting up Chartkick (before bundle)'
|
24
|
-
end
|
10
|
+
def apply; end
|
25
11
|
|
26
12
|
def after_bundle
|
27
|
-
puts 'Setting up Chartkick (after bundle)'
|
28
13
|
append_to_file('config/importmap.rb', <<~RUBY)
|
29
14
|
pin "chartkick", to: "chartkick.js"
|
30
15
|
pin "Chart.bundle", to: "Chart.bundle.js"
|
@@ -8,24 +8,7 @@ module RailsAppGenerator
|
|
8
8
|
required_gem gem.version('groupdate', '6.1.0', 'The simplest way to group temporal data')
|
9
9
|
|
10
10
|
# NOTE: in the examples, the Groupdate gem is used in conjunction with Chartkick.
|
11
|
-
def apply
|
12
|
-
say 'Setting up Groupdate'
|
13
|
-
# template('groupdate_template.rb', 'target/groupdate.rb', force: true)
|
14
|
-
# template('app/javascript/stylesheets/components.scss')
|
15
|
-
# create_file('target/groupdate.rb', 'put your content here')
|
16
|
-
# directory 'app/template', 'app/target', force: true
|
17
|
-
# empty_directory 'app/target'
|
18
|
-
# inject_into_file('app/application.js', "some content")
|
19
|
-
# rails_command('tailwindcss:install')
|
20
|
-
end
|
21
|
-
|
22
|
-
def before_bundle
|
23
|
-
say 'Setting up Groupdate - before bundle install'
|
24
|
-
end
|
25
|
-
|
26
|
-
def after_bundle
|
27
|
-
say 'Setting up Groupdate - after bundle install'
|
28
|
-
end
|
11
|
+
def apply; end
|
29
12
|
end
|
30
13
|
end
|
31
14
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RailsAppGenerator
|
4
|
+
# Custom add-ons for RailsAppGenerator
|
5
|
+
module AddOns
|
6
|
+
# Add Hexapdf to rails application
|
7
|
+
class Hexapdf < AddOn
|
8
|
+
required_gem gem.version('hexapdf', '0.24.0', 'HexaPDF is a pure Ruby library with an accompanying application for working with PDF files.')
|
9
|
+
|
10
|
+
def apply
|
11
|
+
say 'Setting up Hexapdf'
|
12
|
+
# template('hexapdf_template.rb', 'target/hexapdf.rb', force: true)
|
13
|
+
# template('app/javascript/stylesheets/components.scss')
|
14
|
+
# create_file('target/hexapdf.rb', 'put your content here')
|
15
|
+
# directory 'app/template', 'app/target', force: true
|
16
|
+
# empty_directory 'app/target'
|
17
|
+
# inject_into_file('app/application.js', "some content")
|
18
|
+
# rails_command('tailwindcss:install')
|
19
|
+
end
|
20
|
+
|
21
|
+
def before_bundle
|
22
|
+
say 'Setting up Hexapdf - before bundle install'
|
23
|
+
end
|
24
|
+
|
25
|
+
def after_bundle
|
26
|
+
say 'Setting up Hexapdf - after bundle install'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -8,27 +8,17 @@ module RailsAppGenerator
|
|
8
8
|
class_option :test , type: :string , default: 'rspec'
|
9
9
|
|
10
10
|
# Gem Current Latest Requested Groups
|
11
|
-
# aws-
|
12
|
-
# aws-sdk-cognitoidentityprovider 1.67.0 1.68.0
|
13
|
-
# aws-sdk-core 3.131.5 3.131.6
|
14
|
-
# aws-sdk-personalize 1.42.0 1.43.0
|
15
|
-
# aws-sdk-resources 3.136.0 3.137.0
|
16
|
-
# aws-sdk-wafv2 1.40.0 1.41.0
|
11
|
+
# aws-sdk
|
17
12
|
# capistrano-bundler 1.6.0 2.1.0 ~> 1.2 development, test
|
18
13
|
# capybara 3.33.0 3.37.1 = 3.33.0 development, test
|
19
|
-
# chartkick 2.3.5 4.2.1 ~> 2.3 default
|
20
|
-
# childprocess 3.0.0 4.1.0
|
21
14
|
# clamby 1.6.6 1.6.8 = 1.6.6 default
|
22
15
|
# createsend 5.1.1 6.0.0 ~> 5.1 default
|
23
16
|
# database_cleaner 1.7.0 2.0.1 = 1.7.0 development, test
|
24
17
|
# erubi 1.10.0 1.11.0
|
25
18
|
# factory_bot 5.2.0 6.2.1
|
26
19
|
# factory_bot_rails 5.2.0 6.2.0 = 5.2.0 development, test
|
27
|
-
# faker 1.9.6 2.22.0 ~> 1.7 default
|
28
|
-
# groupdate 4.3.0 6.1.0 ~> 4.1 default
|
29
20
|
# guard-bundler 2.2.1 3.0.0 = 2.2.1 development, test
|
30
21
|
# guard-rubocop 1.4.0 1.5.0 = 1.4.0 development, test
|
31
|
-
# hashie 3.6.0 5.0.0
|
32
22
|
# hexapdf 0.23.0 0.24.0 ~> 0.5 default
|
33
23
|
# http-accept 1.7.0 2.2.0
|
34
24
|
# k_log 0.0.18 0.0.33 = 0.0.18 development, test
|
@@ -162,6 +152,7 @@ module RailsAppGenerator
|
|
162
152
|
class_option :add_chartkick , type: :boolean, default: false
|
163
153
|
class_option :add_groupdate , type: :boolean, default: false
|
164
154
|
class_option :add_faker , type: :boolean, default: false
|
155
|
+
class_option :add_hexapdf , type: :boolean, default: false
|
165
156
|
class_option :add_honeybadger , type: :boolean, default: false
|
166
157
|
class_option :add_rails_html_sanitizer , type: :boolean, default: false
|
167
158
|
class_option :add_twilio_ruby , type: :boolean, default: false
|
@@ -314,6 +305,7 @@ module RailsAppGenerator
|
|
314
305
|
add_if(:factory_bot)
|
315
306
|
add_if(:faker)
|
316
307
|
add_if(:generators)
|
308
|
+
add_if(:hexapdf)
|
317
309
|
add_if(:high_voltage)
|
318
310
|
add_if(:honeybadger)
|
319
311
|
add_if(:lograge)
|
@@ -64,6 +64,7 @@ module RailsAppGenerator
|
|
64
64
|
register_option :add_chartkick , type: :boolean, default: false
|
65
65
|
register_option :add_faker , type: :boolean, default: false
|
66
66
|
register_option :add_groupdate , type: :boolean, default: false
|
67
|
+
register_option :add_hexapdf , type: :boolean, default: false
|
67
68
|
register_option :add_honeybadger , type: :boolean, default: false
|
68
69
|
register_option :add_rails_html_sanitizer , type: :boolean, default: false
|
69
70
|
register_option :add_twilio_ruby , type: :boolean, default: false
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "rails_app_generator",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.21",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "rails_app_generator",
|
9
|
-
"version": "0.1.
|
9
|
+
"version": "0.1.21",
|
10
10
|
"dependencies": {
|
11
11
|
"daisyui": "^2.20.0"
|
12
12
|
},
|
data/package.json
CHANGED
@@ -25,8 +25,6 @@ template 'app/views/layouts/application.html.erb' , 'app/views/layouts/a
|
|
25
25
|
|
26
26
|
template 'db/seeds.rb' , 'db/seeds.rb'
|
27
27
|
|
28
|
-
copy_file 'config/initializers/<%= data.name_snake %>.rb' , 'config/initializers/<%= data.name_snake %>.rb'
|
29
|
-
|
30
28
|
after_bundle do
|
31
29
|
setup_db
|
32
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_app_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- ".rspec"
|
153
153
|
- ".rubocop.yml"
|
154
154
|
- ".vscode/settings.json"
|
155
|
+
- '28:'
|
155
156
|
- CHANGELOG.md
|
156
157
|
- CODE_OF_CONDUCT.md
|
157
158
|
- Gemfile
|
@@ -321,6 +322,7 @@ files:
|
|
321
322
|
- after_templates/rag_tailwind_hotwire_form_search/show.html.erb
|
322
323
|
- after_templates/rag_tailwind_hotwire_form_search/theme_changer_controller.js
|
323
324
|
- after_templates/rag_tailwind_hotwire_form_search/update.turbo_stream.erb
|
325
|
+
- app:template
|
324
326
|
- bin/console
|
325
327
|
- bin/setup
|
326
328
|
- docs/images/tailwind.png
|
@@ -352,6 +354,7 @@ files:
|
|
352
354
|
- lib/rails_app_generator/addons/foreman.rb
|
353
355
|
- lib/rails_app_generator/addons/generators.rb
|
354
356
|
- lib/rails_app_generator/addons/groupdate.rb
|
357
|
+
- lib/rails_app_generator/addons/hexapdf.rb
|
355
358
|
- lib/rails_app_generator/addons/high_voltage.rb
|
356
359
|
- lib/rails_app_generator/addons/honeybadger.rb
|
357
360
|
- lib/rails_app_generator/addons/inline_svg.rb
|
@@ -479,7 +482,6 @@ files:
|
|
479
482
|
- templates/thor_task/profile/app/views/layouts/_footer.html.erb.tt
|
480
483
|
- templates/thor_task/profile/app/views/layouts/_navbar.html.erb
|
481
484
|
- templates/thor_task/profile/app/views/layouts/application.html.erb.tt
|
482
|
-
- templates/thor_task/profile/config/initializers/addon_name.rb
|
483
485
|
- templates/thor_task/profile/db/seeds.rb
|
484
486
|
- templates/thor_task/profile/profile.json.tt
|
485
487
|
homepage: http://appydave.com/gems/rails_app_generator
|
@@ -1 +0,0 @@
|
|
1
|
-
# Custom initializer for rails application
|