app_manager 2.4.8 → 2.4.9

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: 5922fc15adc9d5ba7aa9003998579e33ba6a0456fecf2946f107a52d2482a42f
4
- data.tar.gz: 7362ae33050bfa6a14abf27c5aa0f4a7b6984f73fe409dfb541c7f3d9c0a8746
3
+ metadata.gz: 780ea3a314f3ecab02c5727261456643a0579dab2b12f483cfe656c57734dde5
4
+ data.tar.gz: 95001a1ddf18b5f78a08aea43db48dd4001527002db7e3a5a0bebeda124eaf61
5
5
  SHA512:
6
- metadata.gz: 86e9fa4bdf259ef2cefd304bde4f21d1f5d8822b7c30701bf2b6c8c86869c5d6101065fc75967a636a7960d680baa12ad7eaf4642cf3051e57f1179825fb60ee
7
- data.tar.gz: 4bcf0930779073f2d4d890ff761a908d18a2a50c87ab553884ef0b2115c4bddb9a2b86f782200669a33295530432fea0b81fcd79f9ec7141104f5b8c63b5009f
6
+ metadata.gz: 3b2525bff10a02d08d01261b8be7fd19b081562be0187ef7934ae2b53fae5a12fed9c8d85fae8890a540938ea6bcb8cbd6c3d4543307567007cfb63aa7320160
7
+ data.tar.gz: d6dc71cdc4f4082909e2b37f3cd8dc6c9e3ff8121092fbeca043f5b3de4ddea3ef29e6ae7d9f779129ace50b3346de876138a45881d34c5baf403e3c687d2321
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_manager (2.4.8)
4
+ app_manager (2.4.9)
5
5
  activerecord-import (~> 1.4)
6
6
  httparty
7
7
  kaminari (>= 0.16.3)
@@ -115,7 +115,22 @@ module AppManager
115
115
  choose_later_plan = plan['choose_later_plan'] ? 1 : 0
116
116
  is_external_charge = plan['is_external_charge'] ? 1 : 0
117
117
  if !plan["id"].nil?
118
- plan_data << AppManager::Plan.new(plan_id: plan["id"], type: plan["type"], name: plan["name"], price: plan["price"], offer_text: plan["offer_text"], description: plan["description"], interval: interval, shopify_plans: shopify_plans, trial_days: plan["trial_days"], test: plan_test, on_install: plan["on_install"], is_custom: is_custom, app_id: plan["app_id"], base_plan: plan["base_plan"], created_at: plan["created_at"], updated_at: plan["updated_at"], public: public_val, discount: plan["discount"], cycle_count: plan["cycle_count"], store_base_plan: store_base_plan, choose_later_plan: choose_later_plan, discount_type: plan["discount_type"], affiliate: affiliate, features: features, deleted_at: plan["deleted_at"],is_external_charge: plan["is_external_charge"],external_charge_limit: plan["external_charge_limit"],terms: plan["terms"], highlights: highlights, note: note)
118
+ plan_attrs = {
119
+ plan_id: plan["id"], type: plan["type"], name: plan["name"], price: plan["price"],
120
+ offer_text: plan["offer_text"], description: plan["description"], interval: interval,
121
+ shopify_plans: shopify_plans, trial_days: plan["trial_days"], test: plan_test,
122
+ on_install: plan["on_install"], is_custom: is_custom, app_id: plan["app_id"],
123
+ base_plan: plan["base_plan"], created_at: plan["created_at"], updated_at: plan["updated_at"],
124
+ public: public_val, discount: plan["discount"], cycle_count: plan["cycle_count"],
125
+ store_base_plan: store_base_plan, choose_later_plan: choose_later_plan,
126
+ discount_type: plan["discount_type"], affiliate: affiliate, features: features,
127
+ deleted_at: plan["deleted_at"], is_external_charge: plan["is_external_charge"],
128
+ external_charge_limit: plan["external_charge_limit"], terms: plan["terms"]
129
+ }
130
+ plan_columns = AppManager::Plan.column_names
131
+ plan_attrs[:highlights] = highlights if plan_columns.include?('highlights')
132
+ plan_attrs[:note] = note if plan_columns.include?('note')
133
+ plan_data << AppManager::Plan.new(plan_attrs)
119
134
  end
120
135
  end
121
136
  AppManager::Plan.bulk_import plan_data
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppManager
4
- VERSION = "2.4.8"
4
+ VERSION = "2.4.9"
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: 2.4.8
4
+ version: 2.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rahul Tiwari @ Hulkapps
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.5.13
152
+ rubygems_version: 3.5.14
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: An API wrapper of Hulkapps AppManager portal