procore 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -0
- data/lib/procore/errors.rb +3 -0
- data/lib/procore/requestable.rb +5 -0
- data/lib/procore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88538f8106ff12e1532f8b3b2837e506c336857564b05529c1013e1bb849756a
|
4
|
+
data.tar.gz: 824483dff32962cc8d39e69754e2a3e8e6bfbc159e840bd3a3ef77a586dff3d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c7d776773d2111c0b6db558c2ea13703010115a0eb22481e7d8dfd00429046ef3b04ebdf9eea978ff79c9d4db415812c769eee58e82ae85e7401e8c925df25d
|
7
|
+
data.tar.gz: 9f5ccc7e220d19c4edf36c7fd4724df284d77dad43c7547f454d241f659b14d702fa4f0ad68bb5621a4d309b34219a10cb4e85c44a63b08e3874b0d98b411586
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -125,6 +125,9 @@ rescue Procore::AuthorizationError => e
|
|
125
125
|
# Raised when the request is attempting to access a resource the token's
|
126
126
|
# owner does not have access to.
|
127
127
|
|
128
|
+
rescue Procore::ForbiddenError => e
|
129
|
+
# Raised when the request failed because you lack the required permissions.
|
130
|
+
|
128
131
|
rescue Procore::APIConnectionError => e
|
129
132
|
# Raised when the gem cannot connect to the Procore API. Possible causes:
|
130
133
|
# Procore is down or the network is doing something funny.
|
data/lib/procore/errors.rb
CHANGED
@@ -28,6 +28,9 @@ module Procore
|
|
28
28
|
# required parameters or sending a request to access a non-existent resource.
|
29
29
|
InvalidRequestError = Class.new(Error)
|
30
30
|
|
31
|
+
# Raised when the request 403's
|
32
|
+
ForbiddenError = Class.new(Error)
|
33
|
+
|
31
34
|
# Raised when the request 404's
|
32
35
|
NotFoundError = Class.new(Error)
|
33
36
|
|
data/lib/procore/requestable.rb
CHANGED
@@ -208,6 +208,11 @@ module Procore
|
|
208
208
|
"access the target resource",
|
209
209
|
response: response,
|
210
210
|
)
|
211
|
+
when 403
|
212
|
+
raise Procore::ForbiddenError.new(
|
213
|
+
"The request failed because you lack the required permissions",
|
214
|
+
response: response,
|
215
|
+
)
|
211
216
|
when 404
|
212
217
|
raise Procore::NotFoundError.new(
|
213
218
|
"The URI requested is invalid or the resource requested does not " \
|
data/lib/procore/version.rb
CHANGED
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: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Procore Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02
|
11
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|