devops_assist 0.1.0 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.release_history.yml +10 -0
- data/Gemfile.lock +5 -5
- data/lib/devops_assist/gem/gem.rb +2 -1
- data/lib/devops_assist/version.rb +1 -1
- data/tasks/devops_assist.rake +9 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2df0a8598b82e5b3206a9a3a4b4cd58c25c80e426854240dd7f414a78e94256
|
4
|
+
data.tar.gz: 12bfe30ebe2e41c535c2bb5f66b51555ee997ba663e020fa75136221160acfd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111483a6e71f488a3ad350ea39ea8986498cfa64ffadb563ce5fec28979d44b65821a97034e983253d7288a8d807bba9ee0b70e34e712494cc7cfc2a9a8ed4d6
|
7
|
+
data.tar.gz: 7711afedae12330d72988d40c20ecb65c8c9c0a1ff60d3fbb811ef8b5739e7d5e08e219eb971554d2588d64dc6cb23703bedb977f01cbe8b8e250733ec1eb1e3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
devops_assist (0.1.
|
4
|
+
devops_assist (0.1.3)
|
5
5
|
git_cli
|
6
6
|
git_cli_prompt
|
7
7
|
gvcs
|
@@ -19,7 +19,7 @@ GEM
|
|
19
19
|
ptools (~> 1.4.0)
|
20
20
|
tlogger
|
21
21
|
toolrack
|
22
|
-
git_cli_prompt (0.2.
|
22
|
+
git_cli_prompt (0.2.2)
|
23
23
|
tlogger
|
24
24
|
toolrack
|
25
25
|
tty-prompt
|
@@ -40,9 +40,9 @@ GEM
|
|
40
40
|
rspec-mocks (3.10.2)
|
41
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
42
|
rspec-support (~> 3.10.0)
|
43
|
-
rspec-support (3.10.
|
44
|
-
tlogger (0.26.
|
45
|
-
toolrack (0.
|
43
|
+
rspec-support (3.10.3)
|
44
|
+
tlogger (0.26.3)
|
45
|
+
toolrack (0.17.0)
|
46
46
|
base58
|
47
47
|
tlogger
|
48
48
|
tty-color (0.6.0)
|
@@ -17,7 +17,8 @@ module DevopsAssist
|
|
17
17
|
if version_file.length > 1
|
18
18
|
if block
|
19
19
|
selVerFile = block.call(:select_version_file, version_file)
|
20
|
-
|
20
|
+
p selVerFile
|
21
|
+
raise GemError, "Multiple version files found and user not selected any" if is_empty?(selVerFile)
|
21
22
|
else
|
22
23
|
raise GemError, "Multiple version files found. Please provide a block to select version file or make sure there is no other file named version.rb"
|
23
24
|
end
|
data/tasks/devops_assist.rake
CHANGED
@@ -22,6 +22,9 @@ namespace :devops do
|
|
22
22
|
res = Rake::Task["devops:vcs:checkin_changes"].execute
|
23
23
|
pmt.say " Workspace check in done\n", color: :yellow
|
24
24
|
|
25
|
+
proceed = pmt.yes?(" Proceed with release? ")
|
26
|
+
raise GitCliPrompt::UserAborted if not proceed
|
27
|
+
|
25
28
|
rl = DevopsAssist::ReleaseLogger.load
|
26
29
|
|
27
30
|
# select version
|
@@ -48,7 +51,12 @@ namespace :devops do
|
|
48
51
|
# publish gem
|
49
52
|
Rake::Task["devops:gem:publish_gem"].execute({ version: ver, pmt: pmt })
|
50
53
|
|
51
|
-
|
54
|
+
# following files shall change when gem is built
|
55
|
+
miscFiles = []
|
56
|
+
miscFiles << selVerFile
|
57
|
+
miscFiles << DevopsAssist::ReleaseLogger::LOG_NAME
|
58
|
+
miscFiles << 'Gemfile.lock'
|
59
|
+
Rake::Task["devops:vcs:checkin_misc_files"].execute({ root: root, files: miscFiles, version: ver })
|
52
60
|
pmt.say " Updated files during release prep have committed into version control", color: :yellow
|
53
61
|
|
54
62
|
Rake::Task["devops:vcs:tag_source_code"].execute({ root: root, version: ver })
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devops_assist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Liaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toolrack
|
@@ -101,6 +101,7 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
+
- ".release_history.yml"
|
104
105
|
- ".rspec"
|
105
106
|
- Gemfile
|
106
107
|
- Gemfile.lock
|