souls 0.26.6 → 0.26.7
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/exe/souls +1 -31
- data/lib/souls.rb +3 -3
- data/lib/souls/release.rb +6 -0
- data/lib/souls/release/methods.rb +39 -0
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07a268eb135f4ca4ea45eb8249231c9fc816695012de869aeb4b1df50fa2b25f
|
4
|
+
data.tar.gz: 994e784b8ecf513a97df0c2227a96b26c115d1dacc85c989d002e9f714deb204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27f41b2976489276d4597fce40e333f2bb314c34a6aa89178d4a74bc3ea9a45d74d635583a82c62ab8e6b2e11a836172d71afbb7edbb3cf01ba48d50d47d05b6
|
7
|
+
data.tar.gz: 2a2c09c4df16367eebd6144f2955d12782d3d6add3f7d37ebfa404ef02bd7e449775c54cc2698466ab7b1b9ff3559d9a2f8d84f08f7e7f27c4d6502f46e7ce57
|
data/exe/souls
CHANGED
@@ -54,37 +54,7 @@ begin
|
|
54
54
|
Whirly.status = "Done!"
|
55
55
|
end
|
56
56
|
when "release"
|
57
|
-
|
58
|
-
sleep(3)
|
59
|
-
current_souls_ver = Souls::VERSION.strip.split(".").map(&:to_i)
|
60
|
-
prompt = TTY::Prompt.new
|
61
|
-
choices = [
|
62
|
-
"1. Patch(#{Souls.version_detector(current_ver: current_souls_ver, update_kind: 'patch')})",
|
63
|
-
"2. Minor(#{Souls.version_detector(current_ver: current_souls_ver, update_kind: 'minor')})",
|
64
|
-
"3. Major(#{Souls.version_detector(current_ver: current_souls_ver, update_kind: 'major')})"
|
65
|
-
]
|
66
|
-
choice_num = prompt.select("Select Version: ", choices)[0].to_i
|
67
|
-
update_kinds = %w[patch minor major]
|
68
|
-
update_kind = update_kinds[choice_num - 1]
|
69
|
-
souls_new_ver = Souls.version_detector(current_ver: current_souls_ver, update_kind: update_kind)
|
70
|
-
|
71
|
-
status = Paint["Saving Repo...", :yellow]
|
72
|
-
Whirly.start(spinner: "clock", interval: 420, stop: "🎉") do
|
73
|
-
Whirly.status = status
|
74
|
-
%w[api worker].each do |s_name|
|
75
|
-
result = Paint[Souls.update_repo(service_name: s_name, update_kind: update_kind), :green]
|
76
|
-
Whirly.status = result
|
77
|
-
end
|
78
|
-
Souls.overwrite_version(new_version: souls_new_ver)
|
79
|
-
puts("before add")
|
80
|
-
system("git add .")
|
81
|
-
puts("before commit")
|
82
|
-
system("git commit -m 'souls update v#{souls_new_ver}'")
|
83
|
-
puts("before build")
|
84
|
-
system("rake build")
|
85
|
-
system("rake release")
|
86
|
-
Whirly.status = Paint["soul-v#{souls_new_ver} successfully updated!"]
|
87
|
-
end
|
57
|
+
Souls::Release.return_method
|
88
58
|
when "update"
|
89
59
|
puts(Paint["Coming soon..", :cyan])
|
90
60
|
when "add"
|
data/lib/souls.rb
CHANGED
@@ -3,6 +3,7 @@ require "active_support/core_ext/string/inflections"
|
|
3
3
|
require_relative "souls/init"
|
4
4
|
require_relative "souls/generate"
|
5
5
|
require_relative "souls/gcloud"
|
6
|
+
require_relative "souls/release"
|
6
7
|
require "dotenv/load"
|
7
8
|
require "json"
|
8
9
|
require "fileutils"
|
@@ -174,7 +175,6 @@ module Souls
|
|
174
175
|
bucket_url = "gs://souls-bucket/boilerplates"
|
175
176
|
file_name = "#{service_name}-v#{new_ver}.tgz"
|
176
177
|
release_name = "#{service_name}-latest.tgz"
|
177
|
-
update_service_gemfile(service_name: service_name)
|
178
178
|
|
179
179
|
case current_dir_name
|
180
180
|
when "souls"
|
@@ -257,7 +257,7 @@ module Souls
|
|
257
257
|
end
|
258
258
|
end
|
259
259
|
|
260
|
-
def update_service_gemfile(service_name: "api")
|
260
|
+
def update_service_gemfile(service_name: "api", version: "0.0.1")
|
261
261
|
file_dir = "./apps/#{service_name}"
|
262
262
|
file_path = "#{file_dir}/Gemfile"
|
263
263
|
gemfile_lock = "#{file_dir}/Gemfile.lock"
|
@@ -269,7 +269,7 @@ module Souls
|
|
269
269
|
if gem[0] == "souls"
|
270
270
|
old_ver = gem[1].split(".")
|
271
271
|
old_ver[2] = (old_ver[2].to_i + 1).to_s
|
272
|
-
new_line.write(" gem \"souls\", \"#{
|
272
|
+
new_line.write(" gem \"souls\", \"#{version}\"\n")
|
273
273
|
else
|
274
274
|
new_line.write(line)
|
275
275
|
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Souls
|
2
|
+
module Release
|
3
|
+
class << self
|
4
|
+
def return_method
|
5
|
+
system("gem install souls")
|
6
|
+
sleep(3)
|
7
|
+
current_souls_ver = Souls::VERSION.strip.split(".").map(&:to_i)
|
8
|
+
prompt = TTY::Prompt.new
|
9
|
+
choices = [
|
10
|
+
"1. Patch(#{Souls.version_detector(current_ver: current_souls_ver, update_kind: 'patch')})",
|
11
|
+
"2. Minor(#{Souls.version_detector(current_ver: current_souls_ver, update_kind: 'minor')})",
|
12
|
+
"3. Major(#{Souls.version_detector(current_ver: current_souls_ver, update_kind: 'major')})"
|
13
|
+
]
|
14
|
+
choice_num = prompt.select("Select Version: ", choices)[0].to_i
|
15
|
+
update_kinds = %w[patch minor major]
|
16
|
+
update_kind = update_kinds[choice_num - 1]
|
17
|
+
souls_new_ver = Souls.version_detector(current_ver: current_souls_ver, update_kind: update_kind)
|
18
|
+
status = Paint["Saving Repo...", :yellow]
|
19
|
+
Whirly.start(spinner: "clock", interval: 420, stop: "🎉") do
|
20
|
+
Whirly.status = status
|
21
|
+
%w[api worker].each do |s_name|
|
22
|
+
Souls.update_service_gemfile(service_name: s_name, version: souls_new_ver)
|
23
|
+
result = Paint[Souls.update_repo(service_name: s_name, update_kind: update_kind), :green]
|
24
|
+
Whirly.status = result
|
25
|
+
end
|
26
|
+
Souls.overwrite_version(new_version: souls_new_ver)
|
27
|
+
puts("before add")
|
28
|
+
system("git add .")
|
29
|
+
puts("before commit")
|
30
|
+
system("git commit -m 'souls update v#{souls_new_ver}'")
|
31
|
+
puts("before build")
|
32
|
+
system("rake build")
|
33
|
+
system("rake release")
|
34
|
+
Whirly.status = Paint["soul-v#{souls_new_ver} successfully updated!"]
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-08-
|
13
|
+
date: 2021-08-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -124,6 +124,8 @@ files:
|
|
124
124
|
- lib/souls/generate/rspec_resolver.rb
|
125
125
|
- lib/souls/generate/type.rb
|
126
126
|
- lib/souls/init.rb
|
127
|
+
- lib/souls/release.rb
|
128
|
+
- lib/souls/release/methods.rb
|
127
129
|
- lib/souls/version.rb
|
128
130
|
- lib/souls/versions/.souls_api_version
|
129
131
|
- lib/souls/versions/.souls_worker_version
|