ZReviewTender 1.3.8 → 1.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '016962d0d7c4215f6c60a77d20fb83290d5cd5b65e6883de27d7fb5116cfccdb'
4
- data.tar.gz: 84810201df2669c00b955a8d7da1382112dd4041e963b8cbd3730dc05e988f8c
3
+ metadata.gz: 767abeb4f548e38a266911a20c15a6307b756542db7317e444e2755c704e437c
4
+ data.tar.gz: 1d15d46a181b16e6ed3969e10e8925e139fe67b20437a6bd82eff34869e147cb
5
5
  SHA512:
6
- metadata.gz: a2cbe8d510432fb5a353faa7357ea5b9b194d58d8ef4f3e8dfec69792ab3f8b4512c1b43efb26d525be4ccb62c42ad61ebe3f6c9c37ebecd43da4fc6b71d4d4d
7
- data.tar.gz: 520a4d667e91b28dba82c1b5f7829fd6566c7b0976ca7c90f7620b9d857e6efa463dd854d2eb3f5b9629e106557349b7f2dab031dfd8a20e457912c87dbd9d03
6
+ metadata.gz: b45ed4176179853c79686f0baa46ba70f8c76d8ed8f340403d27183f7435d9905fcac484965d01690c49005e7b9232ea62e971fc3ca96c9c317702cc508698af
7
+ data.tar.gz: 2835f394a70693c454bd4ce73acd161f7e636f9f62f7b78e340bbcc59197dc5ac21b58854abcc3f639fa60c60ff923b134d4ff81459dbfea0a0dd1272003564d
data/.version CHANGED
@@ -1 +1 @@
1
- 1.3.8
1
+ 1.4.0
data/bin/ZReviewTender CHANGED
@@ -91,12 +91,12 @@ class Main
91
91
  appleDestExampleYML = "#{basePath}/#{defaultConfigDirName}/#{defaultAppleConfigFileName}"
92
92
  androidDestExampleYML = "#{basePath}/#{defaultConfigDirName}/#{defaultAndroidConfigFileName}"
93
93
 
94
- if !File.exists?("#{basePath}/latestCheckTimestamp/.keep")
94
+ if !File.exist?("#{basePath}/latestCheckTimestamp/.keep")
95
95
  File.open("#{basePath}/latestCheckTimestamp/.keep", 'w') { |file| file.write("") }
96
96
  end
97
97
  #
98
- if File.exists?(appleSourceExampleYML)
99
- if File.exists?(appleDestExampleYML)
98
+ if File.exist?(appleSourceExampleYML)
99
+ if File.exist?(appleDestExampleYML)
100
100
  puts "Failed! Config YML File Exists: #{appleDestExampleYML}"
101
101
  else
102
102
  FileUtils.cp(appleSourceExampleYML, appleDestExampleYML)
@@ -104,8 +104,8 @@ class Main
104
104
  end
105
105
  end
106
106
  #
107
- if File.exists?(androidSourceExampleYML)
108
- if File.exists?(androidDestExampleYML)
107
+ if File.exist?(androidSourceExampleYML)
108
+ if File.exist?(androidDestExampleYML)
109
109
  puts "Failed! Config YML File Exists: #{androidDestExampleYML}"
110
110
  else
111
111
  FileUtils.cp(androidSourceExampleYML, androidDestExampleYML)
@@ -129,7 +129,7 @@ class Main
129
129
  opts.on('-d', '--delete', 'delete latest check timestamp log file.(factory reset)') do
130
130
  FileUtils.rm_rf("#{basePath}/latestCheckTimestamp/")
131
131
  Helper.createDirIfNotExist("#{basePath}/latestCheckTimestamp/")
132
- if !File.exists?("#{basePath}/latestCheckTimestamp/.keep")
132
+ if !File.exist?("#{basePath}/latestCheckTimestamp/.keep")
133
133
  File.open("#{basePath}/latestCheckTimestamp/.keep", 'w') { |file| file.write("") }
134
134
  end
135
135
 
@@ -160,7 +160,7 @@ class Main
160
160
 
161
161
  private
162
162
  def configFileCheck(path, command)
163
- if !File.exists? path
163
+ if !File.exist? path
164
164
  puts "Make sure you have vaild config file at #{path}"
165
165
  puts "Or use ZReviewTender #{command} specify config.yml file path"
166
166
  raise "Config file not found: #{path}"
data/lib/Helper.rb CHANGED
@@ -19,7 +19,7 @@ class Helper
19
19
  begin
20
20
  dir = dirs.shift
21
21
  currentDir = "#{currentDir}/#{dir}"
22
- Dir.mkdir(currentDir) unless File.exists?(currentDir)
22
+ Dir.mkdir(currentDir) unless File.exist?(currentDir)
23
23
  end while dirs.length > 0
24
24
  end
25
25
  end
@@ -47,7 +47,7 @@ class ReviewFetcher
47
47
 
48
48
  def isSentWelcomeMessage()
49
49
  filePath = "#{config.baseExecutePath}/latestCheckTimestamp/#{platform}Welcome"
50
- return File.exists?(filePath)
50
+ return File.exist?(filePath)
51
51
  end
52
52
 
53
53
  def setPlatformLatestCheckTimestamp(timestamp)
@@ -58,7 +58,7 @@ class ReviewFetcher
58
58
 
59
59
  def getPlatformLatestCheckTimestamp()
60
60
  filePath = "#{config.baseExecutePath}/latestCheckTimestamp/#{platform}"
61
- if File.exists?(filePath)
61
+ if File.exist?(filePath)
62
62
  return File.read(filePath).to_i
63
63
  else
64
64
  return 0
@@ -149,7 +149,7 @@ class SlackProcessor < Processor
149
149
  res = http.request(req)
150
150
 
151
151
  if isInCommingWebHook
152
- return {"ok":res.body == "ok", "message":nil, "ts": result['ts']}
152
+ return {"ok":res.body == "ok", "message":nil, "ts": res['ts']}
153
153
  else
154
154
  result = JSON.parse(res.body)
155
155
  return {"ok":result["ok"] == true, "message":result['error'], "ts": result['ts']}
@@ -191,4 +191,4 @@ class SlackProcessor < Processor
191
191
  as_json(*options).to_json(*options)
192
192
  end
193
193
  end
194
- end
194
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZReviewTender
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-08-29 00:00:00.000000000 Z
10
+ date: 2025-03-22 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: net-http
@@ -30,16 +29,15 @@ dependencies:
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: 2.4.1
32
+ version: 2.10.0
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: 2.4.1
39
+ version: 2.10.0
41
40
  description: ZReviewTender - App Reviews Automatic Bot
42
- email:
43
41
  executables:
44
42
  - ZReviewTender
45
43
  extensions: []
@@ -71,7 +69,6 @@ homepage: https://github.com/ZhgChgLi/ZReviewTender
71
69
  licenses:
72
70
  - MIT
73
71
  metadata: {}
74
- post_install_message:
75
72
  rdoc_options: []
76
73
  require_paths:
77
74
  - lib
@@ -86,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
83
  - !ruby/object:Gem::Version
87
84
  version: '0'
88
85
  requirements: []
89
- rubygems_version: 3.0.3
90
- signing_key:
86
+ rubygems_version: 3.6.2
91
87
  specification_version: 4
92
88
  summary: ZReviewTender uses brand new App Store & Google Play API to fetch App reviews
93
89
  and integration your workflow.