shopify-sinatra-app 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: ace215ee071106c2951a8dd56261221309c1660bb1fa8895dfeec5c765b5a750
4
- data.tar.gz: 493dc41a6aee4cead57e017f9dec5740c79ef6b453990c5f22443ae1734fed5a
3
+ metadata.gz: fccd4ff6faec2fcff66aed5c5fdf7f3893935cba839e21d2192065190891bb2c
4
+ data.tar.gz: e29f14e3e7cdb0d7f21bbce7189c61178566c2931d52e00e0980000fe2dd8f8c
5
5
  SHA512:
6
- metadata.gz: ce73f628ac172a2f6f9f96c534a443dd8154c23a816f9a3e18a18ae0c99a004569b545d5e2e36f9e70d7b015de854cbe60f4ac7dbe721d0fd864027fd3d15bcb
7
- data.tar.gz: cdac82b2797ec0d8e75fe85459a0efefc49c1faf9fd6bbad625eba74201000d7c4fca7b0b9589c3a14ddf90cd4a79408e2af0d69f5bcf102ef14fc4c820c3fc4
6
+ metadata.gz: c08033567d98178683fd4a1153eeef3761eed574f7e3f303bc17cd38fec6d252ecd6126a1404d57ccbcbf8af3e5d74a8a8b8fdce7af0092e4b9d560a16de033b
7
+ data.tar.gz: f09d42913d91dd1f502e3243536b960797acacb1dc95afaac0fd30ed3a530194536437310c0eccca99ed7acc887c725c5f9f7438f98eabb378da0da5bc783684
@@ -6,3 +6,8 @@ rvm:
6
6
  gemfile: example/Gemfile
7
7
 
8
8
  script: "./test.sh"
9
+
10
+ notifications:
11
+ email:
12
+ on_success: never
13
+ on_failure: never
@@ -8,33 +8,33 @@ PATH
8
8
  rack-flash3 (~> 1.0.5)
9
9
  resque
10
10
  shopify_api
11
- sinatra (~> 2.0.1)
11
+ sinatra (~> 2.0.2)
12
12
  sinatra-activerecord (~> 2.0.9)
13
13
  sinatra-redis (~> 0.3.0)
14
14
 
15
15
  GEM
16
16
  remote: https://rubygems.org/
17
17
  specs:
18
- activemodel (5.1.5)
19
- activesupport (= 5.1.5)
18
+ activemodel (5.2.0)
19
+ activesupport (= 5.2.0)
20
20
  activemodel-serializers-xml (1.0.2)
21
21
  activemodel (> 5.x)
22
22
  activesupport (> 5.x)
23
23
  builder (~> 3.1)
24
- activerecord (5.1.5)
25
- activemodel (= 5.1.5)
26
- activesupport (= 5.1.5)
27
- arel (~> 8.0)
24
+ activerecord (5.2.0)
25
+ activemodel (= 5.2.0)
26
+ activesupport (= 5.2.0)
27
+ arel (>= 9.0)
28
28
  activeresource (5.0.0)
29
29
  activemodel (>= 5.0, < 6)
30
30
  activemodel-serializers-xml (~> 1.0)
31
31
  activesupport (>= 5.0, < 6)
32
- activesupport (5.1.5)
32
+ activesupport (5.2.0)
33
33
  concurrent-ruby (~> 1.0, >= 1.0.2)
34
- i18n (~> 0.7)
34
+ i18n (>= 0.7, < 2)
35
35
  minitest (~> 5.1)
36
36
  tzinfo (~> 1.1)
37
- arel (8.0.0)
37
+ arel (9.0.0)
38
38
  attr_encrypted (3.1.0)
39
39
  encryptor (~> 3.0.0)
40
40
  builder (3.2.3)
@@ -43,8 +43,12 @@ GEM
43
43
  fakeweb (1.3.0)
44
44
  faraday (0.12.2)
45
45
  multipart-post (>= 1.2, < 3)
46
+ graphql (1.8.5)
47
+ graphql-client (0.13.0)
48
+ activesupport (>= 3.0, < 6.0)
49
+ graphql (~> 1.6)
46
50
  hashie (3.5.7)
47
- i18n (0.9.5)
51
+ i18n (1.0.1)
48
52
  concurrent-ruby (~> 1.0)
49
53
  jwt (1.5.6)
50
54
  metaclass (0.0.4)
@@ -73,7 +77,7 @@ GEM
73
77
  rack (2.0.4)
74
78
  rack-flash3 (1.0.5)
75
79
  rack
76
- rack-protection (2.0.1)
80
+ rack-protection (2.0.3)
77
81
  rack
78
82
  rack-test (0.8.3)
79
83
  rack (>= 1.0, < 3)
@@ -87,13 +91,14 @@ GEM
87
91
  redis-namespace (~> 1.3)
88
92
  sinatra (>= 0.9.2)
89
93
  vegas (~> 0.1.2)
90
- shopify_api (4.10.0)
94
+ shopify_api (4.12.0)
91
95
  activeresource (>= 3.0.0)
96
+ graphql-client
92
97
  rack
93
- sinatra (2.0.1)
98
+ sinatra (2.0.3)
94
99
  mustermann (~> 1.0)
95
100
  rack (~> 2.0)
96
- rack-protection (= 2.0.1)
101
+ rack-protection (= 2.0.3)
97
102
  tilt (~> 2.0)
98
103
  sinatra-activerecord (2.0.13)
99
104
  activerecord (>= 3.2)
@@ -122,4 +127,4 @@ DEPENDENCIES
122
127
  sqlite3
123
128
 
124
129
  BUNDLED WITH
125
- 1.16.1
130
+ 1.16.3
@@ -8,7 +8,7 @@ PATH
8
8
  rack-flash3 (~> 1.0.5)
9
9
  resque
10
10
  shopify_api
11
- sinatra (~> 2.0.1)
11
+ sinatra (~> 2.0.2)
12
12
  sinatra-activerecord (~> 2.0.9)
13
13
  sinatra-redis (~> 0.3.0)
14
14
 
@@ -47,6 +47,10 @@ GEM
47
47
  multipart-post (>= 1.2, < 3)
48
48
  foreman (0.84.0)
49
49
  thor (~> 0.19.1)
50
+ graphql (1.8.5)
51
+ graphql-client (0.13.0)
52
+ activesupport (>= 3.0, < 6.0)
53
+ graphql (~> 1.6)
50
54
  hashie (3.5.7)
51
55
  i18n (0.9.5)
52
56
  concurrent-ruby (~> 1.0)
@@ -75,10 +79,10 @@ GEM
75
79
  omniauth-shopify-oauth2 (1.2.1)
76
80
  omniauth-oauth2 (~> 1.5.0)
77
81
  pg (1.0.0)
78
- rack (2.0.4)
82
+ rack (2.0.5)
79
83
  rack-flash3 (1.0.5)
80
84
  rack
81
- rack-protection (2.0.1)
85
+ rack-protection (2.0.3)
82
86
  rack
83
87
  rack-test (0.8.3)
84
88
  rack (>= 1.0, < 3)
@@ -92,13 +96,14 @@ GEM
92
96
  redis-namespace (~> 1.3)
93
97
  sinatra (>= 0.9.2)
94
98
  vegas (~> 0.1.2)
95
- shopify_api (4.10.0)
99
+ shopify_api (4.12.0)
96
100
  activeresource (>= 3.0.0)
101
+ graphql-client
97
102
  rack
98
- sinatra (2.0.1)
103
+ sinatra (2.0.3)
99
104
  mustermann (~> 1.0)
100
105
  rack (~> 2.0)
101
- rack-protection (= 2.0.1)
106
+ rack-protection (= 2.0.3)
102
107
  tilt (~> 2.0)
103
108
  sinatra-activerecord (2.0.13)
104
109
  activerecord (>= 3.2)
@@ -218,7 +218,11 @@ module Sinatra
218
218
  secret: app.settings.shared_secret)
219
219
 
220
220
  app.get '/install' do
221
- erb :install, layout: false
221
+ if params[:shop].present?
222
+ authenticate
223
+ else
224
+ erb :install, layout: false
225
+ end
222
226
  end
223
227
 
224
228
  app.post '/login' do
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopify-sinatra-app'
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
 
5
5
  s.summary = 'A classy shopify app'
6
6
  s.description = 'A Sinatra extension for building Shopify Apps. Akin to the shopify_app gem but for Sinatra'
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.files = `git ls-files`.split("\n")
14
14
  s.executables << 'shopify-sinatra-app-generator'
15
15
 
16
- s.add_runtime_dependency 'sinatra', '~> 2.0.1'
16
+ s.add_runtime_dependency 'sinatra', '~> 2.0.2'
17
17
  s.add_runtime_dependency 'sinatra-redis', '~> 0.3.0'
18
18
  s.add_runtime_dependency 'sinatra-activerecord', '~> 2.0.9'
19
19
  s.add_runtime_dependency 'rack-flash3', '~> 1.0.5'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-sinatra-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Hughes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-08 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.1
19
+ version: 2.0.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.1
26
+ version: 2.0.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra-redis
29
29
  requirement: !ruby/object:Gem::Requirement