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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.version +1 -1
  3. data/bin/ZReviewTender +21 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c3ed526dfeec33a979c0c3c5a31d269a68cabe3599ba14c2ad9df35a1667dff
4
- data.tar.gz: cc919703c929aee31d1c0a7d59ca528734f66a776e5d530f14da27b28c97b73b
3
+ metadata.gz: 8306928e9340360ff41be79c80bea125f3eda543784b8f75a6a349d330ef66fa
4
+ data.tar.gz: 1eb69b564b94944adfdc8d24453fe78b92e9909e2b0925b9bd1b5e20ef88ce79
5
5
  SHA512:
6
- metadata.gz: 3be31356db49a927bc7e716649e3da90d7868497ed3e5257d86b7f3480fb6591fc3e5eae1a40219988aadd45f137dd58b50bf384b47985d9f8c881c80d6b0f0a
7
- data.tar.gz: 1de0cf6339a46f271287e747bf4449905fa4eb1bbe1682294fe9d0f4f5ea8aad95711cd96c51274720a3455152fa5567db43a4011a121e9f85cbbce9ac4eb822
6
+ metadata.gz: efde5bc539774f293057f2c31a8e56acc28b8892df233d7aa6982333b0000eb2da5855991cc7bbe11a4c5e37299a4d1eed2274b37252bbab68cc9c918c6b1505
7
+ data.tar.gz: 9ea645b482e197d89fb222352dac6d5ee4911d4e830ca1920e1f4b8a68a0686d2fc2cb13c1765dae0170840d1bc85109e46625cfa5e230222efaae17683381e9
data/.version CHANGED
@@ -1 +1 @@
1
- 1.2.0
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 = "#{configTemplateFolder}/apple.yml"
89
- androidDestExampleYML = "#{configTemplateFolder}/android.yml"
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 "##### Please type `ZReviewTender -n` to update!! #####"
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."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZReviewTender
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi