patch_ruby 1.15.0 → 1.15.1

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
  SHA256:
3
- metadata.gz: a338171de1603165ff7c077c2c1607c4ed157718437c2e0b6d1661ab44d122db
4
- data.tar.gz: 96f84e3602fb5ad9e6b22ac91873c004dcce0f1da76c93471ba323f24075e5e0
3
+ metadata.gz: d306d8bd83ffdd48383cdc925e8c0a8ee37db778d519d8541b8ee57e999b18d6
4
+ data.tar.gz: b107f76975cb46cc0598481ffdc8f8ba4de6a02f6d467009686b29517c391182
5
5
  SHA512:
6
- metadata.gz: 2c20ecb8c28c1f418814c94c8d9c788658fbda38e6aada43cf909ecb8f80b3a922704ba1d3cd862c5f6f44e84c691cb2e2acc564f69e4332c4394a636fe52e71
7
- data.tar.gz: 80e864a530bbc4d422a4c7f28cc6e6dc7471b759e8a6dd443909466214d638e0e11457007fc3349f4a4aade5c9144d33a980e5756c8e41f18be6a263d0c380d0
6
+ metadata.gz: bf3c7d236266c4df42832a9f7312951e90785d9bd4ba6a76a58b36b7ab41612bef0e9e13493657a6898a836e8e0f746156205e39da9c4a4b6f15acf4ee906eec
7
+ data.tar.gz: 874b7efa8ddd9dbd677a9a54f35651d13178aeec2b21ec0094e0a7c91b19593d9c7405fb9f9cdf959afac0de7353744ac854a1a0797dde37fd000c71e50fa749
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.15.1] - 2021-11-04
9
+
10
+ ### Added
11
+
12
+ - Adds verifier to project responses
13
+
8
14
  ## [1.15.0] - 2021-10-04
9
15
 
10
16
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- patch_ruby (1.15.0)
4
+ patch_ruby (1.15.1)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -18,7 +18,7 @@ GEM
18
18
  coderay (1.1.3)
19
19
  concurrent-ruby (1.1.9)
20
20
  diff-lcs (1.4.4)
21
- ethon (0.14.0)
21
+ ethon (0.15.0)
22
22
  ffi (>= 1.15.0)
23
23
  factory_bot (6.2.0)
24
24
  activesupport (>= 5.0.0)
@@ -31,7 +31,7 @@ module Patch
31
31
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
32
32
  def initialize(config = Configuration.default)
33
33
  @config = config
34
- @user_agent = "patch-ruby/1.15.0"
34
+ @user_agent = "patch-ruby/1.15.1"
35
35
  @default_headers = {
36
36
  'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
@@ -30,7 +30,7 @@ module Patch
30
30
  # The current state of the order.
31
31
  attr_accessor :state
32
32
 
33
- # The current state of the allocated carbon offsets of the order.
33
+ # DEPRECATED. Indicates if the order has been fully allocated to projects.
34
34
  attr_accessor :allocation_state
35
35
 
36
36
  # The total price in cents USD of the carbon offsets purchased through this order.
@@ -57,7 +57,10 @@ module Patch
57
57
  # The remaining mass in grams available for purchase for this project.
58
58
  attr_accessor :remaining_mass_g
59
59
 
60
- # An object returning the Standard associated with this project.
60
+ # The name of the project verifier. A verifier is the organization that verifies the calculations of the actual amount of greenhouse gas emissions that have been avoided or sequestered through implementation of the project.
61
+ attr_accessor :verifier
62
+
63
+ # An object returning the Standard associated with this project. Standards provide guidance on GHG quantification, monitoring, and reporting. Standards can include protocols/methodologies and guidance documents.
61
64
  attr_accessor :standard
62
65
 
63
66
  # An array returning the UN Sustainable Development Goals associated with this project.
@@ -107,6 +110,7 @@ module Patch
107
110
  :'photos' => :'photos',
108
111
  :'average_price_per_tonne_cents_usd' => :'average_price_per_tonne_cents_usd',
109
112
  :'remaining_mass_g' => :'remaining_mass_g',
113
+ :'verifier' => :'verifier',
110
114
  :'standard' => :'standard',
111
115
  :'sdgs' => :'sdgs',
112
116
  :'tagline' => :'tagline',
@@ -136,6 +140,7 @@ module Patch
136
140
  :'photos' => :'Array<Photo>',
137
141
  :'average_price_per_tonne_cents_usd' => :'Integer',
138
142
  :'remaining_mass_g' => :'Integer',
143
+ :'verifier' => :'String',
139
144
  :'standard' => :'Standard',
140
145
  :'sdgs' => :'Array<Sdg>',
141
146
  :'tagline' => :'String',
@@ -240,6 +245,10 @@ module Patch
240
245
  self.remaining_mass_g = attributes[:'remaining_mass_g']
241
246
  end
242
247
 
248
+ if attributes.key?(:'verifier')
249
+ self.verifier = attributes[:'verifier']
250
+ end
251
+
243
252
  if attributes.key?(:'standard')
244
253
  self.standard = attributes[:'standard']
245
254
  end
@@ -348,6 +357,7 @@ module Patch
348
357
  photos == o.photos &&
349
358
  average_price_per_tonne_cents_usd == o.average_price_per_tonne_cents_usd &&
350
359
  remaining_mass_g == o.remaining_mass_g &&
360
+ verifier == o.verifier &&
351
361
  standard == o.standard &&
352
362
  sdgs == o.sdgs &&
353
363
  tagline == o.tagline &&
@@ -363,7 +373,7 @@ module Patch
363
373
  # Calculates hash code according to all attributes.
364
374
  # @return [Integer] Hash code
365
375
  def hash
366
- [id, production, name, description, type, mechanism, country, state, latitude, longitude, developer, photos, average_price_per_tonne_cents_usd, remaining_mass_g, standard, sdgs, tagline, technology_type].hash
376
+ [id, production, name, description, type, mechanism, country, state, latitude, longitude, developer, photos, average_price_per_tonne_cents_usd, remaining_mass_g, verifier, standard, sdgs, tagline, technology_type].hash
367
377
  end
368
378
 
369
379
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.1
11
11
  =end
12
12
 
13
13
  module Patch
14
- VERSION = '1.15.0'
14
+ VERSION = '1.15.1'
15
15
  end
@@ -49,7 +49,6 @@ RSpec.describe 'Projects Integration' do
49
49
  expect(project.average_price_per_tonne_cents_usd)
50
50
  .to be_an_instance_of(Integer)
51
51
  expect(project.remaining_mass_g).to be_an_instance_of(Integer)
52
- expect(project.state).to be_an_instance_of(String)
53
52
  expect(project.longitude).to be_an_instance_of(Float)
54
53
  expect(project.latitude).to be_an_instance_of(Float)
55
54
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patch_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patch Technology
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -212,58 +212,58 @@ signing_key:
212
212
  specification_version: 4
213
213
  summary: Ruby wrapper for the Patch API
214
214
  test_files:
215
- - spec/api/technology_types_api_spec.rb
216
215
  - spec/api/projects_api_spec.rb
217
- - spec/api/estimates_api_spec.rb
218
- - spec/api/preferences_api_spec.rb
219
216
  - spec/api/orders_api_spec.rb
217
+ - spec/api/technology_types_api_spec.rb
218
+ - spec/api/preferences_api_spec.rb
219
+ - spec/api/estimates_api_spec.rb
220
220
  - spec/api_client_spec.rb
221
221
  - spec/configuration_spec.rb
222
222
  - spec/constants.rb
223
- - spec/factories/create_preference_requests.rb
224
- - spec/factories/preference_list_responses.rb
225
- - spec/factories/allocations.rb
226
- - spec/factories/estimates.rb
223
+ - spec/factories/sdgs.rb
224
+ - spec/factories/order_responses.rb
225
+ - spec/factories/orders.rb
227
226
  - spec/factories/create_mass_estimate_requests.rb
227
+ - spec/factories/create_preference_requests.rb
228
228
  - spec/factories/project_responses.rb
229
- - spec/factories/estimate_list_responses.rb
230
229
  - spec/factories/meta_index_objects.rb
231
- - spec/factories/project_list_responses.rb
232
- - spec/factories/orders.rb
230
+ - spec/factories/estimates.rb
231
+ - spec/factories/order_list_responses.rb
232
+ - spec/factories/parent_technology_type.rb
233
+ - spec/factories/preferences.rb
234
+ - spec/factories/estimate_list_responses.rb
233
235
  - spec/factories/preference_responses.rb
234
236
  - spec/factories/error_responses.rb
237
+ - spec/factories/projects.rb
238
+ - spec/factories/preference_list_responses.rb
235
239
  - spec/factories/estimate_responses.rb
236
- - spec/factories/order_responses.rb
240
+ - spec/factories/allocations.rb
241
+ - spec/factories/project_list_responses.rb
237
242
  - spec/factories/technology_type.rb
238
- - spec/factories/preferences.rb
239
- - spec/factories/order_list_responses.rb
240
- - spec/factories/projects.rb
241
243
  - spec/factories/create_order_requests.rb
242
- - spec/factories/parent_technology_type.rb
243
- - spec/factories/sdgs.rb
244
- - spec/integration/estimates_spec.rb
245
- - spec/integration/projects_spec.rb
246
244
  - spec/integration/preferences_spec.rb
247
- - spec/integration/projects/technology_types_spec.rb
245
+ - spec/integration/estimates_spec.rb
248
246
  - spec/integration/orders_spec.rb
247
+ - spec/integration/projects/technology_types_spec.rb
248
+ - spec/integration/projects_spec.rb
249
+ - spec/models/estimate_list_response_spec.rb
250
+ - spec/models/preference_response_spec.rb
251
+ - spec/models/estimate_spec.rb
249
252
  - spec/models/create_order_request_spec.rb
250
- - spec/models/project_list_response_spec.rb
251
- - spec/models/preference_list_response_spec.rb
252
253
  - spec/models/order_list_response_spec.rb
253
- - spec/models/project_response_spec.rb
254
- - spec/models/create_mass_estimate_request_spec.rb
255
- - spec/models/order_spec.rb
254
+ - spec/models/preference_list_response_spec.rb
255
+ - spec/models/create_preference_request_spec.rb
256
256
  - spec/models/preference_spec.rb
257
+ - spec/models/estimate_response_spec.rb
258
+ - spec/models/order_spec.rb
259
+ - spec/models/project_response_spec.rb
260
+ - spec/models/order_response_spec.rb
261
+ - spec/models/meta_index_object_spec.rb
262
+ - spec/models/project_list_response_spec.rb
257
263
  - spec/models/error_response_spec.rb
258
264
  - spec/models/allocation_spec.rb
259
- - spec/models/order_response_spec.rb
260
- - spec/models/estimate_response_spec.rb
261
- - spec/models/create_preference_request_spec.rb
262
265
  - spec/models/project_spec.rb
263
- - spec/models/estimate_list_response_spec.rb
264
- - spec/models/estimate_spec.rb
265
- - spec/models/meta_index_object_spec.rb
266
- - spec/models/preference_response_spec.rb
266
+ - spec/models/create_mass_estimate_request_spec.rb
267
267
  - spec/patch_ruby_spec.rb
268
268
  - spec/spec_helper.rb
269
269
  - spec/support/shared/generated_classes.rb