app_manager 1.3.8 → 1.3.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: 667efd1228509611d0870ea31db7cb0c57734d90bc17091a90e2ae4a7d47804c
4
- data.tar.gz: '089191d533d6f0ddf55240d44307d35aabef52c79e8c0ac966c651b90b27762a'
3
+ metadata.gz: 8dfdd07111c73c3c82b14f21099777f2b8f173e5ee38a8a8bd2eb1413993690f
4
+ data.tar.gz: 23e680f4470a0ac86745fc51379f60770e75d9391f02758a9152930afe42c463
5
5
  SHA512:
6
- metadata.gz: 40910c6bf2d7216e356368706b2afa9e55f20abb37ec5b43433161e31f2b4f87f839d3e1603ff91e921cba5a07456935b3daedfb5850860f2c22a371b15072c9
7
- data.tar.gz: b149929e53723bc4a8975d01eb212798f924fa0966453dac28553928fd5970048c7740e3c1fc3027b3175fc90f1a949b98f7e9385609c9453f840696de36cdca
6
+ metadata.gz: 64f68a22812c58a5cb3c2156b8dc1a5d8c0d95a216b61d5bc145494ca53157e3faa424be03cee86bf93a4b5d5466b1e2e2076960e5ef8fd770be91980e38d909
7
+ data.tar.gz: a014b7af9a38fecdd17cebb6d978984cfa95fae711931fca5968a7c1d4160d758acb264e677e9be36a584ca4ee1ca7194739a6dff16784e8b7998c54081f102c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_manager (1.3.8)
4
+ app_manager (1.3.9)
5
5
  activerecord-import (~> 1.4)
6
6
  httparty
7
7
  kaminari (>= 0.16.3)
@@ -121,7 +121,7 @@ GEM
121
121
  mime-types-data (3.2022.0105)
122
122
  mini_mime (1.1.2)
123
123
  mini_portile2 (2.8.0)
124
- minitest (5.16.2)
124
+ minitest (5.16.3)
125
125
  multi_xml (0.6.0)
126
126
  net-imap (0.2.3)
127
127
  digest
@@ -134,7 +134,9 @@ module AppManager
134
134
  end
135
135
  end
136
136
  end
137
- redirect_to "#{app_url}?shop=#{params[:shop]}", :status => 301 and return
137
+ embed_host = Base64.encode64(params[:shop] + "/admin")
138
+ # redirect_to "/login?host=#{embed_host}&shop=#{shop}" and return
139
+ redirect_to "#{app_url}?host=#{embed_host}&shop=#{params[:shop]}", :status => 301 and return
138
140
  else
139
141
  raise Error, "Invalid shopify charge #{charges.insect}"
140
142
  end
@@ -143,7 +145,8 @@ module AppManager
143
145
  end
144
146
  else
145
147
  if params[:shop].present?
146
- redirect_to "#{app_url}?shop=#{params[:shop]}", :status => 301 and return
148
+ embed_host = Base64.encode64(params[:shop] + "/admin")
149
+ redirect_to "#{app_url}?host=#{embed_host}&shop=#{params[:shop]}", :status => 301 and return
147
150
  else
148
151
  raise Error, "Invalid params, must have charge_id,shop && plan in charge controller"
149
152
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppManager
4
- VERSION = "1.3.8"
4
+ VERSION = "1.3.9"
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: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hulkapps
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty