procore 1.1.1 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d521ee6322fa923e85f77d6c836d7e5f9cb208df
4
- data.tar.gz: 48eee44692be1ce01bd486ec57dc05699b1c9198
3
+ metadata.gz: 49f3e1daa62e1998646029758f63b21f973a9851
4
+ data.tar.gz: a2613a7ea2ddd4aa4ce6cbb7531a267af94dc195
5
5
  SHA512:
6
- metadata.gz: a94c2bd6877729616f381027130ee9216093a9fc5ffb9bc2af473dffa45ac1050d39a280fd92ad6e6978ff6b8d2551afe464002743a46d0b6b34be9a5161a86d
7
- data.tar.gz: aaa762a18d06ea9e432111fadd89ae6eb389ff645ef2f9b488278f1710c3d368595054565e5d7b97ece4f9e73f6c6c3ff80d00c628658613c47f712b82261d42
6
+ metadata.gz: 92474ea3b4e4ac1c4658ed192e929e9ac6b203dead4b1b5e0e424fc545d723197a606e906e224f7809f2914ed7dca83243d38bb9c6ee783d1422c7c36f0ecb90
7
+ data.tar.gz: 707e8d18312f9c029fe86849eecc84dc50f4fd52191c4938c858a7ad0d420aac6798673575fb413a8c37b90def7f5c4bfdc5826a20f23525a2a253f52d586558
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.1.2 (Jun 4, 2021)
2
+
3
+ * Add Procore-Sdk-Version header to all requests
4
+
5
+ PR #44 - https://github.com/procore/ruby-sdk/pull/44
6
+
7
+ *Benjamin Ross*
8
+
1
9
  ## 1.1.1 (May 5, 2021)
2
10
 
3
11
  * Change default host to 'api.procore.com'.
data/README.md CHANGED
@@ -69,6 +69,9 @@ default version is `v1.0` unless otherwise configured.
69
69
  | `client.get("me", version: "v1.1")` | `https://api.procore.com/rest/v1.1/me` |
70
70
  | `client.get("me", version: "vapid")` | `https://api.procore.com/vapid/me` |
71
71
 
72
+ In addition to the settings above, you will need to set `company_id` in the request
73
+ options to work with [Multiple Procore Zones (MPZ)](https://developers.procore.com/documentation/tutorial-mpz).
74
+
72
75
  Example Usage:
73
76
 
74
77
  ```ruby
@@ -83,6 +86,11 @@ client = Procore::Client.new(
83
86
  companies = client.get("companies")
84
87
 
85
88
  companies.first[:name] #=> "Procore Company 1"
89
+
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>})
92
+
93
+ projects.first[:name] #=> "Project 1"
86
94
  ```
87
95
 
88
96
  To use Procore's older API Vapid by default, the default version can be set in
@@ -343,6 +343,7 @@ module Procore
343
343
  "Accepts" => "application/json",
344
344
  "Authorization" => "Bearer #{access_token}",
345
345
  "Content-Type" => "application/json",
346
+ "Procore-Sdk-Version" => "ruby-#{Procore::VERSION}",
346
347
  "User-Agent" => Procore.configuration.user_agent,
347
348
  }.tap do |headers|
348
349
  if options[:idempotency_token]
@@ -1,3 +1,3 @@
1
1
  module Procore
2
- VERSION = "1.1.1".freeze
2
+ VERSION = "1.1.2".freeze
3
3
  end
data/procore-1.1.1.gem ADDED
Binary file
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.1.1
4
+ version: 1.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: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -283,6 +283,7 @@ 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
286
287
  - procore.gemspec
287
288
  homepage: https://github.com/procore/ruby-sdk
288
289
  licenses: