app_manager 2.3.4 → 2.3.6

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: b0be1075e7e608c2737aca9bb4818e480c6208cbb97abc6b0b429a032dfa1b91
4
- data.tar.gz: 61387d3e6ccd7374638f09f607eee94040f3e32b866e4e8178472e567a62f8f0
3
+ metadata.gz: e3d64d0ffdff623bbbd97c138297df0607d4621926c02c42404103626ff3592b
4
+ data.tar.gz: de6e2e35c943c8cfa30649173d126d3ed8274daad83c13e46e28b4ea689c9fea
5
5
  SHA512:
6
- metadata.gz: 5a5a849caca69d4f99379828fb433e0b597eb59ae185b4df7915f74080dcffaed725e25b21e3b006f37d44fe9607e92063b66a6079677f954c5f083812737289
7
- data.tar.gz: 975b470af5da3742bd93f6bf374d39c23405a63c0f10917bdd2a624656400aeb0f1960ca6877ef532d3a44e21db6380ec60f18b6723ff7656423400b2716a5a2
6
+ metadata.gz: d572b354aedc7762a4989e86ba513651705943130d4fe89483c4d11e2bbfa78be4894ac816b3ba3a7e6a0663d26df17735bab1cf9e6cade164837021582bdc8c
7
+ data.tar.gz: 0c4c262796b39cb38c22dc902dba79124f411e631270ef3e0ed405b5aaf7cbc7c72f4786b61c104e2ff26d84ba2f80cb625acf0af7ecbecd4ccc1d4bfeabf0c2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_manager (2.3.4)
4
+ app_manager (2.3.6)
5
5
  activerecord-import (~> 1.4)
6
6
  httparty
7
7
  kaminari (>= 0.16.3)
@@ -10,108 +10,115 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.2.1.1)
14
- actionpack (= 7.2.1.1)
15
- activesupport (= 7.2.1.1)
13
+ action_text-trix (2.1.15)
14
+ railties
15
+ actioncable (8.1.0)
16
+ actionpack (= 8.1.0)
17
+ activesupport (= 8.1.0)
16
18
  nio4r (~> 2.0)
17
19
  websocket-driver (>= 0.6.1)
18
20
  zeitwerk (~> 2.6)
19
- actionmailbox (7.2.1.1)
20
- actionpack (= 7.2.1.1)
21
- activejob (= 7.2.1.1)
22
- activerecord (= 7.2.1.1)
23
- activestorage (= 7.2.1.1)
24
- activesupport (= 7.2.1.1)
21
+ actionmailbox (8.1.0)
22
+ actionpack (= 8.1.0)
23
+ activejob (= 8.1.0)
24
+ activerecord (= 8.1.0)
25
+ activestorage (= 8.1.0)
26
+ activesupport (= 8.1.0)
25
27
  mail (>= 2.8.0)
26
- actionmailer (7.2.1.1)
27
- actionpack (= 7.2.1.1)
28
- actionview (= 7.2.1.1)
29
- activejob (= 7.2.1.1)
30
- activesupport (= 7.2.1.1)
28
+ actionmailer (8.1.0)
29
+ actionpack (= 8.1.0)
30
+ actionview (= 8.1.0)
31
+ activejob (= 8.1.0)
32
+ activesupport (= 8.1.0)
31
33
  mail (>= 2.8.0)
32
34
  rails-dom-testing (~> 2.2)
33
- actionpack (7.2.1.1)
34
- actionview (= 7.2.1.1)
35
- activesupport (= 7.2.1.1)
35
+ actionpack (8.1.0)
36
+ actionview (= 8.1.0)
37
+ activesupport (= 8.1.0)
36
38
  nokogiri (>= 1.8.5)
37
- racc
38
- rack (>= 2.2.4, < 3.2)
39
+ rack (>= 2.2.4)
39
40
  rack-session (>= 1.0.1)
40
41
  rack-test (>= 0.6.3)
41
42
  rails-dom-testing (~> 2.2)
42
43
  rails-html-sanitizer (~> 1.6)
43
44
  useragent (~> 0.16)
44
- actiontext (7.2.1.1)
45
- actionpack (= 7.2.1.1)
46
- activerecord (= 7.2.1.1)
47
- activestorage (= 7.2.1.1)
48
- activesupport (= 7.2.1.1)
45
+ actiontext (8.1.0)
46
+ action_text-trix (~> 2.1.15)
47
+ actionpack (= 8.1.0)
48
+ activerecord (= 8.1.0)
49
+ activestorage (= 8.1.0)
50
+ activesupport (= 8.1.0)
49
51
  globalid (>= 0.6.0)
50
52
  nokogiri (>= 1.8.5)
51
- actionview (7.2.1.1)
52
- activesupport (= 7.2.1.1)
53
+ actionview (8.1.0)
54
+ activesupport (= 8.1.0)
53
55
  builder (~> 3.1)
54
56
  erubi (~> 1.11)
55
57
  rails-dom-testing (~> 2.2)
56
58
  rails-html-sanitizer (~> 1.6)
57
- activejob (7.2.1.1)
58
- activesupport (= 7.2.1.1)
59
+ activejob (8.1.0)
60
+ activesupport (= 8.1.0)
59
61
  globalid (>= 0.3.6)
60
- activemodel (7.2.1.1)
61
- activesupport (= 7.2.1.1)
62
- activerecord (7.2.1.1)
63
- activemodel (= 7.2.1.1)
64
- activesupport (= 7.2.1.1)
62
+ activemodel (8.1.0)
63
+ activesupport (= 8.1.0)
64
+ activerecord (8.1.0)
65
+ activemodel (= 8.1.0)
66
+ activesupport (= 8.1.0)
65
67
  timeout (>= 0.4.0)
66
68
  activerecord-import (1.8.1)
67
69
  activerecord (>= 4.2)
68
- activestorage (7.2.1.1)
69
- actionpack (= 7.2.1.1)
70
- activejob (= 7.2.1.1)
71
- activerecord (= 7.2.1.1)
72
- activesupport (= 7.2.1.1)
70
+ activestorage (8.1.0)
71
+ actionpack (= 8.1.0)
72
+ activejob (= 8.1.0)
73
+ activerecord (= 8.1.0)
74
+ activesupport (= 8.1.0)
73
75
  marcel (~> 1.0)
74
- activesupport (7.2.1.1)
76
+ activesupport (8.1.0)
75
77
  base64
76
78
  bigdecimal
77
79
  concurrent-ruby (~> 1.0, >= 1.3.1)
78
80
  connection_pool (>= 2.2.5)
79
81
  drb
80
82
  i18n (>= 1.6, < 2)
83
+ json
81
84
  logger (>= 1.4.2)
82
85
  minitest (>= 5.1)
83
86
  securerandom (>= 0.3)
84
87
  tzinfo (~> 2.0, >= 2.0.5)
88
+ uri (>= 0.13.1)
85
89
  addressable (2.8.0)
86
90
  public_suffix (>= 2.0.2, < 5.0)
87
- base64 (0.2.0)
88
- bigdecimal (3.1.8)
91
+ base64 (0.3.0)
92
+ bigdecimal (3.3.1)
89
93
  builder (3.3.0)
90
94
  coderay (1.1.3)
91
- concurrent-ruby (1.3.4)
92
- connection_pool (2.4.1)
95
+ concurrent-ruby (1.3.5)
96
+ connection_pool (2.5.4)
93
97
  crack (0.4.5)
94
98
  rexml
95
99
  crass (1.0.6)
96
- csv (3.3.0)
97
- date (3.3.4)
100
+ csv (3.3.5)
101
+ date (3.4.1)
98
102
  diff-lcs (1.5.0)
99
103
  dotenv (2.1.2)
100
- drb (2.2.1)
101
- erubi (1.13.0)
102
- globalid (1.2.1)
104
+ drb (2.2.3)
105
+ erb (5.1.3)
106
+ erubi (1.13.1)
107
+ globalid (1.3.0)
103
108
  activesupport (>= 6.1)
104
109
  hashdiff (1.0.1)
105
- httparty (0.22.0)
110
+ httparty (0.23.2)
106
111
  csv
107
112
  mini_mime (>= 1.0.0)
108
113
  multi_xml (>= 0.5.2)
109
- i18n (1.14.6)
114
+ i18n (1.14.7)
110
115
  concurrent-ruby (~> 1.0)
111
- io-console (0.7.2)
112
- irb (1.14.1)
116
+ io-console (0.8.1)
117
+ irb (1.15.2)
118
+ pp (>= 0.6.0)
113
119
  rdoc (>= 4.0.0)
114
120
  reline (>= 0.4.2)
121
+ json (2.15.2)
115
122
  kaminari (1.2.2)
116
123
  activesupport (>= 4.1.0)
117
124
  kaminari-actionview (= 1.2.2)
@@ -124,85 +131,93 @@ GEM
124
131
  activerecord
125
132
  kaminari-core (= 1.2.2)
126
133
  kaminari-core (1.2.2)
127
- logger (1.6.1)
128
- loofah (2.22.0)
134
+ logger (1.7.0)
135
+ loofah (2.24.1)
129
136
  crass (~> 1.0.2)
130
137
  nokogiri (>= 1.12.0)
131
- mail (2.8.1)
138
+ mail (2.9.0)
139
+ logger
132
140
  mini_mime (>= 0.1.1)
133
141
  net-imap
134
142
  net-pop
135
143
  net-smtp
136
- marcel (1.0.4)
144
+ marcel (1.1.0)
137
145
  method_source (1.0.0)
138
146
  mini_mime (1.1.5)
139
- mini_portile2 (2.8.7)
140
- minitest (5.25.1)
141
- multi_xml (0.7.1)
147
+ mini_portile2 (2.8.9)
148
+ minitest (5.26.0)
149
+ multi_xml (0.7.2)
142
150
  bigdecimal (~> 3.1)
143
- net-imap (0.5.0)
151
+ net-imap (0.5.12)
144
152
  date
145
153
  net-protocol
146
154
  net-pop (0.1.2)
147
155
  net-protocol
148
156
  net-protocol (0.2.2)
149
157
  timeout
150
- net-smtp (0.5.0)
158
+ net-smtp (0.5.1)
151
159
  net-protocol
152
- nio4r (2.7.3)
153
- nokogiri (1.16.7)
160
+ nio4r (2.7.4)
161
+ nokogiri (1.18.10)
154
162
  mini_portile2 (~> 2.8.2)
155
163
  racc (~> 1.4)
156
- nokogiri (1.16.7-x86_64-linux)
164
+ nokogiri (1.18.10-x86_64-linux-gnu)
157
165
  racc (~> 1.4)
166
+ pp (0.6.3)
167
+ prettyprint
168
+ prettyprint (0.2.0)
158
169
  pry (0.14.1)
159
170
  coderay (~> 1.1)
160
171
  method_source (~> 1.0)
161
- psych (5.1.2)
172
+ psych (5.2.6)
173
+ date
162
174
  stringio
163
175
  public_suffix (4.0.6)
164
176
  racc (1.8.1)
165
- rack (3.1.8)
166
- rack-session (2.0.0)
177
+ rack (3.2.3)
178
+ rack-session (2.1.1)
179
+ base64 (>= 0.1.0)
167
180
  rack (>= 3.0.0)
168
- rack-test (2.1.0)
181
+ rack-test (2.2.0)
169
182
  rack (>= 1.3)
170
- rackup (2.1.0)
183
+ rackup (2.2.1)
171
184
  rack (>= 3)
172
- webrick (~> 1.8)
173
- rails (7.2.1.1)
174
- actioncable (= 7.2.1.1)
175
- actionmailbox (= 7.2.1.1)
176
- actionmailer (= 7.2.1.1)
177
- actionpack (= 7.2.1.1)
178
- actiontext (= 7.2.1.1)
179
- actionview (= 7.2.1.1)
180
- activejob (= 7.2.1.1)
181
- activemodel (= 7.2.1.1)
182
- activerecord (= 7.2.1.1)
183
- activestorage (= 7.2.1.1)
184
- activesupport (= 7.2.1.1)
185
+ rails (8.1.0)
186
+ actioncable (= 8.1.0)
187
+ actionmailbox (= 8.1.0)
188
+ actionmailer (= 8.1.0)
189
+ actionpack (= 8.1.0)
190
+ actiontext (= 8.1.0)
191
+ actionview (= 8.1.0)
192
+ activejob (= 8.1.0)
193
+ activemodel (= 8.1.0)
194
+ activerecord (= 8.1.0)
195
+ activestorage (= 8.1.0)
196
+ activesupport (= 8.1.0)
185
197
  bundler (>= 1.15.0)
186
- railties (= 7.2.1.1)
187
- rails-dom-testing (2.2.0)
198
+ railties (= 8.1.0)
199
+ rails-dom-testing (2.3.0)
188
200
  activesupport (>= 5.0.0)
189
201
  minitest
190
202
  nokogiri (>= 1.6)
191
- rails-html-sanitizer (1.6.0)
203
+ rails-html-sanitizer (1.6.2)
192
204
  loofah (~> 2.21)
193
- nokogiri (~> 1.14)
194
- railties (7.2.1.1)
195
- actionpack (= 7.2.1.1)
196
- activesupport (= 7.2.1.1)
205
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
206
+ railties (8.1.0)
207
+ actionpack (= 8.1.0)
208
+ activesupport (= 8.1.0)
197
209
  irb (~> 1.13)
198
210
  rackup (>= 1.0.0)
199
211
  rake (>= 12.2)
200
212
  thor (~> 1.0, >= 1.2.2)
213
+ tsort (>= 0.2)
201
214
  zeitwerk (~> 2.6)
202
215
  rake (13.0.6)
203
- rdoc (6.7.0)
216
+ rdoc (6.15.0)
217
+ erb
204
218
  psych (>= 4.0.0)
205
- reline (0.5.10)
219
+ tsort
220
+ reline (0.6.2)
206
221
  io-console (~> 0.5)
207
222
  rexml (3.2.5)
208
223
  rspec (3.11.0)
@@ -220,22 +235,24 @@ GEM
220
235
  diff-lcs (>= 1.2.0, < 2.0)
221
236
  rspec-support (~> 3.11.0)
222
237
  rspec-support (3.11.0)
223
- securerandom (0.3.1)
224
- stringio (3.1.1)
225
- thor (1.3.2)
226
- timeout (0.4.1)
238
+ securerandom (0.4.1)
239
+ stringio (3.1.7)
240
+ thor (1.4.0)
241
+ timeout (0.4.3)
242
+ tsort (0.2.0)
227
243
  tzinfo (2.0.6)
228
244
  concurrent-ruby (~> 1.0)
229
- useragent (0.16.10)
245
+ uri (1.0.4)
246
+ useragent (0.16.11)
230
247
  webmock (3.14.0)
231
248
  addressable (>= 2.8.0)
232
249
  crack (>= 0.3.2)
233
250
  hashdiff (>= 0.4.0, < 2.0.0)
234
- webrick (1.8.2)
235
- websocket-driver (0.7.6)
251
+ websocket-driver (0.8.0)
252
+ base64
236
253
  websocket-extensions (>= 0.1.0)
237
254
  websocket-extensions (0.1.5)
238
- zeitwerk (2.7.0)
255
+ zeitwerk (2.7.3)
239
256
 
240
257
  PLATFORMS
241
258
  ruby
@@ -69,7 +69,6 @@ module AppManager
69
69
  end
70
70
 
71
71
  def response_from_cache_for_api(http_method, path, options)
72
- Rails.logger.info "Caching data enabled >>>>>>>>>>>>>>>>>>>>>>>>"
73
72
  cache_key = "app-manager-cache/#{ENV['SHOPIFY_APP_SLUG']}/#{path}"
74
73
  if fetch_static_cached_response(cache_key).present?
75
74
  return fetch_static_cached_response(cache_key)
@@ -57,8 +57,9 @@ module AppManager
57
57
  def recurring_charge_api_call(plan,return_url,shop,discount_local_storage)
58
58
  plan_test = nil
59
59
  shop_plan_field = AppManager.configuration.field_names['shopify_plan'] rescue nil
60
- if !plan['affiliate'].nil? && plan['affiliate'].any? && !shop_plan_field.nil? && plan['affiliate'].map{|e| e['value']}.include?(shop[shop_plan_field])
61
- plan_test = true
60
+ partner_development_field = AppManager.configuration.field_names['partner_development'] rescue nil
61
+ if !plan['affiliate'].nil? && plan['affiliate'].any? && !shop_plan_field.nil? && (plan['affiliate'].map{|e| e['value']}.include?(shop[shop_plan_field]) || shop[partner_development_field])
62
+ plan_test = true
62
63
  end
63
64
  trial_days = plan['trial_days'] || 0
64
65
  if shop && shop.shopify_domain && trial_days
@@ -93,7 +94,7 @@ module AppManager
93
94
  if !plan['discount'].nil? && plan['discount'] != 0
94
95
  discount_type = plan['discount_type'] || "percentage"
95
96
  discount_val = discount_type == "percentage" ? (plan['discount'].to_f/ 100) : "#{plan['discount']}"
96
- if !@api_version.nil? && @api_version.to_s.include?('2024')
97
+ if !@api_version.nil? && @api_version.to_s[/^\d{4}/].to_i >= 2024
97
98
  plan_discount = if plan['discount'] && plan['cycle_count'] && plan['cycle_count'].to_i != 0
98
99
  {
99
100
  "discount" => { "durationLimitInIntervals" => (plan['cycle_count'].to_i),
@@ -240,6 +241,7 @@ module AppManager
240
241
  activeSubscriptions {
241
242
  id
242
243
  name
244
+ status
243
245
  test
244
246
  }
245
247
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppManager
4
- VERSION = "2.3.4"
4
+ VERSION = "2.3.6"
5
5
  end
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
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rahul Tiwari @ Hulkapps
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-22 00:00:00.000000000 Z
11
+ date: 2025-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -132,7 +132,7 @@ files:
132
132
  homepage: https://www.hulkapps.com
133
133
  licenses: []
134
134
  metadata: {}
135
- post_install_message:
135
+ post_install_message:
136
136
  rdoc_options: []
137
137
  require_paths:
138
138
  - lib
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubygems_version: 3.4.10
151
- signing_key:
151
+ signing_key:
152
152
  specification_version: 4
153
153
  summary: An API wrapper of Hulkapps AppManager portal
154
154
  test_files: []