ruby_shopify_app 1.1.0 → 1.2.0

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: c906c98c85e0ecff5777e1c540e66e1e98ab910a958b23026b58db1c54994ff2
4
- data.tar.gz: 054b8c58d09906b598d2c168a9c3fd549e3115332be76ce0fd2ca6187f1c4e25
3
+ metadata.gz: 7d1cf572a156f64fd1c7657083c0520b31cbb9c790cce58a227b2ad88039188c
4
+ data.tar.gz: c35e4a83e105417157ec7c84ad3f6b4fe1fd834bf799edb3f7d05a9270720423
5
5
  SHA512:
6
- metadata.gz: 3543a5662caec2fb5ecff0aa30652f8ff8a99b81c08a0ba5655e1867ea80c5e547cff828889fd03c29534c5d5ddbc23010dbbe814ec49a7390b6bf6682fc4385
7
- data.tar.gz: fa36e379c6a89076af24441d13db09e0569a47c34c45b32a3f129c1be3d4e5fe47229945aefd80e0f49e0cdb2a8a77a1c77bb6ae17b59e24acf12f24bfed9e73
6
+ metadata.gz: d74f257cc0ff069e1d2aad85363223706d202904359c680148e2d07dd4c8557398e2fd54d030b5dc304042111f20047036a411028a517f470cfdc5f4aa87a790
7
+ data.tar.gz: b4e9883f9a713c4a204e74fc0a5e71a289bffe34b7db79e007107a236ef68dbcb101051491b07e6aed1db9fe2df88eb592741a40051b3bc971d0de381e0e4ee9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.2.0
2
+ -----
3
+
4
+ * omniauth-shopify-oauth2 => omniauth-shopify-app
1
5
 
2
6
  1.1.0
3
7
  -----
data/Gemfile.lock CHANGED
@@ -5,7 +5,7 @@ PATH
5
5
  browser_sniffer (~> 2.0)
6
6
  jwt (>= 2.2.3)
7
7
  omniauth-rails_csrf_protection
8
- omniauth-shopify-oauth2 (~> 2.3)
8
+ omniauth-shopify-app (~> 1.0)
9
9
  rails (>= 6.1.0)
10
10
  redirect_safely (~> 1.0)
11
11
  ruby_shopify_api (~> 1.2)
@@ -102,7 +102,7 @@ GEM
102
102
  crass (1.0.6)
103
103
  date (3.3.4)
104
104
  erubi (1.12.0)
105
- faraday (2.9.0)
105
+ faraday (2.9.1)
106
106
  faraday-net_http (>= 2.0, < 3.2)
107
107
  faraday-net_http (3.1.0)
108
108
  net-http
@@ -138,7 +138,8 @@ GEM
138
138
  minitest (>= 4, < 6)
139
139
  mocha (2.2.0)
140
140
  ruby2_keywords (>= 0.0.5)
141
- multi_xml (0.6.0)
141
+ multi_xml (0.7.1)
142
+ bigdecimal (~> 3.1)
142
143
  net-http (0.4.1)
143
144
  uri
144
145
  net-imap (0.4.10)
@@ -165,15 +166,13 @@ GEM
165
166
  hashie (>= 3.4.6)
166
167
  rack (>= 2.2.3)
167
168
  rack-protection
168
- omniauth-oauth2 (1.8.0)
169
- oauth2 (>= 1.4, < 3)
170
- omniauth (~> 2.0)
171
169
  omniauth-rails_csrf_protection (1.0.1)
172
170
  actionpack (>= 4.2)
173
171
  omniauth (~> 2.0)
174
- omniauth-shopify-oauth2 (2.4.0)
172
+ omniauth-shopify-app (1.0.0)
175
173
  activesupport
176
- omniauth-oauth2 (~> 1.5)
174
+ oauth2 (>= 1.4, < 3)
175
+ omniauth (~> 2.0)
177
176
  parallel (1.24.0)
178
177
  parser (3.3.1.0)
179
178
  ast (~> 2.4.1)
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ShopifyApp
3
- VERSION = '1.1.0'
4
+ VERSION = "1.2.0"
4
5
  end
@@ -1,11 +1,12 @@
1
1
  # frozen_string_literal: true
2
- require 'ruby_shopify_app/version'
2
+
3
+ require "ruby_shopify_app/version"
3
4
 
4
5
  # deps
5
- require 'ruby_shopify_api'
6
- require 'omniauth/rails_csrf_protection'
7
- require 'omniauth-shopify-oauth2'
8
- require 'redirect_safely'
6
+ require "ruby_shopify_api"
7
+ require "omniauth/rails_csrf_protection"
8
+ require "omniauth-shopify-app"
9
+ require "redirect_safely"
9
10
 
10
11
  module ShopifyApp
11
12
  def self.rails6?
@@ -22,59 +23,59 @@ module ShopifyApp
22
23
 
23
24
  def self.use_webpacker?
24
25
  rails6? &&
25
- defined?(Webpacker) == 'constant' &&
26
+ defined?(Webpacker) == "constant" &&
26
27
  !configuration.disable_webpacker
27
28
  end
28
29
 
29
30
  # config
30
- require 'ruby_shopify_app/configuration'
31
+ require "ruby_shopify_app/configuration"
31
32
 
32
33
  # engine
33
- require 'ruby_shopify_app/engine'
34
+ require "ruby_shopify_app/engine"
34
35
 
35
36
  # utils
36
- require 'ruby_shopify_app/utils'
37
+ require "ruby_shopify_app/utils"
37
38
 
38
39
  # controller concerns
39
- require 'ruby_shopify_app/controller_concerns/csrf_protection'
40
- require 'ruby_shopify_app/controller_concerns/localization'
41
- require 'ruby_shopify_app/controller_concerns/itp'
42
- require 'ruby_shopify_app/controller_concerns/login_protection'
43
- require 'ruby_shopify_app/controller_concerns/embedded_app'
44
- require 'ruby_shopify_app/controller_concerns/payload_verification'
45
- require 'ruby_shopify_app/controller_concerns/app_proxy_verification'
46
- require 'ruby_shopify_app/controller_concerns/webhook_verification'
40
+ require "ruby_shopify_app/controller_concerns/csrf_protection"
41
+ require "ruby_shopify_app/controller_concerns/localization"
42
+ require "ruby_shopify_app/controller_concerns/itp"
43
+ require "ruby_shopify_app/controller_concerns/login_protection"
44
+ require "ruby_shopify_app/controller_concerns/embedded_app"
45
+ require "ruby_shopify_app/controller_concerns/payload_verification"
46
+ require "ruby_shopify_app/controller_concerns/app_proxy_verification"
47
+ require "ruby_shopify_app/controller_concerns/webhook_verification"
47
48
 
48
49
  # jobs
49
- require 'ruby_shopify_app/jobs/webhooks_manager_job'
50
- require 'ruby_shopify_app/jobs/scripttags_manager_job'
50
+ require "ruby_shopify_app/jobs/webhooks_manager_job"
51
+ require "ruby_shopify_app/jobs/scripttags_manager_job"
51
52
 
52
53
  # managers
53
- require 'ruby_shopify_app/managers/webhooks_manager'
54
- require 'ruby_shopify_app/managers/scripttags_manager'
54
+ require "ruby_shopify_app/managers/webhooks_manager"
55
+ require "ruby_shopify_app/managers/scripttags_manager"
55
56
 
56
57
  # middleware
57
- require 'ruby_shopify_app/middleware/jwt_middleware'
58
- require 'ruby_shopify_app/middleware/same_site_cookie_middleware'
58
+ require "ruby_shopify_app/middleware/jwt_middleware"
59
+ require "ruby_shopify_app/middleware/same_site_cookie_middleware"
59
60
 
60
61
  # session
61
- require 'ruby_shopify_app/session/in_memory_session_store'
62
- require 'ruby_shopify_app/session/in_memory_shop_session_store'
63
- require 'ruby_shopify_app/session/in_memory_user_session_store'
64
- require 'ruby_shopify_app/session/jwt'
65
- require 'ruby_shopify_app/session/null_user_session_store'
66
- require 'ruby_shopify_app/session/session_repository'
67
- require 'ruby_shopify_app/session/session_storage'
68
- require 'ruby_shopify_app/session/shop_session_storage'
69
- require 'ruby_shopify_app/session/shop_session_storage_with_scopes'
70
- require 'ruby_shopify_app/session/user_session_storage'
71
- require 'ruby_shopify_app/session/user_session_storage_with_scopes'
62
+ require "ruby_shopify_app/session/in_memory_session_store"
63
+ require "ruby_shopify_app/session/in_memory_shop_session_store"
64
+ require "ruby_shopify_app/session/in_memory_user_session_store"
65
+ require "ruby_shopify_app/session/jwt"
66
+ require "ruby_shopify_app/session/null_user_session_store"
67
+ require "ruby_shopify_app/session/session_repository"
68
+ require "ruby_shopify_app/session/session_storage"
69
+ require "ruby_shopify_app/session/shop_session_storage"
70
+ require "ruby_shopify_app/session/shop_session_storage_with_scopes"
71
+ require "ruby_shopify_app/session/user_session_storage"
72
+ require "ruby_shopify_app/session/user_session_storage_with_scopes"
72
73
 
73
74
  # access scopes strategies
74
- require 'ruby_shopify_app/access_scopes/shop_strategy'
75
- require 'ruby_shopify_app/access_scopes/user_strategy'
76
- require 'ruby_shopify_app/access_scopes/noop_strategy'
75
+ require "ruby_shopify_app/access_scopes/shop_strategy"
76
+ require "ruby_shopify_app/access_scopes/user_strategy"
77
+ require "ruby_shopify_app/access_scopes/noop_strategy"
77
78
 
78
79
  # omniauth_configuration
79
- require 'ruby_shopify_app/omniauth/omniauth_configuration'
80
+ require "ruby_shopify_app/omniauth/omniauth_configuration"
80
81
  end
data/shopify_app.gemspec CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
- $LOAD_PATH.push(File.expand_path('../lib', __FILE__))
2
+
3
+ $LOAD_PATH.push(File.expand_path("../lib", __FILE__))
3
4
  require "ruby_shopify_app/version"
4
5
 
5
6
  Gem::Specification.new do |s|
@@ -8,30 +9,29 @@ Gem::Specification.new do |s|
8
9
  s.platform = Gem::Platform::RUBY
9
10
  s.authors = ["Hopper Gee"]
10
11
  s.email = ["hopper.gee@hey.com"]
11
- s.summary = 'This gem is used to get quickly started with the Shopify API'
12
+ s.summary = "This gem is used to get quickly started with the Shopify API"
12
13
 
13
14
  s.required_ruby_version = ">= 2.6"
14
15
 
15
- s.metadata['allowed_push_host'] = 'https://rubygems.org'
16
+ s.metadata["allowed_push_host"] = "https://rubygems.org"
16
17
 
17
- s.add_runtime_dependency('browser_sniffer', '~> 2.0')
18
- s.add_runtime_dependency('omniauth-rails_csrf_protection')
19
- s.add_runtime_dependency('rails', '>= 6.1.0')
20
- s.add_runtime_dependency('sprockets-rails', ">= 2.0.0")
21
- s.add_runtime_dependency('ruby_shopify_api', '~> 1.2')
22
- s.add_runtime_dependency('omniauth-shopify-oauth2', '~> 2.3')
23
- s.add_runtime_dependency('jwt', '>= 2.2.3')
24
- s.add_runtime_dependency('redirect_safely', '~> 1.0')
18
+ s.add_runtime_dependency("browser_sniffer", "~> 2.0")
19
+ s.add_runtime_dependency("jwt", ">= 2.2.3")
20
+ s.add_runtime_dependency("omniauth-rails_csrf_protection")
21
+ s.add_runtime_dependency("omniauth-shopify-app", "~> 1.0")
22
+ s.add_runtime_dependency("rails", ">= 6.1.0")
23
+ s.add_runtime_dependency("redirect_safely", "~> 1.0")
24
+ s.add_runtime_dependency("ruby_shopify_api", "~> 1.2")
25
+ s.add_runtime_dependency("sprockets-rails", ">= 2.0.0")
25
26
 
26
- s.add_development_dependency('rake')
27
- s.add_development_dependency('byebug')
28
- s.add_development_dependency('rb-readline')
29
- s.add_development_dependency('sqlite3', '~> 1.4')
30
- s.add_development_dependency('minitest')
31
- s.add_development_dependency('mocha')
32
- s.add_development_dependency('webmock')
27
+ s.add_development_dependency("byebug")
28
+ s.add_development_dependency("minitest")
29
+ s.add_development_dependency("mocha")
30
+ s.add_development_dependency("rake")
31
+ s.add_development_dependency("rb-readline")
32
+ s.add_development_dependency("sqlite3", "~> 1.4")
33
+ s.add_development_dependency("webmock")
33
34
 
34
35
  s.files = %x(git ls-files).split("\n").reject { |f| f.match(%r{^(test|example)/}) }
35
- s.test_files = %x(git ls-files -- {test}/*).split("\n")
36
36
  s.require_paths = ["lib"]
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hopper Gee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-30 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser_sniffer
@@ -25,105 +25,105 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: omniauth-rails_csrf_protection
28
+ name: jwt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 2.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 2.2.3
41
41
  - !ruby/object:Gem::Dependency
42
- name: rails
42
+ name: omniauth-rails_csrf_protection
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 6.1.0
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 6.1.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: sprockets-rails
56
+ name: omniauth-shopify-app
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0
61
+ version: '1.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.0
68
+ version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: ruby_shopify_api
70
+ name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.2'
75
+ version: 6.1.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.2'
82
+ version: 6.1.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: omniauth-shopify-oauth2
84
+ name: redirect_safely
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.3'
89
+ version: '1.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.3'
96
+ version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: jwt
98
+ name: ruby_shopify_api
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.2.3
103
+ version: '1.2'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.2.3
110
+ version: '1.2'
111
111
  - !ruby/object:Gem::Dependency
112
- name: redirect_safely
112
+ name: sprockets-rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '1.0'
117
+ version: 2.0.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '1.0'
124
+ version: 2.0.0
125
125
  - !ruby/object:Gem::Dependency
126
- name: rake
126
+ name: byebug
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: byebug
140
+ name: minitest
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: rb-readline
154
+ name: mocha
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,21 +165,21 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: sqlite3
168
+ name: rake
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '1.4'
173
+ version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '1.4'
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: minitest
182
+ name: rb-readline
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">="
@@ -193,19 +193,19 @@ dependencies:
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: mocha
196
+ name: sqlite3
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ">="
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '0'
201
+ version: '1.4'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '0'
208
+ version: '1.4'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: webmock
211
211
  requirement: !ruby/object:Gem::Requirement