shopify_app 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,6 +35,7 @@ class ShopifyAppGenerator < Rails::Generators::Base
35
35
 
36
36
  def add_bootstrap_gem
37
37
  insert_into_file "Gemfile", "\ngem 'less-rails-bootstrap'\n\n", :before => '# Gems used only for assets and not required'
38
+ insert_into_file "Gemfile", "\ngem 'therubyracer', :platforms => :ruby\n\n", :before => 'end'
38
39
  end
39
40
 
40
41
  def add_routes
@@ -51,6 +52,7 @@ class ShopifyAppGenerator < Rails::Generators::Base
51
52
  end
52
53
 
53
54
  def display_readme
55
+ `bundle install`
54
56
  readme '../README'
55
57
  end
56
58
  end
@@ -2,11 +2,9 @@ Rails.application.config.middleware.use OmniAuth::Builder do
2
2
  provider :shopify,
3
3
  ShopifyApp.configuration.api_key,
4
4
  ShopifyApp.configuration.secret,
5
- :scope => 'write_script_tags,write_shipping,write_orders,read_orders,read_products,read_customers,read_content',
6
5
  :setup => lambda {|env|
7
6
  params = Rack::Utils.parse_query(env['QUERY_STRING'])
8
7
  site_url = "https://#{params['shop']}"
9
- Rails.logger.info(env['omniauth.strategy'])
10
8
  env['omniauth.strategy'].options[:client_options][:site] = site_url
11
9
  }
12
10
  end
@@ -3,11 +3,9 @@ module ShopifyApp::LoginProtection
3
3
  if session[:shopify]
4
4
  begin
5
5
  # session[:shopify] set in LoginController#finalize
6
- ShopifyAPI::Base.site = session[:shopify].site
7
6
  ShopifyAPI::Base.activate_session(session[:shopify])
8
7
  yield
9
8
  ensure
10
- ShopifyAPI::Base.site = nil
11
9
  ShopifyAPI::Base.clear_session
12
10
  end
13
11
  else
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
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: 3.0.0
4
+ version: 3.0.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-05-09 00:00:00.000000000 Z
12
+ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70366611983880 !ruby/object:Gem::Requirement
16
+ requirement: &70148189103040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70366611983880
24
+ version_requirements: *70148189103040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shopify_api
27
- requirement: &70366611983380 !ruby/object:Gem::Requirement
27
+ requirement: &70148189102540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70366611983380
35
+ version_requirements: *70148189102540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: omniauth-shopify-oauth2
38
- requirement: &70366611982920 !ruby/object:Gem::Requirement
38
+ requirement: &70148189102080 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - =
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70366611982920
46
+ version_requirements: *70148189102080
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70366611982540 !ruby/object:Gem::Requirement
49
+ requirement: &70148189101700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70366611982540
57
+ version_requirements: *70148189101700
58
58
  description: Creates a basic login controller for authenticating with your Shop and
59
59
  also a product controller which lets your edit your products easily.
60
60
  email: