zen_pro 0.2.1 → 0.2.3

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: f0297d94ba1c2a517efa69d0481a7f01e14094227a52b23a0fbd7645b487ed2e
4
- data.tar.gz: 832c1824d3313ff11de39fa1e0b87b83887e7fda2ce373c4791c63856ceb0124
3
+ metadata.gz: 4fb95600215d1ae8dc1c9acd54b5992db7d8a1032a86679e6048860f340cd4f1
4
+ data.tar.gz: 87ba06fe21599f34def8b6dcea377c8720e04d7ae5c768ee964051114ef1e9bd
5
5
  SHA512:
6
- metadata.gz: 39eb4d9c9498d8f609bd608bc6e331926c93e778d758157d247fca735767d2050c1000926d984021f2b6ba9944cd864af529b09050980870c688e16e641bb4f8
7
- data.tar.gz: 9f37c43cffdc433999a4d375c6503250f6bea9b09cf8c97184671b06717dd72971f2fcd8ea3d740495a486860eee9dd956afc301ceb0ae91bd9450a85676ff21
6
+ metadata.gz: e0ef6086b77678bfbda51dd80b4a148184c2f7511f0ec28037c34e618afa0d718103992da2fb5b00c33c500a1640b7dd86cefe18f7e2502d9b26bc0c2067474b
7
+ data.tar.gz: 31c3c933db1592b535e97b126c623ea8eabec5565cf1dcf425215e24f5531066debfb0d67e210f02b76f25f1c8305c8fd8093ec56a99104fdc93cdc86eb38f39
data/CHANGELOG.md CHANGED
@@ -1,11 +1,25 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2024-05-04
3
+ ## [0.2.3] - 2024-09-23
4
4
 
5
- - Initial release
5
+ - Update global rails gem version to ensure `rails new` always installs latest stable Rails version
6
+ - Show boring_generator installation command before rails new
7
+ - Fix the issue of list of commands before `rails new` showing array for CI setup commands instead of regular list
8
+
9
+ ## [0.2.2] - 2024-06-25
10
+
11
+ - Use custom branch for forked Boring Generators repo instead of main so it is easier to merge changes as required from boring generators later
12
+
13
+ ## [0.2.1] - 2024-06-19
14
+
15
+ - Use boring generators from Zero Config Rails forked repo instead of the actual repo for better stability
6
16
 
7
17
  ## [0.2.0] - 2024-06-04
8
18
 
9
19
  - Authenticate users with API token
10
20
  - Show subscription inactive message if user is on Free plan or has cancelled their subscription
11
21
  - Install and use Boring Generators from main branch instead of the latest released version of the gem
22
+
23
+ ## [0.1.0] - 2024-05-04
24
+
25
+ - Initial release
@@ -31,17 +31,19 @@ module ZenPro
31
31
  rails_generate_command =
32
32
  "rails new #{app_name} #{rails_generator_options}"
33
33
  commands_to_display = [
34
+ "gem update rails",
34
35
  rails_generate_command,
35
- "bundle add boring_generators --group=development",
36
+ boring_generator_installation_command,
36
37
  "bin/setup"
37
38
  ]
38
39
 
39
40
  if after_rails_generate_commands.length.positive?
40
- commands_to_display.insert(2, after_rails_generate_commands)
41
+ commands_to_display.insert(3, after_rails_generate_commands)
41
42
  end
42
43
 
43
44
  commands_to_display =
44
45
  commands_to_display
46
+ .flatten
45
47
  .map
46
48
  .with_index { |command, index| "#{index + 1}. #{command}" }
47
49
  .join("\n")
@@ -54,6 +56,8 @@ module ZenPro
54
56
 
55
57
  continue_if? "\nContinue?"
56
58
 
59
+ prompt.say "Verifying Rails version and updating it with latest stable one (if any)"
60
+ system! "gem update rails"
57
61
  system! rails_generate_command
58
62
 
59
63
  install_boring_generators_gem
@@ -77,6 +81,10 @@ module ZenPro
77
81
  project_configurations["after_rails_generate_commands"]
78
82
  end
79
83
 
84
+ def boring_generator_installation_command
85
+ "bundle add boring_generators --github='Zero-Config-Rails/boring_generators' --branch='zcr-main' --group=development"
86
+ end
87
+
80
88
  def install_boring_generators_gem
81
89
  message = <<~BANNER
82
90
  \nZen requires boring_generators gem to install and configure gems you have chosen, adding it to your project's Gemfile so generators for gems are available inside your app during configuration.\n
@@ -84,9 +92,7 @@ module ZenPro
84
92
 
85
93
  prompt.say message, color: :blue
86
94
 
87
- Dir.chdir(app_name) do
88
- system! "bundle add boring_generators --github=\"Zero-Config-Rails/boring_generators\" --branch=main --group=development"
89
- end
95
+ Dir.chdir(app_name) { system! boring_generator_installation_command }
90
96
  end
91
97
 
92
98
  # TODO: Register everything below this as Thor commands so they can be used throughout the app
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZenPro
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zen_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prabin Poudel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-19 00:00:00.000000000 Z
11
+ date: 2024-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client