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 +4 -4
- data/.github/workflows/cla.yml +22 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +9 -29
- data/dev.yml +1 -1
- data/lib/oktakit/client.rb +2 -5
- data/lib/oktakit/response/raise_error.rb +1 -1
- data/lib/oktakit/version.rb +1 -1
- data/oktakit.gemspec +1 -1
- metadata +7 -7
- data/.github/probots.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4d2b1dd5d6eee741338e02a62ea9cb64ae2782fd3663a4ee29a31a9b134bfce
|
4
|
+
data.tar.gz: b603e424a30b4940c6d957738c4873542f0a197f48552f5e914e92265b871033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
1
|
+
2.7.2
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,46 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
oktakit (0.
|
5
|
-
faraday (>= 0.
|
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.
|
12
|
-
public_suffix (>= 2.0.2, <
|
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 (
|
17
|
-
faraday-
|
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-
|
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 (
|
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.
|
82
|
+
2.3.24
|
data/dev.yml
CHANGED
data/lib/oktakit/client.rb
CHANGED
@@ -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 =
|
28
|
+
MIDDLEWARE = Faraday::RackBuilder.new do |builder|
|
32
29
|
builder.use(Oktakit::Response::RaiseError)
|
33
|
-
builder.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::
|
9
|
+
class RaiseError < Faraday::Middleware
|
10
10
|
private
|
11
11
|
|
12
12
|
def on_complete(response)
|
data/lib/oktakit/version.rb
CHANGED
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.
|
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.
|
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:
|
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.
|
40
|
+
version: 2.0.1
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
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.
|
50
|
+
version: 2.0.1
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
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