app_manager 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea9ce4e7004657d741da345f7a7d8e40167620f1895660cd99ed7855613a6348
4
- data.tar.gz: 3b75a5e87d5583da14f8f37fbb19d6bedb30f976e4e04cb91a05329e5b7ab198
3
+ metadata.gz: 12f885e36cfc5b5d0884b2728fb4d3bb6eb413a3f8fc582f3c9d14987da29710
4
+ data.tar.gz: bc2e8f8640351cb0e77627a62973157f4881c5f9f95037f77097c16b48da1e25
5
5
  SHA512:
6
- metadata.gz: 89778c807c975ae3ac24dcac50a5842ad10ef07302da95bb16e9707e68c5a2c7a0eb637d93273c842a6cf6a5b3e3ae90f04c871694497a8788af55fde1c3d835
7
- data.tar.gz: c3a0f1a3918154d250741ab92c3fb335f6178468c05abc3709afb839b3990e534c0f9ee2901d894e390080c2ceafb1e707592a4c31cbcc0ae24452bbdc7cbc2d
6
+ metadata.gz: 3598cd82cace65cb43350d12342cd1f5803febf7448ebacd5baf4ac9ad53eccf15b2efcf1a5b5f6b39c1ccfa181dd7d84bc5e434f8b9efa350262202871779ce
7
+ data.tar.gz: 75c8b0cbd26af4c9978c19914bc40bb30bb7427da667dc64cd1fc4d0b9e786472457892b96ed4bb75f887fcff2dbbe724d5e92d069620dcbe17e5dff94eb9cd9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_manager (1.4.3)
4
+ app_manager (1.4.4)
5
5
  activerecord-import (~> 1.4)
6
6
  httparty
7
7
  kaminari (>= 0.16.3)
@@ -85,14 +85,15 @@ GEM
85
85
  crack (0.4.5)
86
86
  rexml
87
87
  crass (1.0.6)
88
+ date (3.3.3)
88
89
  diff-lcs (1.5.0)
89
90
  dotenv (2.1.2)
90
- erubi (1.11.0)
91
+ erubi (1.12.0)
91
92
  globalid (1.0.0)
92
93
  activesupport (>= 5.0)
93
94
  hashdiff (1.0.1)
94
- httparty (0.20.0)
95
- mime-types (~> 3.0)
95
+ httparty (0.21.0)
96
+ mini_mime (>= 1.0.0)
96
97
  multi_xml (>= 0.5.2)
97
98
  i18n (1.12.0)
98
99
  concurrent-ruby (~> 1.0)
@@ -108,38 +109,39 @@ GEM
108
109
  activerecord
109
110
  kaminari-core (= 1.2.2)
110
111
  kaminari-core (1.2.2)
111
- loofah (2.19.0)
112
+ loofah (2.19.1)
112
113
  crass (~> 1.0.2)
113
114
  nokogiri (>= 1.5.9)
114
- mail (2.7.1)
115
+ mail (2.8.0)
115
116
  mini_mime (>= 0.1.1)
117
+ net-imap
118
+ net-pop
119
+ net-smtp
116
120
  marcel (1.0.2)
117
121
  method_source (1.0.0)
118
- mime-types (3.4.1)
119
- mime-types-data (~> 3.2015)
120
- mime-types-data (3.2022.0105)
121
122
  mini_mime (1.1.2)
122
- mini_portile2 (2.8.0)
123
- minitest (5.16.3)
123
+ mini_portile2 (2.8.1)
124
+ minitest (5.17.0)
124
125
  multi_xml (0.6.0)
125
- net-imap (0.3.1)
126
+ net-imap (0.3.4)
127
+ date
126
128
  net-protocol
127
129
  net-pop (0.1.2)
128
130
  net-protocol
129
- net-protocol (0.1.3)
131
+ net-protocol (0.2.1)
130
132
  timeout
131
- net-smtp (0.3.2)
133
+ net-smtp (0.3.3)
132
134
  net-protocol
133
135
  nio4r (2.5.8)
134
- nokogiri (1.13.8)
136
+ nokogiri (1.13.10)
135
137
  mini_portile2 (~> 2.8.0)
136
138
  racc (~> 1.4)
137
139
  pry (0.14.1)
138
140
  coderay (~> 1.1)
139
141
  method_source (~> 1.0)
140
142
  public_suffix (4.0.6)
141
- racc (1.6.0)
142
- rack (2.2.4)
143
+ racc (1.6.2)
144
+ rack (2.2.5)
143
145
  rack-test (2.0.2)
144
146
  rack (>= 1.3)
145
147
  rails (7.0.4)
@@ -159,8 +161,8 @@ GEM
159
161
  rails-dom-testing (2.0.3)
160
162
  activesupport (>= 4.2.0)
161
163
  nokogiri (>= 1.6)
162
- rails-html-sanitizer (1.4.3)
163
- loofah (~> 2.3)
164
+ rails-html-sanitizer (1.4.4)
165
+ loofah (~> 2.19, >= 2.19.1)
164
166
  railties (7.0.4)
165
167
  actionpack (= 7.0.4)
166
168
  activesupport (= 7.0.4)
@@ -186,7 +188,7 @@ GEM
186
188
  rspec-support (~> 3.11.0)
187
189
  rspec-support (3.11.0)
188
190
  thor (1.2.1)
189
- timeout (0.3.0)
191
+ timeout (0.3.1)
190
192
  tzinfo (2.0.5)
191
193
  concurrent-ruby (~> 1.0)
192
194
  webmock (3.14.0)
@@ -196,7 +198,7 @@ GEM
196
198
  websocket-driver (0.7.5)
197
199
  websocket-extensions (>= 0.1.0)
198
200
  websocket-extensions (0.1.5)
199
- zeitwerk (2.6.1)
201
+ zeitwerk (2.6.6)
200
202
 
201
203
  PLATFORMS
202
204
  ruby
@@ -142,7 +142,7 @@ module AppManager
142
142
  redirect_to "#{app_url}?host=#{embed_host}&shop=#{params[:shop]}", :status => 301 and return
143
143
  end
144
144
  else
145
- raise Error, "Invalid shopify charge #{charges.insect}"
145
+ raise Error, "Invalid shopify charge #{charges.inspect}"
146
146
  end
147
147
  else
148
148
  raise ModelNotFound, "Shop not found"
@@ -147,7 +147,8 @@ module AppManager
147
147
  if discount_plans.any?
148
148
  discount_plans_data = []
149
149
  discount_plans.each do |discount_plan|
150
- discount_plans_data << AppManager::DiscountPlan.new(id: discount_plan['id'], discount: discount_plan['discount'], shop_domain: discount_plan['shop_domain'], cycle_count: discount_plan['cycle_count'], plan_id: discount_plan['plan_id'], created_by: discount_plan['created_by'], created_at: discount_plan['created_at'], updated_at: discount_plan['updated_at'], app_id: discount_plan['app_id'], discount_type: discount_plan['discount_type'])
150
+ discount_plans_data << AppManager::DiscountPlan.new(discount: discount_plan['discount'], shop_domain: discount_plan['shop_domain'], cycle_count: discount_plan['cycle_count'], plan_id: discount_plan['plan_id'], created_by: discount_plan['created_by'], created_at: discount_plan['created_at'], updated_at: discount_plan['updated_at'], app_id: discount_plan['app_id'], discount_type: discount_plan['discount_type'])
151
+ # discount_plans_data << AppManager::DiscountPlan.new(id: discount_plan['id'], discount: discount_plan['discount'], shop_domain: discount_plan['shop_domain'], cycle_count: discount_plan['cycle_count'], plan_id: discount_plan['plan_id'], created_by: discount_plan['created_by'], created_at: discount_plan['created_at'], updated_at: discount_plan['updated_at'], app_id: discount_plan['app_id'], discount_type: discount_plan['discount_type'])
151
152
  end
152
153
  AppManager::DiscountPlan.bulk_import discount_plans_data
153
154
  end
@@ -163,7 +164,8 @@ module AppManager
163
164
  if extend_trials.any?
164
165
  extend_trials_data = []
165
166
  extend_trials.each do |extend_trial|
166
- extend_trials_data << AppManager::ExtendTrial.new(id: extend_trial['id'], shop_domain: extend_trial['shop_domain'], plan_id: extend_trial['plan_id'], app_id: extend_trial['app_id'], days: extend_trial['days'], created_by: extend_trial['created_by'], created_at: extend_trial['created_at'], updated_at: extend_trial['updated_at'], extend_trial_start_at: extend_trial['extend_trial_start_at'])
167
+ extend_trials_data << AppManager::ExtendTrial.new(shop_domain: extend_trial['shop_domain'], plan_id: extend_trial['plan_id'], app_id: extend_trial['app_id'], days: extend_trial['days'], created_by: extend_trial['created_by'], created_at: extend_trial['created_at'], updated_at: extend_trial['updated_at'], extend_trial_start_at: extend_trial['extend_trial_start_at'])
168
+ # extend_trials_data << AppManager::ExtendTrial.new(id: extend_trial['id'], shop_domain: extend_trial['shop_domain'], plan_id: extend_trial['plan_id'], app_id: extend_trial['app_id'], days: extend_trial['days'], created_by: extend_trial['created_by'], created_at: extend_trial['created_at'], updated_at: extend_trial['updated_at'], extend_trial_start_at: extend_trial['extend_trial_start_at'])
167
169
  end
168
170
  AppManager::ExtendTrial.bulk_import extend_trials_data
169
171
  end
@@ -179,7 +181,8 @@ module AppManager
179
181
  if plan_users.any?
180
182
  extend_plan_users = []
181
183
  plan_users.each do |plan_user|
182
- extend_plan_users << AppManager::PlanUser.new(id: plan_user['id'], shop_domain: plan_user['shop_domain'], plan_id: plan_user['plan_id'], created_by: plan_user['created_by'], created_at: plan_user['created_at'], updated_at: plan_user['updated_at'])
184
+ extend_plan_users << AppManager::PlanUser.new(shop_domain: plan_user['shop_domain'], plan_id: plan_user['plan_id'], created_by: plan_user['created_by'], created_at: plan_user['created_at'], updated_at: plan_user['updated_at'])
185
+ # extend_plan_users << AppManager::PlanUser.new(id: plan_user['id'], shop_domain: plan_user['shop_domain'], plan_id: plan_user['plan_id'], created_by: plan_user['created_by'], created_at: plan_user['created_at'], updated_at: plan_user['updated_at'])
183
186
  end
184
187
  AppManager::ExtendTrial.bulk_import extend_plan_users
185
188
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppManager
4
- VERSION = "1.4.3"
4
+ VERSION = "1.4.4"
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: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hulkapps
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-10 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty