shopify_app 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2013 Shopify
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.md CHANGED
@@ -28,7 +28,7 @@ $ bundle install
28
28
  $ rails generate shopify_app your_app_api_key your_app_secret
29
29
  ```
30
30
 
31
- If you don't have an API key yet, create a Shopify Partner account at http://shopify.com/partners and create an app. You can lso create test shops once you're logged in as a partner.
31
+ If you don't have an API key yet, create a Shopify Partner account at http://shopify.com/partners and create an app. You can also create test shops once you're logged in as a partner.
32
32
 
33
33
  When you create your app in the Shopify Partner Account, set the Application Callback URL to
34
34
 
@@ -45,5 +45,8 @@ class SessionsController < ApplicationController
45
45
  name = params[:shop].to_s.strip
46
46
  name += '.myshopify.com' if !name.include?("myshopify.com") && !name.include?(".")
47
47
  name.sub('https://', '').sub('http://', '')
48
+
49
+ u = URI("http://#{name}")
50
+ u.host.ends_with?("myshopify.com") ? u.host : nil
48
51
  end
49
52
  end
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = "4.2.0"
2
+ VERSION = "4.2.1"
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
+ version: 4.2.1
4
5
  prerelease:
5
- version: 4.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Shopify
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2013-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,11 +22,10 @@ dependencies:
20
22
  - - <
21
23
  - !ruby/object:Gem::Version
22
24
  version: '5.0'
23
- none: false
24
- name: rails
25
25
  type: :runtime
26
26
  prerelease: false
27
- requirement: !ruby/object:Gem::Requirement
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
28
29
  requirements:
29
30
  - - ! '>='
30
31
  - !ruby/object:Gem::Version
@@ -32,103 +33,102 @@ dependencies:
32
33
  - - <
33
34
  - !ruby/object:Gem::Version
34
35
  version: '5.0'
35
- none: false
36
36
  - !ruby/object:Gem::Dependency
37
- version_requirements: !ruby/object:Gem::Requirement
37
+ name: shopify_api
38
+ requirement: !ruby/object:Gem::Requirement
39
+ none: false
38
40
  requirements:
39
41
  - - ~>
40
42
  - !ruby/object:Gem::Version
41
43
  version: 3.0.0
42
- none: false
43
- name: shopify_api
44
44
  type: :runtime
45
45
  prerelease: false
46
- requirement: !ruby/object:Gem::Requirement
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ none: false
47
48
  requirements:
48
49
  - - ~>
49
50
  - !ruby/object:Gem::Version
50
51
  version: 3.0.0
51
- none: false
52
52
  - !ruby/object:Gem::Dependency
53
- version_requirements: !ruby/object:Gem::Requirement
53
+ name: omniauth-shopify-oauth2
54
+ requirement: !ruby/object:Gem::Requirement
55
+ none: false
54
56
  requirements:
55
57
  - - '='
56
58
  - !ruby/object:Gem::Version
57
59
  version: 1.1.0
58
- none: false
59
- name: omniauth-shopify-oauth2
60
60
  type: :runtime
61
61
  prerelease: false
62
- requirement: !ruby/object:Gem::Requirement
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ none: false
63
64
  requirements:
64
65
  - - '='
65
66
  - !ruby/object:Gem::Version
66
67
  version: 1.1.0
67
- none: false
68
68
  - !ruby/object:Gem::Dependency
69
- version_requirements: !ruby/object:Gem::Requirement
69
+ name: less-rails-bootstrap
70
+ requirement: !ruby/object:Gem::Requirement
71
+ none: false
70
72
  requirements:
71
73
  - - ! '>'
72
74
  - !ruby/object:Gem::Version
73
75
  version: '0'
74
- none: false
75
- name: less-rails-bootstrap
76
76
  type: :runtime
77
77
  prerelease: false
78
- requirement: !ruby/object:Gem::Requirement
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ none: false
79
80
  requirements:
80
81
  - - ! '>'
81
82
  - !ruby/object:Gem::Version
82
83
  version: '0'
83
- none: false
84
84
  - !ruby/object:Gem::Dependency
85
- version_requirements: !ruby/object:Gem::Requirement
85
+ name: rake
86
+ requirement: !ruby/object:Gem::Requirement
87
+ none: false
86
88
  requirements:
87
89
  - - ! '>='
88
90
  - !ruby/object:Gem::Version
89
91
  version: '0'
90
- none: false
91
- name: rake
92
92
  type: :development
93
93
  prerelease: false
94
- requirement: !ruby/object:Gem::Requirement
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ none: false
95
96
  requirements:
96
97
  - - ! '>='
97
98
  - !ruby/object:Gem::Version
98
99
  version: '0'
99
- none: false
100
100
  - !ruby/object:Gem::Dependency
101
- version_requirements: !ruby/object:Gem::Requirement
101
+ name: minitest
102
+ requirement: !ruby/object:Gem::Requirement
103
+ none: false
102
104
  requirements:
103
105
  - - ! '>='
104
106
  - !ruby/object:Gem::Version
105
107
  version: '0'
106
- none: false
107
- name: minitest
108
108
  type: :development
109
109
  prerelease: false
110
- requirement: !ruby/object:Gem::Requirement
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ none: false
111
112
  requirements:
112
113
  - - ! '>='
113
114
  - !ruby/object:Gem::Version
114
115
  version: '0'
115
- none: false
116
116
  - !ruby/object:Gem::Dependency
117
- version_requirements: !ruby/object:Gem::Requirement
117
+ name: mocha
118
+ requirement: !ruby/object:Gem::Requirement
119
+ none: false
118
120
  requirements:
119
121
  - - ! '>='
120
122
  - !ruby/object:Gem::Version
121
123
  version: '0'
122
- none: false
123
- name: mocha
124
124
  type: :development
125
125
  prerelease: false
126
- requirement: !ruby/object:Gem::Requirement
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ none: false
127
128
  requirements:
128
129
  - - ! '>='
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
- none: false
132
132
  description: Creates a basic sessions controller for authenticating with your Shop
133
133
  and also a product controller which lets your edit your products easily.
134
134
  email:
@@ -142,6 +142,7 @@ files:
142
142
  - .gitignore
143
143
  - CHANGELOG
144
144
  - Gemfile
145
+ - LICENSE
145
146
  - README.md
146
147
  - RELEASING
147
148
  - Rakefile
@@ -198,17 +199,17 @@ rdoc_options: []
198
199
  require_paths:
199
200
  - lib
200
201
  required_ruby_version: !ruby/object:Gem::Requirement
202
+ none: false
201
203
  requirements:
202
204
  - - ! '>='
203
205
  - !ruby/object:Gem::Version
204
206
  version: '0'
205
- none: false
206
207
  required_rubygems_version: !ruby/object:Gem::Requirement
208
+ none: false
207
209
  requirements:
208
210
  - - ! '>='
209
211
  - !ruby/object:Gem::Version
210
212
  version: '0'
211
- none: false
212
213
  requirements: []
213
214
  rubyforge_project: shopify-api
214
215
  rubygems_version: 1.8.23