app_manager 2.3.0 → 2.3.2
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/Gemfile.lock +90 -87
- data/app/controllers/app_manager/charges_controller.rb +1 -1
- data/lib/app_manager/client/plans.rb +1 -1
- data/lib/app_manager/fail_safe.rb +2 -1
- data/lib/app_manager/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f73abd9405540c46eb1648419e5fcb8ba0be2a8571637e674e75147fc68280c
|
|
4
|
+
data.tar.gz: 87b6063f633e8b27477304f3165e508fd9ed342eda56ba4396f1fe8cece30980
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 875f64dbf0e20ebed6a3913d1ee42f82e05d8c61ffe4ba12e54047d2a7fa0c353ccd7acb8d22e6de6ca2b72b0c93ebbb9b5dd2b8fe5e5c5a5f33c8357e974937
|
|
7
|
+
data.tar.gz: ba26245f102821c12ef5df4fc40d2953fc318ccbf6935ef4c1b3f63fbb1d763d5851a3c73555503f281f4a38bf660c78a422d54ff7f2df81db66f8e77c5140e0
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
app_manager (2.3.
|
|
4
|
+
app_manager (2.3.2)
|
|
5
5
|
activerecord-import (~> 1.4)
|
|
6
6
|
httparty
|
|
7
7
|
kaminari (>= 0.16.3)
|
|
@@ -10,89 +10,85 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
actioncable (7.1
|
|
14
|
-
actionpack (= 7.1
|
|
15
|
-
activesupport (= 7.1
|
|
13
|
+
actioncable (7.2.1)
|
|
14
|
+
actionpack (= 7.2.1)
|
|
15
|
+
activesupport (= 7.2.1)
|
|
16
16
|
nio4r (~> 2.0)
|
|
17
17
|
websocket-driver (>= 0.6.1)
|
|
18
18
|
zeitwerk (~> 2.6)
|
|
19
|
-
actionmailbox (7.1
|
|
20
|
-
actionpack (= 7.1
|
|
21
|
-
activejob (= 7.1
|
|
22
|
-
activerecord (= 7.1
|
|
23
|
-
activestorage (= 7.1
|
|
24
|
-
activesupport (= 7.1
|
|
25
|
-
mail (>= 2.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
activejob (= 7.1.3.2)
|
|
33
|
-
activesupport (= 7.1.3.2)
|
|
34
|
-
mail (~> 2.5, >= 2.5.4)
|
|
35
|
-
net-imap
|
|
36
|
-
net-pop
|
|
37
|
-
net-smtp
|
|
19
|
+
actionmailbox (7.2.1)
|
|
20
|
+
actionpack (= 7.2.1)
|
|
21
|
+
activejob (= 7.2.1)
|
|
22
|
+
activerecord (= 7.2.1)
|
|
23
|
+
activestorage (= 7.2.1)
|
|
24
|
+
activesupport (= 7.2.1)
|
|
25
|
+
mail (>= 2.8.0)
|
|
26
|
+
actionmailer (7.2.1)
|
|
27
|
+
actionpack (= 7.2.1)
|
|
28
|
+
actionview (= 7.2.1)
|
|
29
|
+
activejob (= 7.2.1)
|
|
30
|
+
activesupport (= 7.2.1)
|
|
31
|
+
mail (>= 2.8.0)
|
|
38
32
|
rails-dom-testing (~> 2.2)
|
|
39
|
-
actionpack (7.1
|
|
40
|
-
actionview (= 7.1
|
|
41
|
-
activesupport (= 7.1
|
|
33
|
+
actionpack (7.2.1)
|
|
34
|
+
actionview (= 7.2.1)
|
|
35
|
+
activesupport (= 7.2.1)
|
|
42
36
|
nokogiri (>= 1.8.5)
|
|
43
37
|
racc
|
|
44
|
-
rack (>= 2.2.4)
|
|
38
|
+
rack (>= 2.2.4, < 3.2)
|
|
45
39
|
rack-session (>= 1.0.1)
|
|
46
40
|
rack-test (>= 0.6.3)
|
|
47
41
|
rails-dom-testing (~> 2.2)
|
|
48
42
|
rails-html-sanitizer (~> 1.6)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
useragent (~> 0.16)
|
|
44
|
+
actiontext (7.2.1)
|
|
45
|
+
actionpack (= 7.2.1)
|
|
46
|
+
activerecord (= 7.2.1)
|
|
47
|
+
activestorage (= 7.2.1)
|
|
48
|
+
activesupport (= 7.2.1)
|
|
54
49
|
globalid (>= 0.6.0)
|
|
55
50
|
nokogiri (>= 1.8.5)
|
|
56
|
-
actionview (7.1
|
|
57
|
-
activesupport (= 7.1
|
|
51
|
+
actionview (7.2.1)
|
|
52
|
+
activesupport (= 7.2.1)
|
|
58
53
|
builder (~> 3.1)
|
|
59
54
|
erubi (~> 1.11)
|
|
60
55
|
rails-dom-testing (~> 2.2)
|
|
61
56
|
rails-html-sanitizer (~> 1.6)
|
|
62
|
-
activejob (7.1
|
|
63
|
-
activesupport (= 7.1
|
|
57
|
+
activejob (7.2.1)
|
|
58
|
+
activesupport (= 7.2.1)
|
|
64
59
|
globalid (>= 0.3.6)
|
|
65
|
-
activemodel (7.1
|
|
66
|
-
activesupport (= 7.1
|
|
67
|
-
activerecord (7.1
|
|
68
|
-
activemodel (= 7.1
|
|
69
|
-
activesupport (= 7.1
|
|
60
|
+
activemodel (7.2.1)
|
|
61
|
+
activesupport (= 7.2.1)
|
|
62
|
+
activerecord (7.2.1)
|
|
63
|
+
activemodel (= 7.2.1)
|
|
64
|
+
activesupport (= 7.2.1)
|
|
70
65
|
timeout (>= 0.4.0)
|
|
71
|
-
activerecord-import (1.
|
|
66
|
+
activerecord-import (1.8.0)
|
|
72
67
|
activerecord (>= 4.2)
|
|
73
|
-
activestorage (7.1
|
|
74
|
-
actionpack (= 7.1
|
|
75
|
-
activejob (= 7.1
|
|
76
|
-
activerecord (= 7.1
|
|
77
|
-
activesupport (= 7.1
|
|
68
|
+
activestorage (7.2.1)
|
|
69
|
+
actionpack (= 7.2.1)
|
|
70
|
+
activejob (= 7.2.1)
|
|
71
|
+
activerecord (= 7.2.1)
|
|
72
|
+
activesupport (= 7.2.1)
|
|
78
73
|
marcel (~> 1.0)
|
|
79
|
-
activesupport (7.1
|
|
74
|
+
activesupport (7.2.1)
|
|
80
75
|
base64
|
|
81
76
|
bigdecimal
|
|
82
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
77
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
83
78
|
connection_pool (>= 2.2.5)
|
|
84
79
|
drb
|
|
85
80
|
i18n (>= 1.6, < 2)
|
|
81
|
+
logger (>= 1.4.2)
|
|
86
82
|
minitest (>= 5.1)
|
|
87
|
-
|
|
88
|
-
tzinfo (~> 2.0)
|
|
83
|
+
securerandom (>= 0.3)
|
|
84
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
89
85
|
addressable (2.8.0)
|
|
90
86
|
public_suffix (>= 2.0.2, < 5.0)
|
|
91
87
|
base64 (0.2.0)
|
|
92
|
-
bigdecimal (3.1.
|
|
93
|
-
builder (3.
|
|
88
|
+
bigdecimal (3.1.8)
|
|
89
|
+
builder (3.3.0)
|
|
94
90
|
coderay (1.1.3)
|
|
95
|
-
concurrent-ruby (1.
|
|
91
|
+
concurrent-ruby (1.3.4)
|
|
96
92
|
connection_pool (2.4.1)
|
|
97
93
|
crack (0.4.5)
|
|
98
94
|
rexml
|
|
@@ -102,7 +98,7 @@ GEM
|
|
|
102
98
|
diff-lcs (1.5.0)
|
|
103
99
|
dotenv (2.1.2)
|
|
104
100
|
drb (2.2.1)
|
|
105
|
-
erubi (1.
|
|
101
|
+
erubi (1.13.0)
|
|
106
102
|
globalid (1.2.1)
|
|
107
103
|
activesupport (>= 6.1)
|
|
108
104
|
hashdiff (1.0.1)
|
|
@@ -110,11 +106,11 @@ GEM
|
|
|
110
106
|
csv
|
|
111
107
|
mini_mime (>= 1.0.0)
|
|
112
108
|
multi_xml (>= 0.5.2)
|
|
113
|
-
i18n (1.14.
|
|
109
|
+
i18n (1.14.5)
|
|
114
110
|
concurrent-ruby (~> 1.0)
|
|
115
111
|
io-console (0.7.2)
|
|
116
|
-
irb (1.
|
|
117
|
-
rdoc
|
|
112
|
+
irb (1.14.0)
|
|
113
|
+
rdoc (>= 4.0.0)
|
|
118
114
|
reline (>= 0.4.2)
|
|
119
115
|
kaminari (1.2.2)
|
|
120
116
|
activesupport (>= 4.1.0)
|
|
@@ -128,6 +124,7 @@ GEM
|
|
|
128
124
|
activerecord
|
|
129
125
|
kaminari-core (= 1.2.2)
|
|
130
126
|
kaminari-core (1.2.2)
|
|
127
|
+
logger (1.6.0)
|
|
131
128
|
loofah (2.22.0)
|
|
132
129
|
crass (~> 1.0.2)
|
|
133
130
|
nokogiri (>= 1.12.0)
|
|
@@ -139,10 +136,11 @@ GEM
|
|
|
139
136
|
marcel (1.0.4)
|
|
140
137
|
method_source (1.0.0)
|
|
141
138
|
mini_mime (1.1.5)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
mini_portile2 (2.8.7)
|
|
140
|
+
minitest (5.25.1)
|
|
141
|
+
multi_xml (0.7.1)
|
|
142
|
+
bigdecimal (~> 3.1)
|
|
143
|
+
net-imap (0.4.15)
|
|
146
144
|
date
|
|
147
145
|
net-protocol
|
|
148
146
|
net-pop (0.1.2)
|
|
@@ -151,8 +149,11 @@ GEM
|
|
|
151
149
|
timeout
|
|
152
150
|
net-smtp (0.5.0)
|
|
153
151
|
net-protocol
|
|
154
|
-
nio4r (2.7.
|
|
155
|
-
nokogiri (1.
|
|
152
|
+
nio4r (2.7.3)
|
|
153
|
+
nokogiri (1.16.7)
|
|
154
|
+
mini_portile2 (~> 2.8.2)
|
|
155
|
+
racc (~> 1.4)
|
|
156
|
+
nokogiri (1.16.7-x86_64-linux)
|
|
156
157
|
racc (~> 1.4)
|
|
157
158
|
pry (0.14.1)
|
|
158
159
|
coderay (~> 1.1)
|
|
@@ -160,8 +161,8 @@ GEM
|
|
|
160
161
|
psych (5.1.2)
|
|
161
162
|
stringio
|
|
162
163
|
public_suffix (4.0.6)
|
|
163
|
-
racc (1.
|
|
164
|
-
rack (3.
|
|
164
|
+
racc (1.8.1)
|
|
165
|
+
rack (3.1.7)
|
|
165
166
|
rack-session (2.0.0)
|
|
166
167
|
rack (>= 3.0.0)
|
|
167
168
|
rack-test (2.1.0)
|
|
@@ -169,20 +170,20 @@ GEM
|
|
|
169
170
|
rackup (2.1.0)
|
|
170
171
|
rack (>= 3)
|
|
171
172
|
webrick (~> 1.8)
|
|
172
|
-
rails (7.1
|
|
173
|
-
actioncable (= 7.1
|
|
174
|
-
actionmailbox (= 7.1
|
|
175
|
-
actionmailer (= 7.1
|
|
176
|
-
actionpack (= 7.1
|
|
177
|
-
actiontext (= 7.1
|
|
178
|
-
actionview (= 7.1
|
|
179
|
-
activejob (= 7.1
|
|
180
|
-
activemodel (= 7.1
|
|
181
|
-
activerecord (= 7.1
|
|
182
|
-
activestorage (= 7.1
|
|
183
|
-
activesupport (= 7.1
|
|
173
|
+
rails (7.2.1)
|
|
174
|
+
actioncable (= 7.2.1)
|
|
175
|
+
actionmailbox (= 7.2.1)
|
|
176
|
+
actionmailer (= 7.2.1)
|
|
177
|
+
actionpack (= 7.2.1)
|
|
178
|
+
actiontext (= 7.2.1)
|
|
179
|
+
actionview (= 7.2.1)
|
|
180
|
+
activejob (= 7.2.1)
|
|
181
|
+
activemodel (= 7.2.1)
|
|
182
|
+
activerecord (= 7.2.1)
|
|
183
|
+
activestorage (= 7.2.1)
|
|
184
|
+
activesupport (= 7.2.1)
|
|
184
185
|
bundler (>= 1.15.0)
|
|
185
|
-
railties (= 7.1
|
|
186
|
+
railties (= 7.2.1)
|
|
186
187
|
rails-dom-testing (2.2.0)
|
|
187
188
|
activesupport (>= 5.0.0)
|
|
188
189
|
minitest
|
|
@@ -190,18 +191,18 @@ GEM
|
|
|
190
191
|
rails-html-sanitizer (1.6.0)
|
|
191
192
|
loofah (~> 2.21)
|
|
192
193
|
nokogiri (~> 1.14)
|
|
193
|
-
railties (7.1
|
|
194
|
-
actionpack (= 7.1
|
|
195
|
-
activesupport (= 7.1
|
|
196
|
-
irb
|
|
194
|
+
railties (7.2.1)
|
|
195
|
+
actionpack (= 7.2.1)
|
|
196
|
+
activesupport (= 7.2.1)
|
|
197
|
+
irb (~> 1.13)
|
|
197
198
|
rackup (>= 1.0.0)
|
|
198
199
|
rake (>= 12.2)
|
|
199
200
|
thor (~> 1.0, >= 1.2.2)
|
|
200
201
|
zeitwerk (~> 2.6)
|
|
201
202
|
rake (13.0.6)
|
|
202
|
-
rdoc (6.
|
|
203
|
+
rdoc (6.7.0)
|
|
203
204
|
psych (>= 4.0.0)
|
|
204
|
-
reline (0.5.
|
|
205
|
+
reline (0.5.9)
|
|
205
206
|
io-console (~> 0.5)
|
|
206
207
|
rexml (3.2.5)
|
|
207
208
|
rspec (3.11.0)
|
|
@@ -219,11 +220,13 @@ GEM
|
|
|
219
220
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
220
221
|
rspec-support (~> 3.11.0)
|
|
221
222
|
rspec-support (3.11.0)
|
|
222
|
-
|
|
223
|
+
securerandom (0.3.1)
|
|
224
|
+
stringio (3.1.1)
|
|
223
225
|
thor (1.3.1)
|
|
224
226
|
timeout (0.4.1)
|
|
225
227
|
tzinfo (2.0.6)
|
|
226
228
|
concurrent-ruby (~> 1.0)
|
|
229
|
+
useragent (0.16.10)
|
|
227
230
|
webmock (3.14.0)
|
|
228
231
|
addressable (>= 2.8.0)
|
|
229
232
|
crack (>= 0.3.2)
|
|
@@ -232,7 +235,7 @@ GEM
|
|
|
232
235
|
websocket-driver (0.7.6)
|
|
233
236
|
websocket-extensions (>= 0.1.0)
|
|
234
237
|
websocket-extensions (0.1.5)
|
|
235
|
-
zeitwerk (2.6.
|
|
238
|
+
zeitwerk (2.6.17)
|
|
236
239
|
|
|
237
240
|
PLATFORMS
|
|
238
241
|
ruby
|
|
@@ -140,7 +140,7 @@ module AppManager
|
|
|
140
140
|
|
|
141
141
|
begin
|
|
142
142
|
plan_obj = AppManager::Client.new
|
|
143
|
-
if params[:discount].present? && !params[:discount].nil? && params[:discount] != '0' && !
|
|
143
|
+
if params[:discount].present? && !params[:discount].nil? && params[:discount] != '0' && !plan_data['is_global']
|
|
144
144
|
discounted_plans = plan_obj.get_related_discounted_plans(params[:discount])
|
|
145
145
|
if discounted_plans.empty? || discounted_plans.include?(params[:plan].to_i)
|
|
146
146
|
plan_obj.discount_used(@shop[shopify_domain], params[:discount])
|
|
@@ -48,7 +48,7 @@ module AppManager
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def check_and_activate_global_plan(shop_domain)
|
|
51
|
-
|
|
51
|
+
post("/activate-global-plan", {shop_domain: shop_domain})
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def get_promotional_discount(shop_domain = nil,code)
|
|
@@ -729,7 +729,8 @@ module AppManager
|
|
|
729
729
|
charges.each do |charge|
|
|
730
730
|
if charge
|
|
731
731
|
if !charge["cancelled_on"].nil?
|
|
732
|
-
charge["cancelled_on"] =
|
|
732
|
+
charge["cancelled_on"] = charge["cancelled_on"].to_s if charge["cancelled_on"].is_a?(ActiveSupport::TimeWithZone)
|
|
733
|
+
charge["cancelled_on"] = Date.parse(charge["cancelled_on"]) if charge["cancelled_on"].is_a?(String)
|
|
733
734
|
end
|
|
734
735
|
plan_ob = AppManager::Client.new(nil, json_req = true)
|
|
735
736
|
res = plan_ob.sync_charge(charge.to_json)
|
data/lib/app_manager/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: app_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rahul Tiwari @ Hulkapps
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-08-
|
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
147
147
|
- !ruby/object:Gem::Version
|
|
148
148
|
version: '0'
|
|
149
149
|
requirements: []
|
|
150
|
-
rubygems_version: 3.
|
|
150
|
+
rubygems_version: 3.4.10
|
|
151
151
|
signing_key:
|
|
152
152
|
specification_version: 4
|
|
153
153
|
summary: An API wrapper of Hulkapps AppManager portal
|