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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4ac086c11bd0f15ee5cc2a4227d9a46c0ea87b835339fb02c9f038c8076ce78
4
- data.tar.gz: 1240086895ddad3029dd4faf5609099e56f371ffa771529898e4a2f31c828445
3
+ metadata.gz: b537020a68cfa232a0ad374777b2a3a9317d5aa599da985ac07334814567d321
4
+ data.tar.gz: e89d2d9140a3196468d77b5bed6e014e3cabde20478c5206c29fc47e3322b9e9
5
5
  SHA512:
6
- metadata.gz: d13d4a9a5de30801b4eadde5fa98880509c1965867a3dc9edaa87cf940f2b10ef9c815b9fe48f0177f8e5cb5fc5696172f77c4b0dcdbdb534d46044f6fa3c1d8
7
- data.tar.gz: 10bb4cbdecba1ccd6bdde4d33cf03af33adc7c3d39a49df0a21cff55ae829a25cceb1b3ed7bd3eaa56b8122f77a891ef81b7e93f4e7bc2b1d9c6a2560e681ecf
6
+ metadata.gz: 95d3718467208b590e9889a5b774da042a257b7e8f8d05f15b2317637b490b6399bdbe8467fad02226b651d9c7119e805f0e031658202f2f439c9a8dff836111
7
+ data.tar.gz: aaeee10fb9e7e7edeb4c743ce2bb3df1b5c332f42386a6d87b866d9e33da2a06ba74e45cb7888da1ea97ca581a48291ae373c49ea1e93cbf7c9e6322337c2ada
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_manager (1.0.3)
4
+ app_manager (1.1.0)
5
5
  httparty
6
6
  kaminari (>= 0.16.3)
7
7
  rails (>= 5.2.0)
@@ -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['discount_interval'] || nil), "value" => {"#{discount_type}" => discount_val} } } : {}
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' },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppManager
4
- VERSION = "1.0.3"
4
+ VERSION = "1.1.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hulkapps