ZReviewTender 1.3.2 → 1.3.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.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/lib/AndroidFetcher.rb +10 -5
- data/lib/AppleFetcher.rb +5 -6
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b3ef6989fc515d9162992d6b84d80c89b435496957df5321c0972b06425878e
|
4
|
+
data.tar.gz: 58684ea2739c5dc7416f87932285b2004d0d29763ba0a1864a3ca9fe991d4106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ae62fdf0c26212d0c3f5d1ed9179fd5203be69cec5c8c4ce2301856dc32f48e66056756dcd858cb5000de1ee844a352d8e8c724cc28960baa285de206d4e6bb
|
7
|
+
data.tar.gz: a40d9adf22be74e8198ecec348a838664c53703b3cede6cd808d612ae6ac1523e81efd35b33be90d1bce29bf7fe034e43a3ebebb226c9fd7abb6d7a5a4a2305d
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
data/lib/AndroidFetcher.rb
CHANGED
@@ -39,6 +39,11 @@ class AndroidFetcher < ReviewFetcher
|
|
39
39
|
reviewsInfoLink = reviewsInfo&.dig("tokenPagination", "nextPageToken")
|
40
40
|
|
41
41
|
customerReviews = reviewsInfo["reviews"]
|
42
|
+
|
43
|
+
if customerReviews.nil?
|
44
|
+
break
|
45
|
+
end
|
46
|
+
|
42
47
|
puts "[AndroidFetcher] Fetch reviews in #{config.packageName}, count: #{customerReviews.length}"
|
43
48
|
customerReviews.each do |customerReview|
|
44
49
|
|
@@ -127,13 +132,13 @@ class AndroidFetcher < ReviewFetcher
|
|
127
132
|
|
128
133
|
puts "[AndroidFetcher] latest review: #{reviews.last.body}, #{reviews.last.createdDateTimestamp}"
|
129
134
|
setPlatformLatestCheckTimestamp(reviews.last.createdDateTimestamp)
|
135
|
+
end
|
130
136
|
|
131
|
-
# init first time, send welcome message
|
132
|
-
if latestCheckTimestamp == 0
|
133
|
-
sendWelcomMessage()
|
134
|
-
return
|
135
|
-
end
|
136
137
|
|
138
|
+
# init first time, send welcome message
|
139
|
+
if latestCheckTimestamp == 0
|
140
|
+
sendWelcomMessage()
|
141
|
+
elsif reviews.length > 0
|
137
142
|
processReviews(reviews, platform)
|
138
143
|
end
|
139
144
|
end
|
data/lib/AppleFetcher.rb
CHANGED
@@ -35,13 +35,12 @@ class AppleFetcher < ReviewFetcher
|
|
35
35
|
|
36
36
|
puts "[AppleFetcher] latest review: #{reviews.last.body}, #{reviews.last.createdDateTimestamp}"
|
37
37
|
setPlatformLatestCheckTimestamp(reviews.last.createdDateTimestamp)
|
38
|
+
end
|
38
39
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
end
|
44
|
-
|
40
|
+
# init first time, send welcome message
|
41
|
+
if latestCheckTimestamp == 0
|
42
|
+
sendWelcomMessage()
|
43
|
+
elsif reviews.length > 0
|
45
44
|
reviews = fullfillAppInfo(reviews)
|
46
45
|
processReviews(reviews, platform)
|
47
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ZReviewTender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ZhgChgLi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.4.1
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: google-cloud-translate-v2
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.3.0
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.3.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: google-apis-androidpublisher_v3
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.25.0
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.25.0
|
69
41
|
description: ZReviewTender - App Reviews Automatic Bot
|
70
42
|
email:
|
71
43
|
executables:
|