ZReviewTender 1.2.1 → 1.2.4

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 +7 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75b92df92784702584e3bb6d13cfa3cddc450995f6cc34c117f06be9b5ef1a0a
4
- data.tar.gz: 289d933f5aa222e67b0e1eff8496e52c910b55db44cff4b09a1eb5e5155096ef
3
+ metadata.gz: 2ac1713093b3b22b1f08236ec02cb0a121e49c6cae6cd2522bcccbe8cbd6483c
4
+ data.tar.gz: deee41c0761e5338f7bcd96d22a72407f2d46adeaa39d9ce17b96283475682e2
5
5
  SHA512:
6
- metadata.gz: 8b8a6d4f70f9dbfcec03e5a425b19ecb9d8df22aad367cde19c0ddd3f87e6a13a7df2ce1558ba6cec4b5738891b4f8f9203df3487a4522150a9653e7aa79f59c
7
- data.tar.gz: 0542d2a8faba1c812d1a5d238d8d26a9edf12d6fa5a4c6da647b3c39e89ff0456672ee14ff030152a1b33ca2794c5a3d7f2fc540af123319284deaa8890419e1
6
+ metadata.gz: 8b5ee795276aeffeddbd2bbd4ec64e97a75af99e7e729b5550aba39c8593fc65efc32ba0f2bdc33840fbb68ac6d19871a8ac7db1fde6e19c354d544eb3f2c66a
7
+ data.tar.gz: ad0ba15c85da2a6759f5af93e8f9080d7944be9c91201f2c30ca8b4d19fda3d40b4d8679ca0e93b509f93cab259bb574275a78ee84d7a69032febd442d99a10a
data/.version CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.4
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
91
  appleDestExampleYML = "#{basePath}/#{defaultConfigDirName}/#{defaultAppleConfigFileName}"
89
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}"
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.1
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi