zen_pro 0.2.2 → 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: 5c11d599562ac6ec0771c0fea2107349c4e222161f008de71481efbacb934787
4
- data.tar.gz: 624a55012cb95f4baa0e98d977413b9d48585eca1c80aad64d300a302cd679d7
3
+ metadata.gz: 4fb95600215d1ae8dc1c9acd54b5992db7d8a1032a86679e6048860f340cd4f1
4
+ data.tar.gz: 87ba06fe21599f34def8b6dcea377c8720e04d7ae5c768ee964051114ef1e9bd
5
5
  SHA512:
6
- metadata.gz: c69f40e9a956b5e2af7198ea225927e69866d7791818f033597cfb5d94f6a06a94e04e5933c83710f875a067d5ebc17a333b2182da52758c6bd70181ed7cda8c
7
- data.tar.gz: c2b62387deec21a2a81105d489b33efd1f7afeb183998170db120a4a9b898aa357852bcc981febe29129fb598732b23fa9d925424e4c69770857906216be02f8
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='zcr-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.2"
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.2
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-25 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