oktakit 0.3.2 → 1.0.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: 3fa09f58e951595b1e743df9a7fa8584254ec16c81444a4b961ae2c0f3cdfd4f
4
- data.tar.gz: 04b21c8abfd412194f11ed3fbf5798e9de7cdda4bf878a51cb742c126d930f2f
3
+ metadata.gz: b4d2b1dd5d6eee741338e02a62ea9cb64ae2782fd3663a4ee29a31a9b134bfce
4
+ data.tar.gz: b603e424a30b4940c6d957738c4873542f0a197f48552f5e914e92265b871033
5
5
  SHA512:
6
- metadata.gz: '0997c60e8dc44671eaa2422dc8863b4cb0441191829d1c012c7fc1c9fbbb943f59546cc027eef4dda2af774829cc5056950f072fdf5ef3f667a6b2810ce1836c'
7
- data.tar.gz: 23e3a86d6bf5c928fa1d480b54340be3384722d7904ddd8df4885891b85a7ce52a48906dc39614e7b385ee939623cd34a71f825d49e1f50879f1c0f59a5e7476
6
+ metadata.gz: 831cfddb2979a460730e874e37bccc9d1299daa48f2d41c3f6b8e7023d2183691565b5766d6b4062ec9f6e12baf143d66386ca66d62d49983c2ed6fdc8b44226
7
+ data.tar.gz: d49f7e8f455c5dbc642daa70609dfa4a352dfb88dd788d4ae62c882e434085cb961c2eb5ac13b4fc555cef00922f64bd367411e4c9a8330f5fe1d48ce84de6e5
@@ -0,0 +1,22 @@
1
+ name: Contributor License Agreement (CLA)
2
+
3
+ on:
4
+ pull_request_target:
5
+ types: [opened, synchronize]
6
+ issue_comment:
7
+ types: [created]
8
+
9
+ jobs:
10
+ cla:
11
+ runs-on: ubuntu-latest
12
+ if: |
13
+ (github.event.issue.pull_request
14
+ && !github.event.issue.pull_request.merged_at
15
+ && contains(github.event.comment.body, 'signed')
16
+ )
17
+ || (github.event.pull_request && !github.event.pull_request.merged)
18
+ steps:
19
+ - uses: Shopify/shopify-cla-action@v1
20
+ with:
21
+ github-token: ${{ secrets.GITHUB_TOKEN }}
22
+ cla-token: ${{ secrets.CLA_TOKEN }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.7.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.0.0] - 2023-07-12
4
+ - [Upgrade to Faraday 2.x](https://github.com/Shopify/oktakit/pull/68)
5
+
6
+ ## [v0.3.3] - 2022-07-20
7
+ - [Loosen sawyer dependency to allow 0.9.1](https://github.com/Shopify/oktakit/pull/61)
8
+
3
9
  ## [v0.3.2] - 2022-06-30
4
10
  - [Fix 'Faraday::Connection#authorization' deprecation warning](https://github.com/Shopify/oktakit/pull/56)
5
11
 
data/Gemfile.lock CHANGED
@@ -1,45 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oktakit (0.3.2)
5
- sawyer (~> 0.8.1)
4
+ oktakit (1.0.0)
5
+ faraday (>= 2.0.1, < 3)
6
+ sawyer (>= 0.8.1, < 0.10)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- addressable (2.8.0)
11
- public_suffix (>= 2.0.2, < 5.0)
11
+ addressable (2.8.4)
12
+ public_suffix (>= 2.0.2, < 6.0)
12
13
  ast (2.4.2)
13
14
  byebug (11.1.3)
14
15
  diff-lcs (1.4.4)
15
- faraday (1.9.3)
16
- faraday-em_http (~> 1.0)
17
- faraday-em_synchrony (~> 1.0)
18
- faraday-excon (~> 1.1)
19
- faraday-httpclient (~> 1.0)
20
- faraday-multipart (~> 1.0)
21
- faraday-net_http (~> 1.0)
22
- faraday-net_http_persistent (~> 1.0)
23
- faraday-patron (~> 1.0)
24
- faraday-rack (~> 1.0)
25
- faraday-retry (~> 1.0)
16
+ faraday (2.7.10)
17
+ faraday-net_http (>= 2.0, < 3.1)
26
18
  ruby2_keywords (>= 0.0.4)
27
- faraday-em_http (1.0.0)
28
- faraday-em_synchrony (1.0.0)
29
- faraday-excon (1.1.0)
30
- faraday-httpclient (1.0.1)
31
- faraday-multipart (1.0.3)
32
- multipart-post (>= 1.2, < 3)
33
- faraday-net_http (1.0.1)
34
- faraday-net_http_persistent (1.2.0)
35
- faraday-patron (1.0.0)
36
- faraday-rack (1.0.0)
37
- faraday-retry (1.0.3)
38
- multipart-post (2.1.1)
19
+ faraday-net_http (3.0.2)
39
20
  parallel (1.21.0)
40
21
  parser (3.0.3.2)
41
22
  ast (~> 2.4.1)
42
- public_suffix (4.0.6)
23
+ public_suffix (5.0.3)
43
24
  rainbow (3.0.0)
44
25
  rake (13.0.6)
45
26
  regexp_parser (2.2.0)
@@ -72,9 +53,9 @@ GEM
72
53
  rubocop (~> 1.22)
73
54
  ruby-progressbar (1.11.0)
74
55
  ruby2_keywords (0.0.5)
75
- sawyer (0.8.2)
56
+ sawyer (0.9.2)
76
57
  addressable (>= 2.3.5)
77
- faraday (> 0.8, < 2.0)
58
+ faraday (>= 0.17.3, < 3)
78
59
  unicode-display_width (2.1.0)
79
60
  vcr (6.0.0)
80
61
  webrick (1.7.0)
@@ -98,4 +79,4 @@ DEPENDENCIES
98
79
  yard
99
80
 
100
81
  BUNDLED WITH
101
- 2.2.22
82
+ 2.3.24
data/dev.yml CHANGED
@@ -3,7 +3,7 @@
3
3
  name: oktakit
4
4
 
5
5
  up:
6
- - ruby: 2.6.6
6
+ - ruby: 2.7.2
7
7
  - bundler
8
8
 
9
9
  commands:
@@ -24,13 +24,10 @@ module Oktakit
24
24
  include Templates
25
25
  include Users
26
26
 
27
- # In Faraday 0.9, Faraday::Builder was renamed to Faraday::RackBuilder
28
- RACK_BUILDER_CLASS = defined?(Faraday::RackBuilder) ? Faraday::RackBuilder : Faraday::Builder
29
-
30
27
  # Default Faraday middleware stack
31
- MIDDLEWARE = RACK_BUILDER_CLASS.new do |builder|
28
+ MIDDLEWARE = Faraday::RackBuilder.new do |builder|
32
29
  builder.use(Oktakit::Response::RaiseError)
33
- builder.adapter(Faraday.default_adapter)
30
+ builder.adapter(:net_http)
34
31
  end
35
32
 
36
33
  def initialize(token: nil, access_token: nil, organization: nil, api_endpoint: nil)
@@ -6,7 +6,7 @@ module Oktakit
6
6
  module Response
7
7
  # This class raises an Oktakit-flavored exception based
8
8
  # HTTP status codes returned by the API
9
- class RaiseError < Faraday::Response::Middleware
9
+ class RaiseError < Faraday::Middleware
10
10
  private
11
11
 
12
12
  def on_complete(response)
@@ -1,3 +1,3 @@
1
1
  module Oktakit
2
- VERSION = '0.3.2'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
data/oktakit.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.required_ruby_version = '>= 2.6'
21
21
 
22
- spec.add_dependency('sawyer', '~> 0.8.1')
22
+ spec.add_dependency('sawyer', '>= 0.8.1', '< 0.10')
23
+ spec.add_dependency('faraday', '>= 2.0.1', '< 3')
23
24
  spec.add_development_dependency('bundler')
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oktakit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graeme Johnson
@@ -9,22 +9,48 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-06-30 00:00:00.000000000 Z
12
+ date: 2023-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sawyer
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.8.1
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '0.10'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: 0.8.1
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.10'
34
+ - !ruby/object:Gem::Dependency
35
+ name: faraday
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.1
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '3'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 2.0.1
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: '3'
28
54
  - !ruby/object:Gem::Dependency
29
55
  name: bundler
30
56
  requirement: !ruby/object:Gem::Requirement
@@ -47,8 +73,8 @@ executables: []
47
73
  extensions: []
48
74
  extra_rdoc_files: []
49
75
  files:
50
- - ".github/probots.yml"
51
76
  - ".github/workflows/ci.yml"
77
+ - ".github/workflows/cla.yml"
52
78
  - ".gitignore"
53
79
  - ".rspec"
54
80
  - ".rubocop.yml"
data/.github/probots.yml DELETED
@@ -1,2 +0,0 @@
1
- enabled:
2
- - cla