shopify_app 4.4.2 → 4.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb8a7bf29ca35c681a1368570401db4a6119aa8b
4
- data.tar.gz: 8901cb308b59cc998a00cff89a3ab84b3fdb1295
3
+ metadata.gz: 5e7e6895d052ae1ec0c48396d25fd9d9aaf2417a
4
+ data.tar.gz: b0a52a00cfd07552fa51cacec82e42daf8e2fd90
5
5
  SHA512:
6
- metadata.gz: 48d899dc17c41869a1cad8e4b3954fab5652e324ccfe1a52bdefb1f06fe98a4158ef3738c4b5f1242780cb7de8c902fb263add788fd9157b80be26a2833133a8
7
- data.tar.gz: f8682115d4b8255c2b828797f86e382851b2b7170a37504a89c0e38a77698e19b1e5edf9eb1170024aef25a817ef49984500884eee2b130d21c7e7840f9e442f
6
+ metadata.gz: 2bbf9c9b8b3e079aedb4ace014ae0004ef01febd14e8fb36bbef4dc51a844b66b944625ca66b1cb8aad304f64744d8bf3eb585f4804694688d7a7da2c538655c
7
+ data.tar.gz: af8191259ab3172a2c1933a026b4495ad0d4f17025ad4154a31d9cbf6671793e8fde0746fabebb1103b6a79c23b25bc7128e145eb93778cc5f2ced99bd0d01d7
data/README.md CHANGED
@@ -34,7 +34,7 @@ When you create your app in the Shopify Partner Account, set the Application Cal
34
34
 
35
35
  http://localhost:3000
36
36
 
37
- You can also create a private application that only works for your shop by visiting https://YOUR-SHOP.myshopify.com/admin/api
37
+ You can also create a private application that only works for your shop by visiting https://YOUR-SHOP.myshopify.com/admin/apps/private.
38
38
 
39
39
  ### Example
40
40
 
@@ -53,7 +53,10 @@ class ShopifyAppGenerator < Rails::Generators::Base
53
53
  end
54
54
 
55
55
  def display_readme
56
- `bundle install`
56
+ Bundler.with_clean_env do
57
+ run 'bundle install'
58
+ end
59
+
57
60
  readme '../README'
58
61
  end
59
62
 
@@ -44,7 +44,7 @@ class SessionsController < ApplicationController
44
44
  return unless params[:shop].present?
45
45
  name = params[:shop].to_s.strip
46
46
  name += '.myshopify.com' if !name.include?("myshopify.com") && !name.include?(".")
47
- name.gsub!('https://', '').sub('http://', '')
47
+ name.sub!(%r|https?://|, '')
48
48
 
49
49
  u = URI("http://#{name}")
50
50
  u.host.ends_with?(".myshopify.com") ? u.host : nil
@@ -2,7 +2,7 @@ module ShopifyApp::LoginProtection
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
- rescue_from ActiveResource::UnauthorizedAccess, :with => :close_session
5
+ rescue_from ActiveResource::UnauthorizedAccess, OmniAuth::Strategies::OAuth2::CallbackError, :with => :close_session
6
6
  end
7
7
 
8
8
  def shopify_session
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = "4.4.2"
2
+ VERSION = "4.4.4"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_runtime_dependency('rails', '>= 3.1', '< 5.0')
18
18
  s.add_runtime_dependency('shopify_api', '~> 3.2.0')
19
- s.add_runtime_dependency('omniauth-shopify-oauth2', '1.1.2')
19
+ s.add_runtime_dependency('omniauth-shopify-oauth2', '~> 1.1.4')
20
20
  s.add_runtime_dependency('less-rails-bootstrap', '~> 2.0')
21
21
 
22
22
  s.add_development_dependency('rake')
metadata CHANGED
@@ -1,117 +1,117 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.2
4
+ version: 4.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-11 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
- - - "<"
20
+ - - <
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.1'
30
- - - "<"
30
+ - - <
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: shopify_api
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
39
  version: 3.2.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ~>
45
45
  - !ruby/object:Gem::Version
46
46
  version: 3.2.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: omniauth-shopify-oauth2
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - '='
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 1.1.2
53
+ version: 1.1.4
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '='
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
- version: 1.1.2
60
+ version: 1.1.4
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: less-rails-bootstrap
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ~>
66
66
  - !ruby/object:Gem::Version
67
67
  version: '2.0'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ~>
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rake
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - '>='
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: minitest
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">="
100
+ - - '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: mocha
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
107
+ - - '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - '>='
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  description: Creates a basic sessions controller for authenticating with your Shop
@@ -124,7 +124,7 @@ executables: []
124
124
  extensions: []
125
125
  extra_rdoc_files: []
126
126
  files:
127
- - ".gitignore"
127
+ - .gitignore
128
128
  - CHANGELOG
129
129
  - Gemfile
130
130
  - LICENSE
@@ -186,17 +186,17 @@ require_paths:
186
186
  - lib
187
187
  required_ruby_version: !ruby/object:Gem::Requirement
188
188
  requirements:
189
- - - ">="
189
+ - - '>='
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - ">="
194
+ - - '>='
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project: shopify-api
199
- rubygems_version: 2.2.0
199
+ rubygems_version: 2.0.14
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: This gem is used to get quickly started with the Shopify API