ruby_shopify_api 1.0.0 → 1.1.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: 16284ceb17acc8de7962b17a5d275d0d9fa04c961edac3f88b7d181451aba236
4
- data.tar.gz: f1a050319f37174edb83bde2d7058727353d548cca1e881f50c4d3ccfb1f6af8
3
+ metadata.gz: c01d762dbce0ff0693dfc166b9591f9ec63b936a493051739cc9a03d93f60bf7
4
+ data.tar.gz: c5bbd08c51b0193a127e0f20a138a49365fd2d14e60c24d6e06439370558ce25
5
5
  SHA512:
6
- metadata.gz: 9453469343e944df07bb66f784351a2c7f4604e52cf895fcc152e2c14f326978683fbf82325ebbd1c30a35126a461019995cfe590809b3054b954d423f582cf0
7
- data.tar.gz: 99608e91ca32846e0765e9daf0df38cdf956b42324c31953738a80e0729a9f4f0e318f3c0bba15607135106972752b22cef2d0c087d58ab2f289d09b7e16a498
6
+ metadata.gz: 35723fdf81df2a64eea6c6e79c06d382038e825360a54efd188282f27804f03292c8561187331526473e4adb772714d66156625221db526d07a0753f11ed211e
7
+ data.tar.gz: e5e57390a66eaa2f4dd9c5c315d1ef5f5ebe199ba64c2f1d4cc8cabcb59cb79e71d3968866358b3e48abc96adf03eda4783625924f791d4be1ec74af52d37d19
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Unreleased
2
2
 
3
+ ## Version 1.1.0
4
+
5
+ * Support ActiveResrouce v6
6
+
3
7
  ## Version 1.0.0
4
8
 
5
9
  * Keep using ShopifyAPI the old way. (Fork from Shopify's v9.5.1)
data/Gemfile CHANGED
@@ -3,8 +3,10 @@ source "https://rubygems.org"
3
3
 
4
4
  gemspec
5
5
 
6
- gem "activeresource", "~> 5.1"
7
-
8
- group :docs, optional: true do
9
- gem "jekyll"
10
- end
6
+ gem "activeresource"
7
+ gem 'minitest-focus'
8
+ gem 'mocha'
9
+ gem 'webmock'
10
+ gem 'minitest'
11
+ gem 'rake'
12
+ gem 'timecop'
data/Gemfile.lock CHANGED
@@ -1,151 +1,85 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_shopify_api (1.0.0)
5
- activeresource (>= 4.1.0)
4
+ ruby_shopify_api (1.1.0)
5
+ activeresource
6
6
  graphql-client
7
7
  rack
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (6.0.3.1)
13
- activesupport (= 6.0.3.1)
12
+ activemodel (7.1.3.2)
13
+ activesupport (= 7.1.3.2)
14
14
  activemodel-serializers-xml (1.0.2)
15
15
  activemodel (> 5.x)
16
16
  activesupport (> 5.x)
17
17
  builder (~> 3.1)
18
- activeresource (5.1.1)
19
- activemodel (>= 5.0, < 7)
18
+ activeresource (6.1.0)
19
+ activemodel (>= 6.0)
20
20
  activemodel-serializers-xml (~> 1.0)
21
- activesupport (>= 5.0, < 7)
22
- activesupport (6.0.3.1)
21
+ activesupport (>= 6.0)
22
+ activesupport (7.1.3.2)
23
+ base64
24
+ bigdecimal
23
25
  concurrent-ruby (~> 1.0, >= 1.0.2)
24
- i18n (>= 0.7, < 2)
25
- minitest (~> 5.1)
26
- tzinfo (~> 1.1)
27
- zeitwerk (~> 2.2, >= 2.2.2)
28
- addressable (2.8.0)
29
- public_suffix (>= 2.0.2, < 5.0)
30
- ast (2.4.1)
26
+ connection_pool (>= 2.2.5)
27
+ drb
28
+ i18n (>= 1.6, < 2)
29
+ minitest (>= 5.1)
30
+ mutex_m
31
+ tzinfo (~> 2.0)
32
+ addressable (2.8.6)
33
+ public_suffix (>= 2.0.2, < 6.0)
34
+ base64 (0.2.0)
35
+ bigdecimal (3.1.7)
31
36
  builder (3.2.4)
32
- byebug (11.1.3)
33
- coderay (1.1.2)
34
- colorator (1.1.0)
35
- concurrent-ruby (1.1.6)
36
- crack (0.4.3)
37
- safe_yaml (~> 1.0.0)
38
- em-websocket (0.5.1)
39
- eventmachine (>= 0.12.9)
40
- http_parser.rb (~> 0.6.0)
41
- eventmachine (1.2.7)
42
- ffi (1.12.2)
43
- forwardable-extended (2.6.0)
44
- graphql (2.0.18)
45
- graphql-client (0.18.0)
37
+ concurrent-ruby (1.2.3)
38
+ connection_pool (2.4.1)
39
+ crack (1.0.0)
40
+ bigdecimal
41
+ rexml
42
+ drb (2.2.1)
43
+ graphql (2.3.2)
44
+ base64
45
+ graphql-client (0.22.0)
46
46
  activesupport (>= 3.0)
47
- graphql
48
- hashdiff (1.0.1)
49
- http_parser.rb (0.6.0)
50
- i18n (1.8.2)
47
+ graphql (>= 1.13.0)
48
+ hashdiff (1.1.0)
49
+ i18n (1.14.4)
51
50
  concurrent-ruby (~> 1.0)
52
- jekyll (4.1.0)
53
- addressable (~> 2.4)
54
- colorator (~> 1.0)
55
- em-websocket (~> 0.5)
56
- i18n (~> 1.0)
57
- jekyll-sass-converter (~> 2.0)
58
- jekyll-watch (~> 2.0)
59
- kramdown (~> 2.1)
60
- kramdown-parser-gfm (~> 1.0)
61
- liquid (~> 4.0)
62
- mercenary (~> 0.4.0)
63
- pathutil (~> 0.9)
64
- rouge (~> 3.0)
65
- safe_yaml (~> 1.0)
66
- terminal-table (~> 1.8)
67
- jekyll-sass-converter (2.1.0)
68
- sassc (> 2.0.1, < 3.0)
69
- jekyll-watch (2.2.1)
70
- listen (~> 3.0)
71
- kramdown (2.3.1)
72
- rexml
73
- kramdown-parser-gfm (1.1.0)
74
- kramdown (~> 2.0)
75
- liquid (4.0.3)
76
- listen (3.2.1)
77
- rb-fsevent (~> 0.10, >= 0.10.3)
78
- rb-inotify (~> 0.9, >= 0.9.10)
79
- mercenary (0.4.0)
80
- method_source (1.0.0)
81
- minitest (5.14.4)
82
- mocha (1.11.2)
83
- parallel (1.19.2)
84
- parser (2.7.2.0)
85
- ast (~> 2.4.1)
86
- pathutil (0.16.2)
87
- forwardable-extended (~> 2.6)
88
- pry (0.13.1)
89
- coderay (~> 1.1)
90
- method_source (~> 1.0)
91
- pry-byebug (3.9.0)
92
- byebug (~> 11.0)
93
- pry (~> 0.13.0)
94
- public_suffix (4.0.6)
95
- rack (3.0.6.1)
96
- rainbow (3.0.0)
97
- rake (13.0.1)
98
- rb-fsevent (0.10.4)
99
- rb-inotify (0.10.1)
100
- ffi (~> 1.0)
101
- regexp_parser (1.8.2)
102
- rexml (3.2.5)
103
- rouge (3.19.0)
104
- rubocop (0.93.1)
105
- parallel (~> 1.10)
106
- parser (>= 2.7.1.5)
107
- rainbow (>= 2.2.2, < 4.0)
108
- regexp_parser (>= 1.8)
109
- rexml
110
- rubocop-ast (>= 0.6.0)
111
- ruby-progressbar (~> 1.7)
112
- unicode-display_width (>= 1.4.0, < 2.0)
113
- rubocop-ast (0.8.0)
114
- parser (>= 2.7.1.5)
115
- rubocop-shopify (1.0.6)
116
- rubocop (>= 0.92, < 0.94)
117
- ruby-progressbar (1.10.1)
118
- safe_yaml (1.0.5)
119
- sassc (2.3.0)
120
- ffi (~> 1.9)
121
- terminal-table (1.8.0)
122
- unicode-display_width (~> 1.1, >= 1.1.1)
123
- thread_safe (0.3.6)
124
- timecop (0.9.1)
125
- tzinfo (1.2.7)
126
- thread_safe (~> 0.1)
127
- unicode-display_width (1.7.0)
128
- webmock (3.8.3)
129
- addressable (>= 2.3.6)
51
+ minitest (5.22.3)
52
+ minitest-focus (1.4.0)
53
+ minitest (>= 4, < 6)
54
+ mocha (2.2.0)
55
+ ruby2_keywords (>= 0.0.5)
56
+ mutex_m (0.2.0)
57
+ public_suffix (5.0.5)
58
+ rack (3.0.10)
59
+ rake (13.2.1)
60
+ rexml (3.2.6)
61
+ ruby2_keywords (0.0.5)
62
+ timecop (0.9.8)
63
+ tzinfo (2.0.6)
64
+ concurrent-ruby (~> 1.0)
65
+ webmock (3.23.0)
66
+ addressable (>= 2.8.0)
130
67
  crack (>= 0.3.2)
131
68
  hashdiff (>= 0.4.0, < 2.0.0)
132
- zeitwerk (2.3.0)
133
69
 
134
70
  PLATFORMS
71
+ arm64-darwin-22
135
72
  ruby
136
73
 
137
74
  DEPENDENCIES
138
- activeresource (~> 5.1)
139
- jekyll
140
- minitest (>= 5.14)
141
- mocha (>= 1.4.0)
142
- pry
143
- pry-byebug
75
+ activeresource
76
+ minitest
77
+ minitest-focus
78
+ mocha
144
79
  rake
145
- rubocop-shopify
146
80
  ruby_shopify_api!
147
81
  timecop
148
82
  webmock
149
83
 
150
84
  BUNDLED WITH
151
- 2.2.22
85
+ 2.5.9
data/Rakefile CHANGED
@@ -1,55 +1,13 @@
1
1
  # frozen_string_literal: true
2
- require 'rake'
3
- require "bundler/gem_tasks"
4
- require 'rake/testtask'
5
- require 'rubocop/rake_task'
6
-
7
- Rake::TestTask.new(:test) do |test|
8
- test.libs << 'lib' << 'test'
9
- test.pattern = 'test/**/*_test.rb'
10
- test.warning = false
11
- end
12
-
13
- RuboCop::RakeTask.new
14
-
15
- begin
16
- require 'rcov/rcovtask'
17
- Rcov::RcovTask.new do |test|
18
- test.libs << 'test'
19
- test.pattern = 'test/**/*_test.rb'
20
- test.verbose = true
21
- end
22
- rescue LoadError
23
- task(:rcov) do
24
- abort("RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov")
25
- end
26
- end
27
2
 
28
- task(default: [:test, :rubocop, :verify_docs])
29
-
30
- require 'verify_docs'
31
- task(:verify_docs) do
32
- unless VerifyDocs.call
33
- abort("\nWARNING: docs/index.md and README.md no longer have identical content. Please correct this.")
34
- end
35
- end
36
-
37
- require 'rdoc/task'
38
- Rake::RDocTask.new do |rdoc|
39
- if File.exist?('VERSION.yml')
40
- config = YAML.load(File.read('VERSION.yml'))
41
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
42
- else
43
- version = ""
44
- end
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
45
5
 
46
- rdoc.rdoc_dir = 'rdoc'
47
- rdoc.title = "shopify_api #{version}"
48
- rdoc.rdoc_files.include('README*')
49
- rdoc.rdoc_files.include('lib/**/*.rb')
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ t.warning = false
50
11
  end
51
12
 
52
- task(:docker) do
53
- cmd = "docker-compose up -d && docker exec -i -t shopify_api bash"
54
- exec(cmd, err: File::NULL)
55
- end
13
+ task default: :test
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ShopifyAPI
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
data/shopify_api.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- $:.push(File.expand_path("../lib", __FILE__))
3
- require "shopify_api/version"
2
+
3
+ require_relative "lib/shopify_api/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{ruby_shopify_api}
@@ -32,16 +32,7 @@ Gem::Specification.new do |s|
32
32
 
33
33
  s.required_ruby_version = ">= 2.4"
34
34
 
35
- s.add_runtime_dependency("activeresource", ">= 4.1.0")
35
+ s.add_runtime_dependency("activeresource")
36
36
  s.add_runtime_dependency("rack")
37
37
  s.add_runtime_dependency("graphql-client")
38
-
39
- s.add_development_dependency("mocha", ">= 1.4.0")
40
- s.add_development_dependency("webmock")
41
- s.add_development_dependency("minitest", ">= 5.14")
42
- s.add_development_dependency("rake")
43
- s.add_development_dependency("timecop")
44
- s.add_development_dependency("rubocop-shopify")
45
- s.add_development_dependency("pry")
46
- s.add_development_dependency("pry-byebug")
47
38
  end
@@ -74,27 +74,16 @@ class LogSubscriberTest < Test::Unit::TestCase
74
74
  ShopifyAPI::Page.find(2)
75
75
  end
76
76
 
77
- if ar_version_before?('5.1.0')
78
- assert_equal(4, @logger.logged(:info).size)
79
- assert_equal(
80
- "GET https://this-is-my-test-shop.myshopify.com:443/admin/api/2019-01/pages/2.json",
81
- @logger.logged(:info)[0]
82
- )
83
- assert_match(/\-\-\> 404/, @logger.logged(:info)[1])
84
- assert_equal(request_headers, @logger.logged(:info)[2])
85
- assert_equal("Response:", @logger.logged(:info)[3])
86
- else
87
- assert_equal(2, @logger.logged(:error).size)
88
- assert_equal(
89
- "GET https://this-is-my-test-shop.myshopify.com:443/admin/api/2019-01/pages/2.json",
90
- @logger.logged(:error)[0]
91
- )
92
- assert_match(/\-\-\> 404/, @logger.logged(:error)[1])
93
-
94
- assert_equal(2, @logger.logged(:info).size)
95
- assert_equal(request_headers, @logger.logged(:info)[0])
96
- assert_equal("Response:", @logger.logged(:info)[1])
97
- end
77
+ assert_equal(2, @logger.logged(:error).size)
78
+ assert_equal(
79
+ "GET https://this-is-my-test-shop.myshopify.com:443/admin/api/2019-01/pages/2.json",
80
+ @logger.logged(:error)[0]
81
+ )
82
+ assert_match(/\-\-\> 404/, @logger.logged(:error)[1])
83
+
84
+ assert_equal(2, @logger.logged(:info).size)
85
+ assert_equal(request_headers, @logger.logged(:info)[0])
86
+ assert_equal("Response:", @logger.logged(:info)[1])
98
87
  end
99
88
 
100
89
  test "warns when the server responds with a x-shopify-api-deprecated-reason header" do
data/test/test_helper.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
  require 'rubygems'
3
3
  require 'minitest/autorun'
4
+ require "minitest/focus"
4
5
  require 'webmock/minitest'
5
6
  require_relative 'lib/webmock_extensions/last_request'
6
7
  require 'mocha/minitest'
7
- require 'pry'
8
8
 
9
9
  $LOAD_PATH.unshift(File.dirname(__FILE__))
10
10
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
@@ -114,13 +114,6 @@ module Test
114
114
  )
115
115
  end
116
116
 
117
- def ar_version_before?(version_string)
118
- Gem::Version.new(ActiveResource::VERSION::STRING) < Gem::Version.new(version_string)
119
- end
120
-
121
- def ar_version_after?(version_string)
122
- Gem::Version.new(version_string) < Gem::Version.new(ActiveResource::VERSION::STRING)
123
- end
124
117
  end
125
118
  end
126
119
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_shopify_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.0
19
+ version: '0'
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: 4.1.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,118 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: mocha
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 1.4.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 1.4.0
69
- - !ruby/object:Gem::Dependency
70
- name: webmock
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: minitest
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '5.14'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '5.14'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: timecop
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop-shopify
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: pry
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: pry-byebug
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
55
  description: |
168
56
  The Shopify API gem allows Ruby developers to programmatically access the admin
169
57
  section of Shopify stores. The API is implemented as JSON or XML over HTTP using
@@ -177,31 +65,18 @@ extra_rdoc_files:
177
65
  - LICENSE
178
66
  - README.md
179
67
  files:
180
- - ".document"
181
68
  - ".github/CODEOWNERS"
182
69
  - ".github/ISSUE_TEMPLATE.md"
183
70
  - ".github/probots.yml"
184
71
  - ".github/workflows/build.yml"
185
72
  - ".gitignore"
186
- - ".rubocop.yml"
187
- - ".rubocop_todo.yml"
188
73
  - CHANGELOG-OLD.md
189
74
  - CHANGELOG.md
190
- - CONTRIBUTING.md
191
- - CONTRIBUTORS
192
75
  - Gemfile
193
76
  - Gemfile.lock
194
- - Gemfile_ar41
195
- - Gemfile_ar50
196
- - Gemfile_ar51
197
- - Gemfile_ar60
198
- - Gemfile_ar_main
199
77
  - LICENSE
200
78
  - README.md
201
- - RELEASING
202
79
  - Rakefile
203
- - SECURITY.md
204
- - dev.yml
205
80
  - docker-compose.yml
206
81
  - docs/_config.yml
207
82
  - docs/_includes/footer.html
@@ -323,8 +198,6 @@ files:
323
198
  - lib/shopify_api/session.rb
324
199
  - lib/shopify_api/version.rb
325
200
  - lib/verify_docs.rb
326
- - service.yml
327
- - shipit.rubygems.yml
328
201
  - shopify_api.gemspec
329
202
  - test/abandoned_checkouts_test.rb
330
203
  - test/access_scope_test.rb
@@ -547,7 +420,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
547
420
  - !ruby/object:Gem::Version
548
421
  version: '0'
549
422
  requirements: []
550
- rubygems_version: 3.1.6
423
+ rubygems_version: 3.3.26
551
424
  signing_key:
552
425
  specification_version: 4
553
426
  summary: ShopifyAPI is a lightweight gem for accessing the Shopify admin REST web
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.rubocop.yml DELETED
@@ -1,28 +0,0 @@
1
- inherit_gem:
2
- rubocop-shopify: rubocop.yml
3
-
4
- inherit_from:
5
- - .rubocop_todo.yml
6
-
7
- AllCops:
8
- TargetRubyVersion: 2.4
9
-
10
- Lint/SuppressedException:
11
- Exclude:
12
- # Warning on test setup, the exception is expected
13
- - 'test/test_helper.rb'
14
-
15
- Lint/MissingSuper:
16
- Exclude:
17
- # We explicitly do not want to call super here
18
- - 'lib/shopify_api/graphql/http_client.rb'
19
-
20
- Lint/UnderscorePrefixedVariableName:
21
- Exclude:
22
- # This is an internal attribute and we want to make sure it's called _headers
23
- - 'lib/shopify_api/resources/base.rb'
24
-
25
- Naming/AccessorMethodName:
26
- Exclude:
27
- # This comes from activesupport, so we can't rename it
28
- - 'test/detailed_log_subscriber_test.rb'
data/.rubocop_todo.yml DELETED
@@ -1,75 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2020-10-15 20:32:09 UTC using RuboCop version 0.93.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 6
10
- # Configuration parameters: EnforcedStyle.
11
- # SupportedStyles: snake_case, camelCase
12
- Naming/VariableName:
13
- Exclude:
14
- - 'lib/shopify_api/resources/fulfillment.rb'
15
-
16
- # Offense count: 2
17
- # Cop supports --auto-correct.
18
- Style/ColonMethodCall:
19
- Exclude:
20
- - 'test/base_test.rb'
21
-
22
- # Offense count: 2
23
- # Cop supports --auto-correct.
24
- # Configuration parameters: EnforcedStyle, AllowInnerBackticks.
25
- # SupportedStyles: backticks, percent_x, mixed
26
- Style/CommandLiteral:
27
- Exclude:
28
- - 'shopify_api.gemspec'
29
-
30
- # Offense count: 1
31
- Style/MissingRespondToMissing:
32
- Exclude:
33
- - 'lib/shopify_api/resources/asset.rb'
34
-
35
- # Offense count: 5
36
- # Cop supports --auto-correct.
37
- Style/RedundantPercentQ:
38
- Exclude:
39
- - 'shopify_api.gemspec'
40
-
41
- # Offense count: 12
42
- # Cop supports --auto-correct.
43
- Style/RedundantSelf:
44
- Exclude:
45
- - 'lib/shopify_api/resources/base.rb'
46
- - 'lib/shopify_api/resources/custom_collection.rb'
47
- - 'lib/shopify_api/resources/customer.rb'
48
- - 'lib/shopify_api/resources/customer_saved_search.rb'
49
- - 'lib/shopify_api/resources/product.rb'
50
- - 'lib/shopify_api/resources/recurring_application_charge.rb'
51
-
52
- # Offense count: 1
53
- # Cop supports --auto-correct.
54
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
55
- # AllowedMethods: present?, blank?, presence, try, try!
56
- Style/SafeNavigation:
57
- Exclude:
58
- - 'lib/shopify_api/resources/custom_collection.rb'
59
-
60
- # Offense count: 2
61
- # Cop supports --auto-correct.
62
- # Configuration parameters: EnforcedStyle.
63
- # SupportedStyles: use_perl_names, use_english_names
64
- Style/SpecialGlobalVars:
65
- Exclude:
66
- - 'lib/shopify_api.rb'
67
- - 'shopify_api.gemspec'
68
-
69
- # Offense count: 2
70
- # Cop supports --auto-correct.
71
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
72
- # AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
73
- Style/TrivialAccessors:
74
- Exclude:
75
- - 'lib/shopify_api/graphql.rb'
data/CONTRIBUTING.md DELETED
@@ -1,8 +0,0 @@
1
- Submitting Issues
2
- -----------------
3
-
4
- Please open an issue here if you encounter a specific bug with this API client library or if something is documented here https://docs.shopify.com/api but is missing from this package.
5
-
6
- General questions about the Shopify API and usage of this package (not necessarily a bug) should be posted on the [Shopify forums](https://ecommerce.shopify.com/c/shopify-apis-and-technology).
7
-
8
- When in doubt, post on the forum first. You'll likely have your questions answered more quickly if you post there; more people monitor the forum than Github.
data/CONTRIBUTORS DELETED
@@ -1,3 +0,0 @@
1
- API limits code
2
-
3
- * Contributed by Chris Scott, https://github.com/christocracy/shopify-api-limits
data/Gemfile_ar41 DELETED
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "activeresource", "4.1.0"
data/Gemfile_ar50 DELETED
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "activeresource", "5.0.0"
data/Gemfile_ar51 DELETED
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "activeresource", "~> 5.1"
data/Gemfile_ar60 DELETED
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "activeresource", "~> 6.0"
data/Gemfile_ar_main DELETED
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'activeresource', git: 'git://github.com/rails/activeresource'
data/RELEASING DELETED
@@ -1,17 +0,0 @@
1
- Releasing ShopifyAPI
2
-
3
- 1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org
4
- 2. Update the version of ShopifyAPI in lib/shopify_api/version.rb
5
- 3. Run `bundle`
6
- 4. Add a CHANGELOG entry for the new release
7
- 5. Commit the changes with a commit message like "Packaging for release X.Y.Z"
8
- 6. Tag the release with the version (Leave REV blank for HEAD or provide a SHA)
9
- $ git tag vX.Y.Z REV
10
- 7. Push out the changes
11
- $ git push
12
- 8. Push out the tags
13
- $ git push --tags
14
- 9. Publish the gem using Shipit
15
- 10. Consider if the dependency in Shopify/shopify needs updated. It's used only by the tests so is a low risk change.
16
- Also consider Shopify/shopify_app whose gemspec depends on this.
17
- We don't need to do this for every release, but we should try to keep them relatively up to date.
data/SECURITY.md DELETED
@@ -1,59 +0,0 @@
1
- # Security Policy
2
-
3
- ## Supported versions
4
-
5
- ### New features
6
-
7
- New features will only be added to the master branch and will not be made available in point releases.
8
-
9
- ### Bug fixes
10
-
11
- Only the latest release series will receive bug fixes. When enough bugs are fixed and its deemed worthy to release a new gem, this is the branch it happens from.
12
-
13
- ### Security issues
14
-
15
- Only the latest release series will receive patches and new versions in case of a security issue.
16
-
17
- ### Severe security issues
18
-
19
- For severe security issues we will provide new versions as above, and also the last major release series will receive patches and new versions. The classification of the security issue is judged by the core team.
20
-
21
- ### Unsupported Release Series
22
-
23
- When a release series is no longer supported, it's your own responsibility to deal with bugs and security issues. If you are not comfortable maintaining your own versions, you should upgrade to a supported version.
24
-
25
- ## Reporting a bug
26
-
27
- All security bugs in shopify repositories should be reported to [our hackerone program](https://hackerone.com/shopify)
28
- Shopify's whitehat program is our way to reward security researchers for finding serious security vulnerabilities in the In Scope properties listed at the bottom of this page, including our core application (all functionality associated with a Shopify store, particularly your-store.myshopify.com/admin) and certain ancillary applications.
29
-
30
- ## Disclosure Policy
31
-
32
- We look forward to working with all security researchers and strive to be respectful, always assume the best and treat others as peers. We expect the same in return from all participants. To achieve this, our team strives to:
33
-
34
- - Reply to all reports within one business day and triage within two business days (if applicable)
35
- - Be as transparent as possible, answering all inquires about our report decisions and adding hackers to duplicate HackerOne reports
36
- - Award bounties within a week of resolution (excluding extenuating circumstances)
37
- - Only close reports as N/A when the issue reported is included in Known Issues, Ineligible Vulnerabilities Types or lacks evidence of a vulnerability
38
-
39
- **The following rules must be followed in order for any rewards to be paid:**
40
-
41
- - You may only test against shops you have created which include your HackerOne YOURHANDLE @ wearehackerone.com registered email address.
42
- - You must not attempt to gain access to, or interact with, any shops other than those created by you.
43
- - The use of commercial scanners is prohibited (e.g., Nessus).
44
- - Rules for reporting must be followed.
45
- - Do not disclose any issues publicly before they have been resolved.
46
- - Shopify reserves the right to modify the rules for this program or deem any submissions invalid at any time. Shopify may cancel the whitehat program without notice at any time.
47
- - Contacting Shopify Support over chat, email or phone about your HackerOne report is not allowed. We may disqualify you from receiving a reward, or from participating in the program altogether.
48
- - You are not an employee of Shopify; employees should report bugs to the internal bug bounty program.
49
- - You hereby represent, warrant and covenant that any content you submit to Shopify is an original work of authorship and that you are legally entitled to grant the rights and privileges conveyed by these terms. You further represent, warrant and covenant that the consent of no other person or entity is or will be necessary for Shopify to use the submitted content.
50
- - By submitting content to Shopify, you irrevocably waive all moral rights which you may have in the content.
51
- - All content submitted by you to Shopify under this program is licensed under the MIT License.
52
- - You must report any discovered vulnerability to Shopify as soon as you have validated the vulnerability.
53
- - Failure to follow any of the foregoing rules will disqualify you from participating in this program.
54
-
55
- ** Please see our [Hackerone Profile](https://hackerone.com/shopify) for full details
56
-
57
- ## Receiving Security Updates
58
-
59
- To recieve all general updates to vulnerabilities, please subscribe to our hackerone [Hacktivity](https://hackerone.com/shopify/hacktivity)
data/dev.yml DELETED
@@ -1,11 +0,0 @@
1
- name: shopify-api
2
-
3
- type: ruby
4
-
5
- up:
6
- - ruby: "3.0"
7
- - bundler
8
-
9
- commands:
10
- test:
11
- run: bundle exec rake test
data/service.yml DELETED
@@ -1,2 +0,0 @@
1
- audience: partner
2
- classification: library
data/shipit.rubygems.yml DELETED
@@ -1 +0,0 @@
1
- # using the default shipit config