app_manager 1.0.3 → 1.1.0
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 +1 -1
- data/app/controllers/app_manager/plans_controller.rb +1 -1
- data/lib/app_manager/graphql_helper.rb +1 -1
- data/lib/app_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b537020a68cfa232a0ad374777b2a3a9317d5aa599da985ac07334814567d321
|
|
4
|
+
data.tar.gz: e89d2d9140a3196468d77b5bed6e014e3cabde20478c5206c29fc47e3322b9e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95d3718467208b590e9889a5b774da042a257b7e8f8d05f15b2317637b490b6399bdbe8467fad02226b651d9c7119e805f0e031658202f2f439c9a8dff836111
|
|
7
|
+
data.tar.gz: aaeee10fb9e7e7edeb4c743ce2bb3df1b5c332f42386a6d87b866d9e33da2a06ba74e45cb7888da1ea97ca581a48291ae373c49ea1e93cbf7c9e6322337c2ada
|
data/Gemfile.lock
CHANGED
|
@@ -110,7 +110,6 @@ module AppManager
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
def fail_safe_backup
|
|
113
|
-
AppManager.clear_cache
|
|
114
113
|
params_permit
|
|
115
114
|
Thread.new do
|
|
116
115
|
@fs = AppManager::FailSafe.new
|
|
@@ -125,6 +124,7 @@ module AppManager
|
|
|
125
124
|
rescue Exception => e
|
|
126
125
|
Rails.logger.info "APP MANGAGER >>>> #{e.inspect}"
|
|
127
126
|
end
|
|
127
|
+
AppManager.clear_cache
|
|
128
128
|
end
|
|
129
129
|
head :ok
|
|
130
130
|
end
|
|
@@ -72,7 +72,7 @@ module AppManager
|
|
|
72
72
|
|
|
73
73
|
discount_type = plan['discount_type'] || "percentage"
|
|
74
74
|
discount_val = discount_type == "percentage" ? (plan['discount'].to_f/ 100) : "#{plan['discount']}"
|
|
75
|
-
plan_discount = plan['discount'] ? { "discount" => { "durationLimitInIntervals" => (plan['
|
|
75
|
+
plan_discount = plan['discount'] ? { "discount" => { "durationLimitInIntervals" => (plan['cycle_count'] || nil), "value" => {"#{discount_type}" => discount_val} } } : {}
|
|
76
76
|
|
|
77
77
|
price_details = {
|
|
78
78
|
"price": { "amount": plan['price'], "currencyCode": 'USD' },
|
data/lib/app_manager/version.rb
CHANGED