app_manager 2.4.4 → 2.4.6

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: badbc7307519661c369eb2a5e601018d1da63fb4a6d0640d8a9b45aadf38c1e5
4
- data.tar.gz: 1baffa7b22a09589b346cd32f5071ff4cb3b3a08fc68bf0956828d0bf86cd877
3
+ metadata.gz: 7e72bec9798a243238a3bc0cce20ed046e348c5b11c35f901de5b180441fb5ed
4
+ data.tar.gz: 99f99a68db2184016932271db4b4ff2eb1617a8e3892ab90f4b3830b55d5542c
5
5
  SHA512:
6
- metadata.gz: 1b7955219208f4081acd575f971f3bb8b77e21fdc113f603e56e8cd23e08be8a6bfe9dfcd06a8609325cd421889e92e342730a6635d6ab31d24089cca30628ce
7
- data.tar.gz: 66a155af1b682ba51f94f57c2bffcaa0c38110129bafc86003bd3e7f9280bdf84e6004b324fbb1e1a57da691ce7b934c11303d2be2e7be1b95acee9fa065b85a
6
+ metadata.gz: c3be16a77d57cb439f5dac053f553ae2f10d880f25c7c3a4180e8d679e8701ad679dadffa05ea62e9ee02de1b77cf3cbeb33c825440b4b9ad1af88757e8eff0a
7
+ data.tar.gz: 39b853d67b60f8bcbb65fa09ac116dde49936ab399a4efc1beb24a284668d5976af60d372965ebd427d596c3ba9ce78518fc6cff09f49dfb0585343f4ba18f9d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_manager (2.4.4)
4
+ app_manager (2.4.6)
5
5
  activerecord-import (~> 1.4)
6
6
  httparty
7
7
  kaminari (>= 0.16.3)
@@ -120,7 +120,7 @@ GEM
120
120
  prism (>= 1.3.0)
121
121
  rdoc (>= 4.0.0)
122
122
  reline (>= 0.4.2)
123
- json (2.19.1)
123
+ json (2.19.2)
124
124
  kaminari (1.2.2)
125
125
  activesupport (>= 4.1.0)
126
126
  kaminari-actionview (= 1.2.2)
@@ -146,7 +146,6 @@ GEM
146
146
  marcel (1.1.0)
147
147
  method_source (1.1.0)
148
148
  mini_mime (1.1.5)
149
- mini_portile2 (2.8.9)
150
149
  minitest (6.0.2)
151
150
  drb (~> 2.0)
152
151
  prism (~> 1.5)
@@ -162,9 +161,6 @@ GEM
162
161
  net-smtp (0.5.1)
163
162
  net-protocol
164
163
  nio4r (2.7.5)
165
- nokogiri (1.19.1)
166
- mini_portile2 (~> 2.8.2)
167
- racc (~> 1.4)
168
164
  nokogiri (1.19.1-x86_64-linux-gnu)
169
165
  racc (~> 1.4)
170
166
  pp (0.6.3)
@@ -30,7 +30,11 @@ module AppManager
30
30
  @shop = shop_data
31
31
  if !@shop.nil?
32
32
  active_plan_id_or_name = @shop[@plan_field] rescue nil
33
- plans = plan_obj.get_plans(params[:shop_domain], active_plan_id_or_name)
33
+ sdk_versions = [
34
+ 'backend' => AppManager::VERSION,
35
+ 'frontend' => params[:frontend_sdk_version]
36
+ ];
37
+ plans = plan_obj.get_plans(params[:shop_domain], active_plan_id_or_name, sdk_versions)
34
38
  # render json: plans and return #use this to test plan failsafe api
35
39
  if !@field_names.nil? && @field_names.has_key?('shopify_plan') && !@field_names.nil?
36
40
  shopify_plan_field = AppManager.configuration.field_names['shopify_plan']
@@ -136,7 +140,7 @@ module AppManager
136
140
  all_user_count = model.count
137
141
  users = {
138
142
  "current_page" => data && data.current_page ? data.current_page : 0,
139
- "data" => data ? data.collect { |st| @field_names.map { |key, value| [key, "#{st[value]}"] }.to_h } : [],
143
+ "data" => data ? data.collect { |st| @field_names.except('shopify_token').map { |key, value| [key, "#{st[value]}"] }.to_h } : [],
140
144
  "first_page_url" => "#{app_url}/api/app-manager/users?page=1",
141
145
  "from" => data && data.total_pages ? data.current_page == 1 ? 1 : ((data.current_page-1)*items_per_page)+1 : 0,
142
146
  "last_page" => data && data.total_pages ? data.total_pages : 0,
@@ -2,8 +2,8 @@ module AppManager
2
2
  class Client
3
3
  module Plans
4
4
 
5
- def get_plans(shop_domain, active_plan_id = nil)
6
- get("/plans?shop_domain=#{shop_domain}&active_plan_id=#{active_plan_id}")
5
+ def get_plans(shop_domain, active_plan_id = nil, sdk_versions=[])
6
+ get("/plans?shop_domain=#{shop_domain}&active_plan_id=#{active_plan_id}&sdk_versions=#{sdk_versions}")
7
7
  end
8
8
 
9
9
  def get_plan(plan_id, shop_domain = nil)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppManager
4
- VERSION = "2.4.4"
4
+ VERSION = "2.4.6"
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: 2.4.4
4
+ version: 2.4.6
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: 2026-03-18 00:00:00.000000000 Z
11
+ date: 2026-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty