rails_app_generator 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 245051d1035ecf7bc5f83440de6bb0ef082b38f7db0ac1017e634fc3deacb28e
4
- data.tar.gz: 1f230bce7bbfa02e7101bd7975f830d40f6076b88738687505dac78f20b90ce2
3
+ metadata.gz: e595153d8d04b113b8c54db0d8571752deaa017ae6b0cdefa401999ea85d9853
4
+ data.tar.gz: 36fec67777c02fb9c6f7d9c1fe3fd2dd84e67404b52b19bfffef13e9d09e20a1
5
5
  SHA512:
6
- metadata.gz: 572dbb657afd55e047ee26d18fd2f1b7c6fcdeaca522d9de2c3917d2404bf022d5cb72a0e9feb255dbb1956095ea091f3f1fddb99e9858beaec5cdc299241893
7
- data.tar.gz: a9f58cfcb066af3285caee20ad039699eda992121b9bbe818f0c68ee51135e4cb4f1640272e0cf730d5d5c1ef7aa81d412c33f83cb851e49e7f11fe07595a98d
6
+ metadata.gz: bba13cc58a961de6af36ce8f7bd4f1d42bb3457c63a9f5cec283bd1cea7fda8f1ab6d8e30eb6a216653a986aadd4b4dd0b74964c7952001523bbc624844ff4cc
7
+ data.tar.gz: ebe4c29f6d73c47de6568a2687bedd9648fc828e29befe7481517af22e7d07417ef715b4b578d9fd527d215e32b4ca94439c154b170ddb366cb7b70beb412ef1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.2.9](https://github.com/klueless-io/rails_app_generator/compare/v0.2.8...v0.2.9) (2022-08-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add redcarpet addon ([fb8acf0](https://github.com/klueless-io/rails_app_generator/commit/fb8acf09d3d1be3d4eb9b82e5fc1d9af1fea0e0c))
7
+
1
8
  ## [0.2.8](https://github.com/klueless-io/rails_app_generator/compare/v0.2.7...v0.2.8) (2022-08-11)
2
9
 
3
10
 
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsAppGenerator
4
+ # Custom add-ons for RailsAppGenerator
5
+ module AddOns
6
+ # Add Administrate to rails application
7
+ class Administrate < RailsAppGenerator::Addon
8
+ required_gem gem.version('administrate', '0.17.0', 'Administrate is inspired by Rails Admin and ActiveAdmin, but aims to provide a better developer/user experience.')
9
+
10
+ def apply
11
+ say 'Setting up Administrate'
12
+ # template('administrate_template.rb', 'target/administrate.rb', force: true)
13
+ # template('app/javascript/stylesheets/components.scss')
14
+ # create_file('target/administrate.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 Administrate - before bundle install'
23
+ end
24
+
25
+ def after_bundle
26
+ say 'Setting up Administrate - after bundle install'
27
+ end
28
+ end
29
+ end
30
+ end
@@ -107,6 +107,7 @@ KConfig.configure do |config|
107
107
 
108
108
  # NEW GEM ADDONS
109
109
  rag.add_option :add_acts_as_list , type: :boolean, default: false
110
+ rag.add_option :add_administrate , type: :boolean, default: false
110
111
  rag.add_option :add_browser , type: :boolean, default: false
111
112
  rag.add_option :add_bcrypt_ruby , type: :boolean, default: false
112
113
  rag.add_option :add_chartkick , type: :boolean, default: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppGenerator
4
- VERSION = '0.2.9'
4
+ VERSION = '0.2.10'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "rails_app_generator",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "rails_app_generator",
9
- "version": "0.2.9",
9
+ "version": "0.2.10",
10
10
  "dependencies": {
11
11
  "daisyui": "^2.20.0"
12
12
  },
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rails_app_generator",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Create new Rails Application with custom opinions",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # lib/rails_app_generator/rag_initializer.rb
4
- # rag.add_option :add_<%= data.name_snake %> , type: :boolean, default: false
4
+ # rag.add_option :add_<%= data.name_snake %> , type: :boolean, default: false
5
5
 
6
6
  module RailsAppGenerator
7
7
  # Custom add-ons for RailsAppGenerator
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.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
@@ -486,6 +486,7 @@ files:
486
486
  - lib/rails_app_generator/addon.rb
487
487
  - lib/rails_app_generator/addon_util.rb
488
488
  - lib/rails_app_generator/addons/acts_as_list.rb
489
+ - lib/rails_app_generator/addons/administrate.rb
489
490
  - lib/rails_app_generator/addons/annotate.rb
490
491
  - lib/rails_app_generator/addons/bcrypt_ruby.rb
491
492
  - lib/rails_app_generator/addons/browser.rb