app_manager 2.2.2 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -3
- data/README.md +1 -1
- data/app/controllers/app_manager/charges_controller.rb +6 -6
- data/lib/app_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b79e8f73435de3ded9d7a71d76c5658884d624c96944ae4a1fa6aa9d96504fcc
|
4
|
+
data.tar.gz: cca64ffae23b40444c8abc95ea1d9474b201c74569661e958d145744eff2195e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce51ba456521c7877e92602bcea65a7238eaf2f57b275d2746d8931e75f6074be343386ff96c3d51d5b674800bf56c2e4423c65e80addaaae7777f281d6dd455
|
7
|
+
data.tar.gz: 42d2907e6918b99dd9bceb0f1cf720c08a17bb71de1f4f520b2d17ad741a800ba617c4955c6de68ea894efd667915487dbad522f68646738d34943e907a4bcf0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
app_manager (2.2.
|
4
|
+
app_manager (2.2.4)
|
5
5
|
activerecord-import (~> 1.4)
|
6
6
|
httparty
|
7
7
|
kaminari (>= 0.16.3)
|
@@ -97,6 +97,7 @@ GEM
|
|
97
97
|
crack (0.4.5)
|
98
98
|
rexml
|
99
99
|
crass (1.0.6)
|
100
|
+
csv (3.3.0)
|
100
101
|
date (3.3.4)
|
101
102
|
diff-lcs (1.5.0)
|
102
103
|
dotenv (2.1.2)
|
@@ -105,7 +106,8 @@ GEM
|
|
105
106
|
globalid (1.2.1)
|
106
107
|
activesupport (>= 6.1)
|
107
108
|
hashdiff (1.0.1)
|
108
|
-
httparty (0.
|
109
|
+
httparty (0.22.0)
|
110
|
+
csv
|
109
111
|
mini_mime (>= 1.0.0)
|
110
112
|
multi_xml (>= 0.5.2)
|
111
113
|
i18n (1.14.4)
|
@@ -201,7 +203,7 @@ GEM
|
|
201
203
|
rake (13.0.6)
|
202
204
|
rdoc (6.6.3.1)
|
203
205
|
psych (>= 4.0.0)
|
204
|
-
reline (0.5.
|
206
|
+
reline (0.5.4)
|
205
207
|
io-console (~> 0.5)
|
206
208
|
rexml (3.2.5)
|
207
209
|
rspec (3.11.0)
|
data/README.md
CHANGED
@@ -219,7 +219,7 @@ and then you can use follwing methods with your shop objects.
|
|
219
219
|
* Update app manager gem in your project's Gemfile
|
220
220
|
|
221
221
|
```ruby
|
222
|
-
gem 'app_manager', '2.2.
|
222
|
+
gem 'app_manager', '2.2.3'
|
223
223
|
```
|
224
224
|
* In Rails project, in application.rb, add following line after require "rails/all" line
|
225
225
|
|
@@ -31,7 +31,7 @@ module AppManager
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
rescue Exception => e
|
34
|
-
Rollbar.error("APP MANAGER Process Plan Failed #{e}")
|
34
|
+
Rollbar.error("APP MANAGER Process Plan Failed #{e.inspect}-#{e.backtrace}")
|
35
35
|
end
|
36
36
|
@trial_activated_field = AppManager.configuration.field_names['trial_activated_at']
|
37
37
|
update_info = {@plan_field => params[:plan_id], @trial_activated_field => nil,grandfathered_field => 0}
|
@@ -49,7 +49,7 @@ module AppManager
|
|
49
49
|
"shopify_domain" => params[:shop]
|
50
50
|
})
|
51
51
|
rescue Exception => e
|
52
|
-
Rollbar.error("APP MANAGER Error in Process Plan #{e}")
|
52
|
+
Rollbar.error("APP MANAGER Error in Process Plan #{e.inspect}-#{e.backtrace}")
|
53
53
|
end
|
54
54
|
AppManager.clear_cache
|
55
55
|
# render json: {'redirect_url' => "#{app_url}?shop=#{params[:shop]}"} and return true
|
@@ -135,19 +135,19 @@ module AppManager
|
|
135
135
|
"shopify_domain" => params[:shop]
|
136
136
|
})
|
137
137
|
rescue Exception => e
|
138
|
-
Rollbar.error("Error in APP MANAGER Charge Created Callback >>>> #{e.inspect}")
|
138
|
+
Rollbar.error("Error in APP MANAGER Charge Created Callback >>>> #{e.inspect}-#{e.backtrace}")
|
139
139
|
end
|
140
140
|
|
141
141
|
begin
|
142
142
|
plan_obj = AppManager::Client.new
|
143
|
-
if params[:discount].present? && !params[:discount].nil?
|
143
|
+
if params[:discount].present? && !params[:discount].nil? && params[:discount] != '0'
|
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])
|
147
147
|
end
|
148
148
|
end
|
149
|
-
rescue
|
150
|
-
Rollbar.error("Error in APP MANAGER Discount used API call >>>> #{e.inspect}")
|
149
|
+
rescue Exception => e
|
150
|
+
Rollbar.error("Error in APP MANAGER Discount used API call >>>> #{e.inspect}-#{e.backtrace}")
|
151
151
|
end
|
152
152
|
end
|
153
153
|
end
|
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.2.
|
4
|
+
version: 2.2.4
|
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-04-
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|