devops_assist 0.1.3 → 0.2.1
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 +6 -0
- data/devops_assist.gemspec +2 -1
- data/lib/devops_assist/gem/gem.rb +5 -4
- data/lib/devops_assist/version.rb +1 -1
- data/lib/devops_assist.rb +1 -1
- data/tasks/devops_assist.rake +6 -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: ebdaf870d19aabb7f4090b013bc6b470504d09362a02882d25409be9c0aa0934
|
4
|
+
data.tar.gz: 47c4a2020605840ec5b38ee040a77a7d86cc9708404332292314d28d2d8d6dbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 870d8999ad101743581295ac9cc0fbcf02f9ef40cb169dc178dbfa53f33095fc9f77064cc9a31832d65ea0506b8359d4745e11a42be595552331b571d9e34d9b
|
7
|
+
data.tar.gz: 5d350ea750ebd164a163922c1905c69c6b7b6a4f0c88b8f08536b11152910cdf3b81e52448b85cb925f0a63957197377b48a6c4ba56ae36af928b52fc1e4d551
|
data/.release_history.yml
CHANGED
data/devops_assist.gemspec
CHANGED
@@ -31,7 +31,8 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
33
|
spec.add_dependency 'toolrack'
|
34
|
-
spec.add_dependency 'tlogger'
|
34
|
+
#spec.add_dependency 'tlogger'
|
35
|
+
spec.add_dependency 'teLogger'
|
35
36
|
spec.add_dependency 'tty-prompt'
|
36
37
|
|
37
38
|
spec.add_dependency 'gvcs'
|
@@ -17,9 +17,9 @@ module DevopsAssist
|
|
17
17
|
if version_file.length > 1
|
18
18
|
if block
|
19
19
|
selVerFile = block.call(:select_version_file, version_file)
|
20
|
-
raise GemError, "Multiple version files found and user not selected any" if is_empty?(selVerFile)
|
20
|
+
raise GemError, "Multiple version files found (#{version_file.join(", ")}) and user not selected any" if is_empty?(selVerFile)
|
21
21
|
else
|
22
|
-
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"
|
22
|
+
raise GemError, "Multiple version files found (#{version_file.join(", ")}). Please provide a block to select version file or make sure there is no other file named version.rb"
|
23
23
|
end
|
24
24
|
else
|
25
25
|
selVerFile = version_file.first
|
@@ -70,7 +70,7 @@ module DevopsAssist
|
|
70
70
|
|
71
71
|
# find the package
|
72
72
|
root = opts[:root] || Dir.getwd
|
73
|
-
foundGem = Dir.glob("**/*-#{version}
|
73
|
+
foundGem = Dir.glob("**/*-#{version}*.gem")
|
74
74
|
if foundGem.length == 0
|
75
75
|
raise GemError, "No built gem found."
|
76
76
|
elsif foundGem.length > 1
|
@@ -120,7 +120,8 @@ module DevopsAssist
|
|
120
120
|
private
|
121
121
|
def logger
|
122
122
|
if @logger.nil?
|
123
|
-
@logger = Tlogger.new
|
123
|
+
@logger = TeLogger::Tlogger.new
|
124
|
+
@logger.tag = :gem
|
124
125
|
end
|
125
126
|
@logger
|
126
127
|
end
|
data/lib/devops_assist.rb
CHANGED
data/tasks/devops_assist.rake
CHANGED
@@ -51,7 +51,12 @@ namespace :devops do
|
|
51
51
|
# publish gem
|
52
52
|
Rake::Task["devops:gem:publish_gem"].execute({ version: ver, pmt: pmt })
|
53
53
|
|
54
|
-
|
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 })
|
55
60
|
pmt.say " Updated files during release prep have committed into version control", color: :yellow
|
56
61
|
|
57
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.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Liaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toolrack
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: teLogger
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|