rails_app_generator 0.2.25 → 0.2.26

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: f540e53519b46581a9bc18d4db37766d6ac38a27a7493732058aa83254caf62e
4
- data.tar.gz: da9ecf9716c196663b3d8be4d18e070fadf5f8f3ef4c6c501fbc213f2130a9db
3
+ metadata.gz: '0080278d3ec15331c53403ac5ff928f153f26c4fddcc5d066d5c5104155600d8'
4
+ data.tar.gz: '07905d7681aac0916bc0ebdcb5eabaf8f6568c4ba52e1ed09109043ca4352eb7'
5
5
  SHA512:
6
- metadata.gz: 7b16806642e285948098aa32af0454f86288a466db8decd5fda79ceb9a2cdbf4d63fa439631d42fc4cf5d45b7b8bc23fc05c2472c781870dd5306cb65940e3dd
7
- data.tar.gz: dd0a91e5039ae9f3b450f62624f40651a3fc7e036c3a52a8d9a4d2b582958f95b32fc6d51f57742bf4e9e156714bd5ecb5784fa1030a1de4f5e8c6d16199ff7b
6
+ metadata.gz: 5e903d7fb73c50d7f04fa6c9f7e3658a4c13bda299066bf8439de52734a55ff20e6e32858eb3689e3a9360604f2f4fbcf2fa7375053f63931ad8ad77399391a7
7
+ data.tar.gz: 6f17a342e51ed8304e0b127b2d57b25162747d8dd7fbd0222855ada67fc99e08dca4b81559cf6447e2e00640fe22f03cb66d8a62bce87f49ce3f0975ae0c1555
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.2.25](https://github.com/klueless-io/rails_app_generator/compare/v0.2.24...v0.2.25) (2022-08-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add devise_masquerade profile ([d34668c](https://github.com/klueless-io/rails_app_generator/commit/d34668cf2af1103ebee888ef3c78498e8323b1a5))
7
+
1
8
  ## [0.2.24](https://github.com/klueless-io/rails_app_generator/compare/v0.2.23...v0.2.24) (2022-08-16)
2
9
 
3
10
 
@@ -12,12 +12,6 @@ module RailsAppGenerator
12
12
  def apply
13
13
  # NOTE: update_routes_with_devise_controllers is being handled in devise.rb addon
14
14
  end
15
-
16
- # def update_routes_with_devise_controllers
17
- # in_root do
18
- # gsub_file 'config/routes.rb', /registrations: "users\/registrations"/, 'registrations: "users/registrations", masquerades: "users/masquerades"'
19
- # end
20
- # end
21
15
  end
22
16
  end
23
17
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsAppGenerator
4
+ # Custom add-ons for RailsAppGenerator
5
+ module AddOns
6
+ # Add Pretender to rails application
7
+ class Pretender < RailsAppGenerator::Addon
8
+ required_gem gem.version('pretender', '0.4.0', 'Log in as another user in Rails')
9
+
10
+ def apply; end
11
+ end
12
+ end
13
+ end
@@ -192,8 +192,9 @@ module RailsAppGenerator
192
192
  add_if(:minimal_css) # tested (this is NOT a GEM)
193
193
  add_if(:mini_magick) # tested
194
194
  add_if(:motor_magick) # tested
195
- add_if(:public_suffix) # tested
196
195
  add_if(:phony_rails) # tested
196
+ add_if(:pretender) # tested
197
+ add_if(:public_suffix) # tested
197
198
  add_if(:pundit) # TODO: needs testing
198
199
  add_if(:rails_html_sanitizer) # tested
199
200
  add_if(:rails_app_generator) # TODO: needs testing
@@ -128,8 +128,9 @@ KConfig.configure do |config|
128
128
  rag.add_option :minimal_css_library , type: :string, default: 'water.css', description: "Minimal CSS library to get you started. [options: water.css (default)]"
129
129
  rag.add_option :add_mini_magick , type: :boolean, default: false
130
130
  rag.add_option :add_motor_admin , type: :boolean, default: false
131
- rag.add_option :add_public_suffix , type: :boolean, default: false
132
131
  rag.add_option :add_phony_rails , type: :boolean, default: false
132
+ rag.add_option :add_pretender , type: :boolean, default: false
133
+ rag.add_option :add_public_suffix , type: :boolean, default: false
133
134
  # pundit
134
135
  rag.add_option :add_rails_html_sanitizer , type: :boolean, default: false
135
136
  # rails_app_generator
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppGenerator
4
- VERSION = '0.2.25'
4
+ VERSION = '0.2.26'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "rails_app_generator",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "rails_app_generator",
9
- "version": "0.2.25",
9
+ "version": "0.2.26",
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.25",
3
+ "version": "0.2.26",
4
4
  "description": "Create new Rails Application with custom opinions",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
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.25
4
+ version: 0.2.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
@@ -592,6 +592,7 @@ files:
592
592
  - lib/rails_app_generator/addons/minimal_css.rb
593
593
  - lib/rails_app_generator/addons/motor_admin.rb
594
594
  - lib/rails_app_generator/addons/phony_rails.rb
595
+ - lib/rails_app_generator/addons/pretender.rb
595
596
  - lib/rails_app_generator/addons/public_suffix.rb
596
597
  - lib/rails_app_generator/addons/pundit.rb
597
598
  - lib/rails_app_generator/addons/rails_html_sanitizer.rb