ZReviewTender 1.2.0 → 1.2.3
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/.version +1 -1
- data/bin/ZReviewTender +21 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8306928e9340360ff41be79c80bea125f3eda543784b8f75a6a349d330ef66fa
|
4
|
+
data.tar.gz: 1eb69b564b94944adfdc8d24453fe78b92e9909e2b0925b9bd1b5e20ef88ce79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efde5bc539774f293057f2c31a8e56acc28b8892df233d7aa6982333b0000eb2da5855991cc7bbe11a4c5e37299a4d1eed2274b37252bbab68cc9c918c6b1505
|
7
|
+
data.tar.gz: 9ea645b482e197d89fb222352dac6d5ee4911d4e830ca1920e1f4b8a68a0686d2fc2cb13c1765dae0170840d1bc85109e46625cfa5e230222efaae17683381e9
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
data/bin/ZReviewTender
CHANGED
@@ -82,12 +82,19 @@ class Main
|
|
82
82
|
end
|
83
83
|
|
84
84
|
opts.on('-i', '--init', 'init config yml file from template.') do
|
85
|
+
Helper.createDirIfNotExist("#{basePath}/latestCheckTimestamp/")
|
86
|
+
Helper.createDirIfNotExist("#{basePath}/config/")
|
87
|
+
|
85
88
|
configTemplateFolder = "#{File.expand_path("..", __dir__)}/config"
|
86
89
|
appleSourceExampleYML = "#{configTemplateFolder}/apple.example.yml"
|
87
90
|
androidSourceExampleYML = "#{configTemplateFolder}/android.example.yml"
|
88
|
-
appleDestExampleYML = "#{
|
89
|
-
androidDestExampleYML = "#{
|
91
|
+
appleDestExampleYML = "#{basePath}/#{defaultConfigDirName}/#{defaultAppleConfigFileName}"
|
92
|
+
androidDestExampleYML = "#{basePath}/#{defaultConfigDirName}/#{defaultAndroidConfigFileName}"
|
90
93
|
|
94
|
+
if !File.exists?("#{basePath}/latestCheckTimestamp/.keep")
|
95
|
+
File.open("#{basePath}/latestCheckTimestamp/.keep", 'w') { |file| file.write("") }
|
96
|
+
end
|
97
|
+
#
|
91
98
|
if File.exists?(appleSourceExampleYML)
|
92
99
|
if File.exists?(appleDestExampleYML)
|
93
100
|
puts "Failed! Config YML File Exists: #{appleDestExampleYML}"
|
@@ -118,6 +125,13 @@ class Main
|
|
118
125
|
puts "You're using the latest version of ZReviewTender!"
|
119
126
|
end
|
120
127
|
end
|
128
|
+
|
129
|
+
opts.on('-v', '--versopm', 'show current version of ZReivewTender') do
|
130
|
+
version = Version.new
|
131
|
+
puts "Current ZReviewTender Version: #{version.getLocalVersion()}"
|
132
|
+
|
133
|
+
checkLatestVersionOfZReviewTender()
|
134
|
+
end
|
121
135
|
end.parse!
|
122
136
|
end
|
123
137
|
|
@@ -127,8 +141,10 @@ class Main
|
|
127
141
|
if version.getRemoteVersion() > version.getLocalVersion()
|
128
142
|
puts "##########################################################"
|
129
143
|
puts "##### New Version Available!!! #####"
|
130
|
-
puts "#####
|
144
|
+
puts "##### Please type `ZReviewTender -n` to update!! #####"
|
131
145
|
puts "##########################################################"
|
146
|
+
puts "Local Verson: #{version.getLocalVersion()}"
|
147
|
+
puts "Remote Verson: #{version.getRemoteVersion()}"
|
132
148
|
end
|
133
149
|
end
|
134
150
|
|
@@ -187,7 +203,9 @@ end
|
|
187
203
|
begin
|
188
204
|
puts "#https://github.com/ZhgChgLi/ZReviewTender"
|
189
205
|
puts "You have read and agree with the Disclaimer."
|
206
|
+
puts "============================================"
|
190
207
|
Main.new()
|
208
|
+
puts "============================================"
|
191
209
|
puts "Execute Successfully!!!"
|
192
210
|
puts "#https://github.com/ZhgChgLi/ZReviewTender"
|
193
211
|
puts "#Thanks for using this tool."
|