jbr 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jbr/oauth.rb +6 -4
- data/lib/jbr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b22d779d7e688eaf8a64353655a11e880b961fee0dea0eafc4d56ae833dd77c
|
|
4
|
+
data.tar.gz: 8423c77d2b898f07d0125e66852f10373493d10ce09f37b3f489e581df2d73b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dded60918e2560621fde6a80ed20018f5aaf1d1391db9ba7144a12c11be90fc5bf5318dcfb16cab143c99d25cbc64fdfbf7f010c9560a5ca80e7eb7bd42e08a4
|
|
7
|
+
data.tar.gz: d5c5dfc9260eba1ec87c9fb6b05db5a039837820f01d544d1f07e438773f2f6e553be462e0ef594df07ffd77baca3c993537ef667cc43bcdf7138872eee76311
|
data/CHANGELOG.md
CHANGED
data/lib/jbr/oauth.rb
CHANGED
|
@@ -44,6 +44,12 @@ module Jbr
|
|
|
44
44
|
new(credentials).tap { |oauth| oauth.account_id = oauth.account.id }
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
# @return [String, nil] The client ID to interact with the API.
|
|
48
|
+
def self.client_id = ENV['JOBBER_CLIENT_ID']
|
|
49
|
+
|
|
50
|
+
# @return [String, nil] The client secret to interact with the API.
|
|
51
|
+
def self.client_secret = ENV['JOBBER_CLIENT_SECRET']
|
|
52
|
+
|
|
47
53
|
private
|
|
48
54
|
|
|
49
55
|
def refresh
|
|
@@ -65,10 +71,6 @@ module Jbr
|
|
|
65
71
|
expires_at: (Time.current + output.fetch('expires_in', 3600).to_i) }
|
|
66
72
|
end
|
|
67
73
|
|
|
68
|
-
def self.client_id = ENV['JOBBER_CLIENT_ID']
|
|
69
|
-
|
|
70
|
-
def self.client_secret = ENV['JOBBER_CLIENT_SECRET']
|
|
71
|
-
|
|
72
74
|
def client
|
|
73
75
|
GraphQL::Client.new endpoint: 'https://api.getjobber.com/api/graphql', token: @access_token, headers: headers
|
|
74
76
|
end
|
data/lib/jbr/version.rb
CHANGED