zen_pro 0.2.2 → 0.2.4
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 +4 -4
- data/CHANGELOG.md +16 -2
- data/README.md +1 -1
- data/lib/zen_pro/cli.rb +2 -1
- data/lib/zen_pro/commands/create.rb +12 -6
- data/lib/zen_pro/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea26de21d2008aad4b0f7415df4dc4f6e3f6ff72a9756febc4c2f6a74773897e
|
4
|
+
data.tar.gz: fbc9b8c2211c6faa963812fbdfd74a7e297f9d97e12064b9f07064592cc1c00a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0bd8b1c6783739ccaa29741e9c1d0047f405d8dfd5a76b196455b8b64083e9cff1d0072ee1ef26275925519cdcb61f2cb93d963fc391b5c5a6426207ae1af4f
|
7
|
+
data.tar.gz: 0f871f7289541d62a4fcda62ec9b661c8d6c0e5407428c55c4c17fb7c6769cb0c322d8be22eed106ee3224136c0765cbae5708c0e20329b52f41044c05b09dc8
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
-
## [0.
|
3
|
+
## [0.2.3] - 2024-09-23
|
4
4
|
|
5
|
-
-
|
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
|
data/README.md
CHANGED
data/lib/zen_pro/cli.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "thor"
|
2
2
|
|
3
|
+
require_relative "./version"
|
3
4
|
require_relative "commands/generate"
|
4
5
|
require_relative "commands/session"
|
5
6
|
require_relative "commands/configure"
|
@@ -27,7 +28,7 @@ module ZenPro
|
|
27
28
|
|
28
29
|
desc "version", "Display gem version", hide: true
|
29
30
|
def version
|
30
|
-
say "
|
31
|
+
say "#{VERSION} #{RUBY_DESCRIPTION}"
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -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
|
-
|
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(
|
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
|
@@ -66,7 +70,7 @@ module ZenPro
|
|
66
70
|
end
|
67
71
|
|
68
72
|
def run_bin_setup
|
69
|
-
Dir.chdir(app_name) { system! "bin/setup" }
|
73
|
+
Dir.chdir(app_name) { system! "bin/setup --skip-server" }
|
70
74
|
end
|
71
75
|
|
72
76
|
def rails_generator_options
|
@@ -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)
|
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
|
data/lib/zen_pro/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.4
|
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-
|
11
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.5.
|
127
|
+
rubygems_version: 3.5.20
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: CLI for https://zeroconfigrails.com
|