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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42b1c7196a1088ba1af0ea680c1fe89b41daa91be09c137f3b9ab61d1b775501
4
- data.tar.gz: d9d29e7dca76fde9d957cbc8360726baa925f25cf232e918b045d68c8d2206e1
3
+ metadata.gz: 1b3ef6989fc515d9162992d6b84d80c89b435496957df5321c0972b06425878e
4
+ data.tar.gz: 58684ea2739c5dc7416f87932285b2004d0d29763ba0a1864a3ca9fe991d4106
5
5
  SHA512:
6
- metadata.gz: 4181c131a12529197907e3859577169e029dfafb52d49f3d2e91e1352a4a549b331a7a0c621bf9a9243af9c51922b704ef94dd5e3b9030f05753f1a30be1820a
7
- data.tar.gz: 5a23d413b5e4ed62d302eeecbff51d90df24b254060aca00f5542ada623a4332d3771ca068971561c51ca390be32ea4325f8c2491ac989d2cea4e717683aae25
6
+ metadata.gz: 1ae62fdf0c26212d0c3f5d1ed9179fd5203be69cec5c8c4ce2301856dc32f48e66056756dcd858cb5000de1ee844a352d8e8c724cc28960baa285de206d4e6bb
7
+ data.tar.gz: a40d9adf22be74e8198ecec348a838664c53703b3cede6cd808d612ae6ac1523e81efd35b33be90d1bce29bf7fe034e43a3ebebb226c9fd7abb6d7a5a4a2305d
data/.version CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.4
@@ -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
- # init first time, send welcome message
40
- if latestCheckTimestamp == 0
41
- sendWelcomMessage()
42
- return;
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.2
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-08-20 00:00:00.000000000 Z
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: