shopify_app 4.1.0 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -84,6 +84,6 @@ Rails 3.0 (as in before the big changes in 3.1) is supported on a branch of our
84
84
 
85
85
  http://api.shopify.com <= Read up on the possible API calls!
86
86
 
87
- http://stackoverflow.com/questions/tagged/shopify <= Ask questions!
87
+ http://ecommerce.shopify.com/c/shopify-apis-and-technology <= Ask questions!
88
88
 
89
- http://wiki.shopify.com/Shopify_App_Development <= Edit the docs!
89
+ http://wiki.shopify.com/Shopify_App_Development <= Edit the docs!
@@ -9,7 +9,7 @@ class SessionsController < ApplicationController
9
9
 
10
10
  def show
11
11
  if response = request.env['omniauth.auth']
12
- sess = ShopifyAPI::Session.new(params[:shop], response[:credentials][:token])
12
+ sess = ShopifyAPI::Session.new(params[:shop], response['credentials']['token'])
13
13
  session[:shopify] = sess
14
14
  flash[:notice] = "Logged in"
15
15
  redirect_to return_address
@@ -4,7 +4,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
4
4
  ShopifyApp.configuration.secret,
5
5
 
6
6
  # Example permission scopes - see http://api.shopify.com/authentication.html for full listing
7
- # :scope => 'read_orders, write_products',
7
+ :scope => 'read_orders, read_products',
8
8
 
9
9
  :setup => lambda {|env|
10
10
  params = Rack::Utils.parse_query(env['QUERY_STRING'])
@@ -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, :with => :close_session
6
6
  end
7
7
 
8
8
  def shopify_session
@@ -15,7 +15,7 @@ module ShopifyApp::LoginProtection
15
15
  ShopifyAPI::Base.clear_session
16
16
  end
17
17
  else
18
- session[:return_to] = request.fullpath
18
+ session[:return_to] = request.fullpath if request.get?
19
19
  redirect_to login_path
20
20
  end
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = "4.1.0"
2
+ VERSION = "4.1.1"
3
3
  end
data/shopify_app.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_runtime_dependency('rails', '~> 3.1')
18
18
  s.add_runtime_dependency('shopify_api', '~> 3.0.0')
19
- s.add_runtime_dependency('omniauth-shopify-oauth2', '1.0.0')
19
+ s.add_runtime_dependency('omniauth-shopify-oauth2', '1.1.0')
20
20
 
21
21
  s.add_development_dependency('rake')
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-01 00:00:00.000000000 Z
12
+ date: 2013-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70331226041240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '3.1'
24
+ version_requirements: *70331226041240
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: shopify_api
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70331226040720 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ~>
@@ -37,31 +32,21 @@ dependencies:
37
32
  version: 3.0.0
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 3.0.0
35
+ version_requirements: *70331226040720
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: omniauth-shopify-oauth2
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &70331226040180 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
- - - '='
41
+ - - =
52
42
  - !ruby/object:Gem::Version
53
- version: 1.0.0
43
+ version: 1.1.0
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 1.0.0
46
+ version_requirements: *70331226040180
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: rake
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &70331226039740 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ! '>='
@@ -69,12 +54,7 @@ dependencies:
69
54
  version: '0'
70
55
  type: :development
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
57
+ version_requirements: *70331226039740
78
58
  description: Creates a basic sessions controller for authenticating with your Shop
79
59
  and also a product controller which lets your edit your products easily.
80
60
  email:
@@ -150,8 +130,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
130
  version: '0'
151
131
  requirements: []
152
132
  rubyforge_project: shopify-api
153
- rubygems_version: 1.8.23
133
+ rubygems_version: 1.8.11
154
134
  signing_key:
155
135
  specification_version: 3
156
136
  summary: This gem is used to get quickly started with the Shopify API
157
137
  test_files: []
138
+ has_rdoc: