shopify_app 7.0.8 → 7.0.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 +4 -4
- data/CHANGELOG +5 -0
- data/README.md +1 -1
- data/app/controllers/shopify_app/authenticated_controller.rb +1 -1
- data/lib/shopify_app/login_protection.rb +1 -3
- data/lib/shopify_app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6716a0798368b5ef8645264b3e2c15c8eccd8dfc
|
4
|
+
data.tar.gz: 30f28d2b2e8424e14780bb23066e4db19964f68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6fadaef635bfbb845906ed29948955f26cfc55340c61ebf42088a1581de915133143b3ea8c433e011143cae4efdf9fe7a540b3c9bedcd04d19c983c98ad6ba2
|
7
|
+
data.tar.gz: e9a1504508ac6c9e3cea11d8cb96c6c6bf5558fdbca556494c608b7484edf5434ebab4cf109d13941d2e9992fab020d5ff5793e52e42f497f8d5b52cd560aa0a
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -99,7 +99,7 @@ After running the `install` generator, you can start your app with `bundle exec
|
|
99
99
|
$ rails generate shopify_app:shop_model
|
100
100
|
```
|
101
101
|
|
102
|
-
The install generator doesn't create any database models for you and if you are starting a new app its quite likely that you will want one (most our internally developed apps do!). This generator creates a simple shop model and a migration. It also creates a model called `SessionStorage` which interacts with `ShopifyApp::SessionRepository`. Check out the later section to learn more about `ShopifyApp::SessionRepository`
|
102
|
+
The install generator doesn't create any database models for you and if you are starting a new app its quite likely that you will want one (most of our internally developed apps do!). This generator creates a simple shop model and a migration. It also creates a model called `SessionStorage` which interacts with `ShopifyApp::SessionRepository`. Check out the later section to learn more about `ShopifyApp::SessionRepository`
|
103
103
|
|
104
104
|
*Note that you will need to run rake db:migrate after this generator*
|
105
105
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ShopifyApp
|
2
2
|
class AuthenticatedController < ApplicationController
|
3
3
|
before_action :login_again_if_different_shop
|
4
|
-
|
4
|
+
around_action :shopify_session
|
5
5
|
layout ShopifyApp.configuration.embedded_app? ? 'embedded_app' : 'application'
|
6
6
|
end
|
7
7
|
end
|
@@ -46,7 +46,7 @@ module ShopifyApp
|
|
46
46
|
def close_session
|
47
47
|
session[:shopify] = nil
|
48
48
|
session[:shopify_domain] = nil
|
49
|
-
redirect_to_with_fallback
|
49
|
+
redirect_to_with_fallback main_or_engine_login_url(shop: params[:shop])
|
50
50
|
end
|
51
51
|
|
52
52
|
def main_or_engine_login_url(params = {})
|
@@ -64,7 +64,6 @@ module ShopifyApp
|
|
64
64
|
<html lang="en">
|
65
65
|
<head>
|
66
66
|
<meta charset="utf-8" />
|
67
|
-
<meta http-equiv="refresh" content="1; url=#{url_json_no_quotes}">
|
68
67
|
<title>Redirecting…</title>
|
69
68
|
<script type="text/javascript">
|
70
69
|
window.location.href = #{url_json};
|
@@ -86,7 +85,6 @@ module ShopifyApp
|
|
86
85
|
<html lang="en">
|
87
86
|
<head>
|
88
87
|
<meta charset="utf-8" />
|
89
|
-
<meta http-equiv="refresh" content="1; url=#{url_json_no_quotes}">
|
90
88
|
<base target="_top">
|
91
89
|
<title>Redirecting…</title>
|
92
90
|
<script type="text/javascript">
|
data/lib/shopify_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|