oktakit 0.3.3 → 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: 93430f1ca1206ad1b2367f67b9f9d3d05a338e0bb925b0332e24442e01f7a517
4
- data.tar.gz: 6370fed094a1235ed06e4f8a76462695c9879078d629a04b110a80df2b18ef0c
3
+ metadata.gz: b4d2b1dd5d6eee741338e02a62ea9cb64ae2782fd3663a4ee29a31a9b134bfce
4
+ data.tar.gz: b603e424a30b4940c6d957738c4873542f0a197f48552f5e914e92265b871033
5
5
  SHA512:
6
- metadata.gz: 44831f805b522fef881807a643498a2f3faa733385f81bd8c57d626734fd9216a643bee8a8eb512833f433222ee27b5a6b4b6ce9d869b68c501697329b392813
7
- data.tar.gz: 9ee0478212db1632fbd46e61897891407f820558e3f0d4785891de815235aa9a00aad875268617f15dc6d2dd0e9e12f1331946365ba152cc447e23717ed340f8
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,8 @@
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
+
3
6
  ## [v0.3.3] - 2022-07-20
4
7
  - [Loosen sawyer dependency to allow 0.9.1](https://github.com/Shopify/oktakit/pull/61)
5
8
 
data/Gemfile.lock CHANGED
@@ -1,46 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oktakit (0.3.3)
5
- faraday (>= 0.17.3, < 2)
4
+ oktakit (1.0.0)
5
+ faraday (>= 2.0.1, < 3)
6
6
  sawyer (>= 0.8.1, < 0.10)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.8.0)
12
- public_suffix (>= 2.0.2, < 5.0)
11
+ addressable (2.8.4)
12
+ public_suffix (>= 2.0.2, < 6.0)
13
13
  ast (2.4.2)
14
14
  byebug (11.1.3)
15
15
  diff-lcs (1.4.4)
16
- faraday (1.10.0)
17
- faraday-em_http (~> 1.0)
18
- faraday-em_synchrony (~> 1.0)
19
- faraday-excon (~> 1.1)
20
- faraday-httpclient (~> 1.0)
21
- faraday-multipart (~> 1.0)
22
- faraday-net_http (~> 1.0)
23
- faraday-net_http_persistent (~> 1.0)
24
- faraday-patron (~> 1.0)
25
- faraday-rack (~> 1.0)
26
- faraday-retry (~> 1.0)
16
+ faraday (2.7.10)
17
+ faraday-net_http (>= 2.0, < 3.1)
27
18
  ruby2_keywords (>= 0.0.4)
28
- faraday-em_http (1.0.0)
29
- faraday-em_synchrony (1.0.0)
30
- faraday-excon (1.1.0)
31
- faraday-httpclient (1.0.1)
32
- faraday-multipart (1.0.4)
33
- multipart-post (~> 2)
34
- faraday-net_http (1.0.1)
35
- faraday-net_http_persistent (1.2.0)
36
- faraday-patron (1.0.0)
37
- faraday-rack (1.0.0)
38
- faraday-retry (1.0.3)
39
- multipart-post (2.2.3)
19
+ faraday-net_http (3.0.2)
40
20
  parallel (1.21.0)
41
21
  parser (3.0.3.2)
42
22
  ast (~> 2.4.1)
43
- public_suffix (4.0.7)
23
+ public_suffix (5.0.3)
44
24
  rainbow (3.0.0)
45
25
  rake (13.0.6)
46
26
  regexp_parser (2.2.0)
@@ -99,4 +79,4 @@ DEPENDENCIES
99
79
  yard
100
80
 
101
81
  BUNDLED WITH
102
- 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.3'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
data/oktakit.gemspec CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.required_ruby_version = '>= 2.6'
21
21
 
22
22
  spec.add_dependency('sawyer', '>= 0.8.1', '< 0.10')
23
- spec.add_dependency('faraday', '>= 0.17.3', '< 2')
23
+ spec.add_dependency('faraday', '>= 2.0.1', '< 3')
24
24
  spec.add_development_dependency('bundler')
25
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.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graeme Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-07-21 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
@@ -37,20 +37,20 @@ dependencies:
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.17.3
40
+ version: 2.0.1
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '2'
43
+ version: '3'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 0.17.3
50
+ version: 2.0.1
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '2'
53
+ version: '3'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: bundler
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -73,8 +73,8 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".github/probots.yml"
77
76
  - ".github/workflows/ci.yml"
77
+ - ".github/workflows/cla.yml"
78
78
  - ".gitignore"
79
79
  - ".rspec"
80
80
  - ".rubocop.yml"
data/.github/probots.yml DELETED
@@ -1,2 +0,0 @@
1
- enabled:
2
- - cla