rails_app_generator 0.2.34 → 0.2.35

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b3d7a66cf0c689a6ae83cdf1bf1222b0027b26b71099970c1e1025d04abb86e
4
- data.tar.gz: 51a7736f7d181418b5385f72922d53ea4762e445f18946ca467e40ab9b41ae96
3
+ metadata.gz: fbf16a835761fc7ad807353e6c4cc4fcd9fee78f67897f5c9b22110d43bc4167
4
+ data.tar.gz: abb73230ba63f0d63a5056cf05c6bd4f0c0a6bbffe402a178751543ca6f57aa7
5
5
  SHA512:
6
- metadata.gz: d354a5e6692cab7168c879df4c44824b171c97a5699e3a5416f067ed0a40ee2910ad2cbf0e74a25ac94ac229d859a01dcf92f4689023405a352260cc2bf3258c
7
- data.tar.gz: 9c65703baf6aef3a6c224c936a29847e5ba960ab9a0e7a86aa5620f9910801d7b8f6c1a69df9d8411555e274a597b181dd257bf485cb73b174be3a6a345a4e20
6
+ metadata.gz: 8be0848339b684174be11a6690ac20721e6605431b4e89cb38837db13c714754c0767c60525d8b102d28c334223905a3a1d636092f1412b557346fe8cbc93837
7
+ data.tar.gz: 61402434c5669869a6003ab1d69b2ce17d915ea225705768c7bd60e4b2178478a0b15c5c9a4be789fcfe6ba616f4638fbec629befb9b81e5ac47cb630f89873c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.2.34](https://github.com/klueless-io/rails_app_generator/compare/v0.2.33...v0.2.34) (2022-08-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add kaminari profile ([f9b044b](https://github.com/klueless-io/rails_app_generator/commit/f9b044b6e718fdfa851562ea7d4ddab39066d0de))
7
+
1
8
  ## [0.2.33](https://github.com/klueless-io/rails_app_generator/compare/v0.2.32...v0.2.33) (2022-08-19)
2
9
 
3
10
 
@@ -4,7 +4,8 @@
4
4
  #
5
5
  # exe/rag addons/avo
6
6
  #
7
- # based on: https://www.youtube.com/watch?v=WgNK-oINFww
7
+ # based on: https://youtu.be/WgNK-oINFww
8
+ # https://youtu.be/BK47E7TMXn0
8
9
 
9
10
  self.local_template_path = File.dirname(__FILE__)
10
11
 
@@ -35,6 +36,9 @@ def setup_db
35
36
  add_scaffold('category', 'title:string', 'description:text')
36
37
  add_scaffold('post', 'title:string content:text', 'published:boolean', 'author:references', 'category:references')
37
38
  add_scaffold('product', 'name', 'quantity:integer', 'price:decimal', 'author:references')
39
+ add_scaffold('location', 'name', 'description:text', 'photo:file')
40
+ add_scaffold('room', 'name', 'description:text', 'photo:file', 'location:references')
41
+ add_scaffold('booking', 'user:references', 'room:references', 'booked_at:timestamp', 'booked_for:number')
38
42
 
39
43
  db_migrate
40
44
  db_seed
@@ -32,14 +32,14 @@
32
32
  "test": "rspec",
33
33
  "add_acts_as_list": false,
34
34
  "add_administrate": false,
35
- "add_annotate": false,
36
- "add_avo": false,
35
+ "add_annotate": true,
36
+ "add_avo": true,
37
37
  "add_bcrypt": false,
38
38
  "add_brakeman": false,
39
39
  "add_browser": false,
40
40
  "add_bundler_audit": false,
41
41
  "add_chartkick": false,
42
- "add_devise": false,
42
+ "add_devise": true,
43
43
  "add_devise_masquerade": false,
44
44
  "add_dotenv": false,
45
45
  "add_faker": true,
@@ -47,7 +47,7 @@
47
47
  "add_hexapdf": false,
48
48
  "add_httparty": false,
49
49
  "add_honeybadger": false,
50
- "add_kaminari": true,
50
+ "add_kaminari": false,
51
51
  "add_lograge": false,
52
52
  "add_minimal_css": true,
53
53
  "minimal_css_library": "water.css",
@@ -59,8 +59,8 @@
59
59
  "add_rails_html_sanitizer": false,
60
60
  "add_redcarpet": false,
61
61
  "add_rolify": false,
62
- "add_rubocop": false,
62
+ "add_rubocop": true,
63
63
  "add_twilio_ruby": false,
64
- "template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/kaminari/_.rb"
64
+ "template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/avo/_.rb"
65
65
  }
66
66
  }
@@ -7,7 +7,7 @@
7
7
  "quiet": false,
8
8
  "skip": false,
9
9
  "ruby": "/Users/davidcruwys/.asdf/installs/ruby/2.7.6/bin/ruby",
10
- "template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/kaminari/_.rb",
10
+ "template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/addons/avo/_.rb",
11
11
  "database": "sqlite3",
12
12
  "skip_git": true,
13
13
  "skip_keeps": false,
@@ -42,14 +42,14 @@
42
42
  "test": "rspec",
43
43
  "add_acts_as_list": false,
44
44
  "add_administrate": false,
45
- "add_annotate": false,
46
- "add_avo": false,
45
+ "add_annotate": true,
46
+ "add_avo": true,
47
47
  "add_bcrypt": false,
48
48
  "add_brakeman": false,
49
49
  "add_browser": false,
50
50
  "add_bundler_audit": false,
51
51
  "add_chartkick": false,
52
- "add_devise": false,
52
+ "add_devise": true,
53
53
  "add_devise_masquerade": false,
54
54
  "add_dotenv": false,
55
55
  "add_faker": true,
@@ -57,7 +57,7 @@
57
57
  "add_hexapdf": false,
58
58
  "add_httparty": false,
59
59
  "add_honeybadger": false,
60
- "add_kaminari": true,
60
+ "add_kaminari": false,
61
61
  "add_lograge": false,
62
62
  "add_minimal_css": true,
63
63
  "minimal_css_library": "water.css",
@@ -69,7 +69,7 @@
69
69
  "add_rails_html_sanitizer": false,
70
70
  "add_redcarpet": false,
71
71
  "add_rolify": false,
72
- "add_rubocop": false,
72
+ "add_rubocop": true,
73
73
  "add_twilio_ruby": false
74
74
  }
75
75
  }
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsAppGenerator
4
+ # Custom add-ons for RailsAppGenerator
5
+ module AddOns
6
+ # Add ImageProcessing to rails application
7
+ class ImageProcessing < RailsAppGenerator::Addon
8
+ required_gem gem.version('image_processing', '1.12.2', '')
9
+
10
+ def apply
11
+ say 'Setting up ImageProcessing'
12
+ end
13
+
14
+ def before_template; end
15
+
16
+ def before_bundle; end
17
+
18
+ def after_bundle; end
19
+ end
20
+ end
21
+ end
@@ -190,6 +190,7 @@ module RailsAppGenerator
190
190
  add_if(:httparty) # tested
191
191
  add_if(:high_voltage) # TODO: needs testing
192
192
  add_if(:honeybadger) # tested
193
+ add_if(:image_processing) # tested
193
194
  add_if(:kaminari) # tested
194
195
  add_if(:lograge) # tested
195
196
  add_if(:minimal_css) # tested (this is NOT a GEM)
@@ -125,6 +125,7 @@ KConfig.configure do |config|
125
125
  rag.add_option :add_httparty , type: :boolean, default: false
126
126
  # high_voltage
127
127
  rag.add_option :add_honeybadger , type: :boolean, default: false
128
+ rag.add_option :add_image_processing , type: :boolean, default: false
128
129
  rag.add_option :add_kaminari , type: :boolean, default: false
129
130
  rag.add_option :add_lograge , type: :boolean, default: false
130
131
  rag.add_option :add_minimal_css , type: :boolean, default: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppGenerator
4
- VERSION = '0.2.34'
4
+ VERSION = '0.2.35'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "rails_app_generator",
3
- "version": "0.2.34",
3
+ "version": "0.2.35",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "rails_app_generator",
9
- "version": "0.2.34",
9
+ "version": "0.2.35",
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.34",
3
+ "version": "0.2.35",
4
4
  "description": "Create new Rails Application with custom opinions",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
@@ -11,6 +11,7 @@
11
11
  "add_avo": true,
12
12
  "add_devise": true,
13
13
  "add_faker": true,
14
- "add_rubocop": true
14
+ "add_rubocop": true,
15
+ "add_minimal_css": true
15
16
  }
16
17
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_app_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.34
4
+ version: 0.2.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-19 00:00:00.000000000 Z
11
+ date: 2022-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap
@@ -643,6 +643,7 @@ files:
643
643
  - lib/rails_app_generator/addons/high_voltage.rb
644
644
  - lib/rails_app_generator/addons/honeybadger.rb
645
645
  - lib/rails_app_generator/addons/httparty.rb
646
+ - lib/rails_app_generator/addons/image_processing.rb
646
647
  - lib/rails_app_generator/addons/inline_svg.rb
647
648
  - lib/rails_app_generator/addons/irbrc.rb
648
649
  - lib/rails_app_generator/addons/kaminari.rb