procore 1.1.3 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/CHANGELOG.md +18 -0
- data/README.md +3 -3
- data/lib/procore/auth/access_token_credentials.rb +2 -1
- data/lib/procore/auth/client_credentials.rb +3 -2
- data/lib/procore/client.rb +1 -0
- data/lib/procore/version.rb +1 -1
- data/procore.gemspec +2 -2
- metadata +7 -9
- data/procore-1.1.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ad6f2fc6819bf44702a617998092dc0d11427ed06eedd34a726dbee30f0211ac
|
4
|
+
data.tar.gz: 2626c72345383731231b3154ebd60469204c539931aeee1a75c998a932a9d3c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6dad622b02dd50b3a1fc63d0de6c1642a377a63caec8f71d420610124a0a11dc119f9aed133b00724a792d2eed5e4ed02a106caf509105d5001141185ca7f47
|
7
|
+
data.tar.gz: d6536490eaaf49112a3fd2da24875442cef1c522079a45631a69f18eba986921f00084a964e7f854f166f21a1259ec83871eb35251efe4872fa7b7e8e5320d0b
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
## 1.2 (Dec 8, 2022)
|
2
|
+
|
3
|
+
* Update oauth2 gem version to any 2.x
|
4
|
+
|
5
|
+
* Relax rest-client version to any 2.x
|
6
|
+
|
7
|
+
*Nate Baer*
|
8
|
+
|
9
|
+
## 1.1.4 (Apr 18, 2022)
|
10
|
+
|
11
|
+
* Fix a bug with automatic token refreshing where the expired token would still be used for the first request.
|
12
|
+
|
13
|
+
* Fix requests made to incorrect URL when using newer versions of Oauth2
|
14
|
+
|
15
|
+
PR #52 - https://github.com/procore/ruby-sdk/pull/52
|
16
|
+
|
17
|
+
*Nate Baer*
|
18
|
+
|
1
19
|
## 1.1.3 (Jun 11, 2021)
|
2
20
|
|
3
21
|
* Add Procore-Sdk-Language header to all requests
|
data/README.md
CHANGED
@@ -83,12 +83,12 @@ client = Procore::Client.new(
|
|
83
83
|
)
|
84
84
|
|
85
85
|
# Get the current user's companies
|
86
|
-
companies = client.get("companies")
|
86
|
+
companies = client.get("companies").body
|
87
87
|
|
88
88
|
companies.first[:name] #=> "Procore Company 1"
|
89
89
|
|
90
90
|
# Get a company's projects (note the company_id value in options)
|
91
|
-
projects = client.get("projects", query: {company_id: <company_id>}, options: {company_id: <company_id>})
|
91
|
+
projects = client.get("projects", query: {company_id: <company_id>}, options: {company_id: <company_id>}).body
|
92
92
|
|
93
93
|
projects.first[:name] #=> "Project 1"
|
94
94
|
```
|
@@ -123,7 +123,7 @@ def handle_callback
|
|
123
123
|
|
124
124
|
# Create a new token to save into a store
|
125
125
|
token = Procore::Auth::Token.new(
|
126
|
-
access_token: auth_hash["credentials"]["token"]
|
126
|
+
access_token: auth_hash["credentials"]["token"],
|
127
127
|
refresh_token: auth_hash["credentials"]["refresh_token"],
|
128
128
|
expires_at: auth_hash["credentials"]["expires_at"]
|
129
129
|
)
|
@@ -18,7 +18,7 @@ module Procore
|
|
18
18
|
begin
|
19
19
|
new_token = client
|
20
20
|
.client_credentials
|
21
|
-
.get_token
|
21
|
+
.get_token
|
22
22
|
|
23
23
|
Procore::Auth::Token.new(
|
24
24
|
access_token: new_token.token,
|
@@ -43,7 +43,8 @@ module Procore
|
|
43
43
|
OAuth2::Client.new(
|
44
44
|
client_id,
|
45
45
|
client_secret,
|
46
|
-
site:
|
46
|
+
site: host,
|
47
|
+
auth_scheme: :request_body,
|
47
48
|
)
|
48
49
|
end
|
49
50
|
end
|
data/lib/procore/client.rb
CHANGED
data/lib/procore/version.rb
CHANGED
data/procore.gemspec
CHANGED
@@ -38,6 +38,6 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency "webmock"
|
39
39
|
|
40
40
|
spec.add_dependency "activesupport", "> 2.4"
|
41
|
-
spec.add_dependency "oauth2", "~>
|
42
|
-
spec.add_dependency "rest-client", "~> 2.0
|
41
|
+
spec.add_dependency "oauth2", "~> 2.0"
|
42
|
+
spec.add_dependency "rest-client", "~> 2.0"
|
43
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Procore Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -226,28 +226,28 @@ dependencies:
|
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: '
|
229
|
+
version: '2.0'
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: '
|
236
|
+
version: '2.0'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: rest-client
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
241
|
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: 2.0
|
243
|
+
version: '2.0'
|
244
244
|
type: :runtime
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: 2.0
|
250
|
+
version: '2.0'
|
251
251
|
description: Procore Ruby Gem
|
252
252
|
email:
|
253
253
|
- opensource@procore.comm
|
@@ -283,7 +283,6 @@ files:
|
|
283
283
|
- lib/procore/response.rb
|
284
284
|
- lib/procore/util.rb
|
285
285
|
- lib/procore/version.rb
|
286
|
-
- procore-1.1.1.gem
|
287
286
|
- procore.gemspec
|
288
287
|
homepage: https://github.com/procore/ruby-sdk
|
289
288
|
licenses:
|
@@ -304,8 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
303
|
- !ruby/object:Gem::Version
|
305
304
|
version: '0'
|
306
305
|
requirements: []
|
307
|
-
|
308
|
-
rubygems_version: 2.6.14
|
306
|
+
rubygems_version: 3.1.6
|
309
307
|
signing_key:
|
310
308
|
specification_version: 4
|
311
309
|
summary: Procore Ruby Gem
|
data/procore-1.1.1.gem
DELETED
Binary file
|