patch_ruby 2.5.0 → 2.6.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +22 -25
- data/README.md +0 -52
- data/lib/patch_ruby/api_client.rb +1 -1
- data/lib/patch_ruby/version.rb +1 -1
- data/lib/patch_ruby.rb +0 -10
- data/patch_ruby.gemspec +2 -0
- data/spec/api/orders_api_spec.rb +0 -1
- data/spec/integration/orders_spec.rb +0 -25
- data/spec/integration/projects_spec.rb +1 -1
- metadata +44 -46
- data/lib/patch_ruby/api/estimates_api.rb +0 -612
- data/lib/patch_ruby/models/create_air_shipping_estimate_request.rb +0 -374
- data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +0 -271
- data/lib/patch_ruby/models/create_mass_estimate_request.rb +0 -282
- data/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb +0 -404
- data/lib/patch_ruby/models/create_road_shipping_estimate_request.rb +0 -517
- data/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb +0 -461
- data/lib/patch_ruby/models/estimate.rb +0 -288
- data/lib/patch_ruby/models/estimate_list_response.rb +0 -273
- data/lib/patch_ruby/models/estimate_response.rb +0 -257
- data/spec/api/estimates_api_spec.rb +0 -70
- data/spec/factories/create_mass_estimate_requests.rb +0 -6
- data/spec/factories/estimate_list_responses.rb +0 -8
- data/spec/factories/estimate_responses.rb +0 -7
- data/spec/factories/estimates.rb +0 -8
- data/spec/integration/estimates_spec.rb +0 -218
- data/spec/models/create_mass_estimate_request_spec.rb +0 -46
- data/spec/models/estimate_list_response_spec.rb +0 -64
- data/spec/models/estimate_response_spec.rb +0 -58
- data/spec/models/estimate_spec.rb +0 -65
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 344fd08a855b75b4d36fc347a2bf06b119c30423a2199c09af8b3b444709db8e
|
|
4
|
+
data.tar.gz: 5c8be54bd9503a86baa5cc71b46f1fbcef26fb37526c336216200fb422c76611
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84f33d02271ccb58ff6ec72d483161c9dae2bb35656abd8c24c12e8c457751d020383458c7a92f0be553c6f1b7a8eb69f84b861726e4f2b00db1ad1021e50dcb
|
|
7
|
+
data.tar.gz: e6b10cb9c1f4dff057be2f2301b2fe21c17cf082a411d97faf7735e9a515bda759043ec12149a7fa94870453aa9d03c8fd9779ede2150ed90da3efe68c41133a
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ 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
|
+
## [2.6.0] - 2025-11-07
|
|
9
|
+
|
|
10
|
+
- Removes create_mass_estimate and create_bitcoin_estimate method
|
|
11
|
+
- Retires all remaining estimates functionalities
|
|
12
|
+
|
|
8
13
|
## [2.5.0] - 2025-08-19
|
|
9
14
|
|
|
10
15
|
### Removed
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
patch_ruby (2.
|
|
4
|
+
patch_ruby (2.6.1)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -16,34 +16,36 @@ GEM
|
|
|
16
16
|
byebug (11.1.3)
|
|
17
17
|
coderay (1.1.3)
|
|
18
18
|
concurrent-ruby (1.2.2)
|
|
19
|
+
date (3.5.0)
|
|
19
20
|
diff-lcs (1.4.4)
|
|
20
|
-
ethon (0.
|
|
21
|
+
ethon (0.15.0)
|
|
21
22
|
ffi (>= 1.15.0)
|
|
22
23
|
factory_bot (6.2.0)
|
|
23
24
|
activesupport (>= 5.0.0)
|
|
24
25
|
ffi (1.17.2)
|
|
25
26
|
i18n (1.12.0)
|
|
26
27
|
concurrent-ruby (~> 1.0)
|
|
27
|
-
|
|
28
|
-
language_server-protocol (3.17.0.5)
|
|
29
|
-
lint_roller (1.1.0)
|
|
28
|
+
jaro_winkler (1.5.6)
|
|
30
29
|
method_source (1.0.0)
|
|
31
30
|
minitest (5.18.0)
|
|
31
|
+
mutex_m (0.3.0)
|
|
32
|
+
observer (0.1.2)
|
|
32
33
|
parallel (1.27.0)
|
|
33
|
-
parser (3.3.
|
|
34
|
+
parser (3.3.10.0)
|
|
34
35
|
ast (~> 2.4.1)
|
|
35
36
|
racc
|
|
36
|
-
prism (1.4.0)
|
|
37
37
|
pry (0.14.1)
|
|
38
38
|
coderay (~> 1.1)
|
|
39
39
|
method_source (~> 1.0)
|
|
40
40
|
pry-byebug (3.8.0)
|
|
41
41
|
byebug (~> 11.0)
|
|
42
42
|
pry (~> 0.10)
|
|
43
|
+
psych (5.2.6)
|
|
44
|
+
date
|
|
45
|
+
stringio
|
|
43
46
|
racc (1.8.1)
|
|
44
47
|
rainbow (3.1.1)
|
|
45
48
|
rake (13.0.6)
|
|
46
|
-
regexp_parser (2.10.0)
|
|
47
49
|
rspec (3.10.0)
|
|
48
50
|
rspec-core (~> 3.10.0)
|
|
49
51
|
rspec-expectations (~> 3.10.0)
|
|
@@ -57,28 +59,21 @@ GEM
|
|
|
57
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
60
|
rspec-support (~> 3.10.0)
|
|
59
61
|
rspec-support (3.10.2)
|
|
60
|
-
rubocop (
|
|
61
|
-
|
|
62
|
-
language_server-protocol (~> 3.17.0.2)
|
|
63
|
-
lint_roller (~> 1.1.0)
|
|
62
|
+
rubocop (0.66.0)
|
|
63
|
+
jaro_winkler (~> 1.5.1)
|
|
64
64
|
parallel (~> 1.10)
|
|
65
|
-
parser (>=
|
|
65
|
+
parser (>= 2.5, != 2.5.1.1)
|
|
66
|
+
psych (>= 3.1.0)
|
|
66
67
|
rainbow (>= 2.2.2, < 4.0)
|
|
67
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
68
|
-
rubocop-ast (>= 1.44.0, < 2.0)
|
|
69
68
|
ruby-progressbar (~> 1.7)
|
|
70
|
-
unicode-display_width (>=
|
|
71
|
-
rubocop-ast (1.44.1)
|
|
72
|
-
parser (>= 3.3.7.2)
|
|
73
|
-
prism (~> 1.4)
|
|
69
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
|
74
70
|
ruby-progressbar (1.13.0)
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
stringio (3.1.7)
|
|
72
|
+
typhoeus (1.5.0)
|
|
73
|
+
ethon (>= 0.9.0, < 0.16.0)
|
|
77
74
|
tzinfo (2.0.6)
|
|
78
75
|
concurrent-ruby (~> 1.0)
|
|
79
|
-
unicode-display_width (
|
|
80
|
-
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
81
|
-
unicode-emoji (4.0.4)
|
|
76
|
+
unicode-display_width (1.5.0)
|
|
82
77
|
|
|
83
78
|
PLATFORMS
|
|
84
79
|
arm64-darwin-20
|
|
@@ -91,12 +86,14 @@ PLATFORMS
|
|
|
91
86
|
|
|
92
87
|
DEPENDENCIES
|
|
93
88
|
factory_bot (~> 6.2)
|
|
89
|
+
mutex_m
|
|
90
|
+
observer
|
|
94
91
|
patch_ruby!
|
|
95
92
|
pry
|
|
96
93
|
pry-byebug
|
|
97
94
|
rake (~> 13.0.1)
|
|
98
95
|
rspec (~> 3.6, >= 3.6.0)
|
|
99
|
-
rubocop (~>
|
|
96
|
+
rubocop (~> 0.66.0)
|
|
100
97
|
|
|
101
98
|
BUNDLED WITH
|
|
102
99
|
2.3.9
|
data/README.md
CHANGED
|
@@ -110,58 +110,6 @@ page = 1 # Pass in which page of orders you'd like
|
|
|
110
110
|
Patch::Order.retrieve_orders(page: page)
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
### Estimates
|
|
114
|
-
|
|
115
|
-
Estimates allow API users to get a quote for the cost of compensating a certain amount of CO2. When creating an estimate, an order in the `draft` state will also be created, reserving the allocation of a project for 5 minutes. If you don't place your draft order within those 5 minutes, the order will automatically be cancelled.
|
|
116
|
-
|
|
117
|
-
[API Reference](https://docs.patch.io/#/?id=estimates)
|
|
118
|
-
|
|
119
|
-
#### Examples
|
|
120
|
-
|
|
121
|
-
```ruby
|
|
122
|
-
# Create a mass estimate
|
|
123
|
-
mass = 1_000_000 # Pass in the mass in grams (i.e. 1 metric tonne)
|
|
124
|
-
Patch::Estimate.create_mass_estimate(mass_g: mass)
|
|
125
|
-
|
|
126
|
-
# Create a vehicle estimate
|
|
127
|
-
distance_m = 1_000_000 # Pass in the shipping distance in meters
|
|
128
|
-
make = "Toyota" # Pass in the car make
|
|
129
|
-
model = "Corolla" # Pass in the car model
|
|
130
|
-
year = 2000 # Pass in the car year
|
|
131
|
-
Patch::Estimate.create_vehicle_estimate(
|
|
132
|
-
distance_m: distance_m,
|
|
133
|
-
make: make,
|
|
134
|
-
model: model,
|
|
135
|
-
year: year
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
# Create a Bitcoin estimate
|
|
139
|
-
transaction_value_btc_sats = 1000; # [Optional] Pass in the transaction value in satoshis
|
|
140
|
-
Patch::Estimate.create_bitcoin_estimate(transaction_value_btc_sats: transaction_value_btc_sats)
|
|
141
|
-
|
|
142
|
-
# Create an ecommerce estimate
|
|
143
|
-
distance_m = 1_000_000 # Pass in the shipping distance in meters
|
|
144
|
-
package_mass_g = 10_000 # Pass in the weight of the package shipped in grams
|
|
145
|
-
transportation_method = "air" # Pass in the transportation method (air, rail, road, sea)
|
|
146
|
-
Patch::Estimate.create_ecommerce_estimate(
|
|
147
|
-
distance_m: distance_m,
|
|
148
|
-
package_mass_g: package_mass_g,
|
|
149
|
-
transportation_method: transportation_method
|
|
150
|
-
)
|
|
151
|
-
|
|
152
|
-
## You can also specify a project-id field (optional) to be used instead of the preferred one
|
|
153
|
-
project_id = 'pro_test_1234' # Pass in the project's ID
|
|
154
|
-
Patch::Estimate.create_mass_estimate(mass_g: mass, project_id: project_id)
|
|
155
|
-
|
|
156
|
-
# Retrieve an estimate
|
|
157
|
-
estimate_id = 'est_test_1234'
|
|
158
|
-
Patch::Estimate.retrieve_estimate(estimate_id)
|
|
159
|
-
|
|
160
|
-
# Retrieve a list of estimates
|
|
161
|
-
page = 1 # Pass in which page of estimates you'd like
|
|
162
|
-
Patch::Estimate.retrieve_estimates(page: page)
|
|
163
|
-
```
|
|
164
|
-
|
|
165
113
|
### Projects
|
|
166
114
|
|
|
167
115
|
Projects are the ways Patch takes CO2 out of the air. They can represent reforestation, enhanced weathering, direct air carbon capture, etc. When you place an order via Patch, it is allocated to a project.
|
|
@@ -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/2.
|
|
34
|
+
@user_agent = "patch-ruby/2.6.1"
|
|
35
35
|
@default_headers = {
|
|
36
36
|
'Content-Type' => 'application/json',
|
|
37
37
|
'User-Agent' => @user_agent
|
data/lib/patch_ruby/version.rb
CHANGED
data/lib/patch_ruby.rb
CHANGED
|
@@ -17,22 +17,13 @@ require 'patch_ruby/version'
|
|
|
17
17
|
require 'patch_ruby/configuration'
|
|
18
18
|
|
|
19
19
|
# Models
|
|
20
|
-
require 'patch_ruby/models/create_air_shipping_estimate_request'
|
|
21
|
-
require 'patch_ruby/models/create_bitcoin_estimate_request'
|
|
22
|
-
require 'patch_ruby/models/create_mass_estimate_request'
|
|
23
20
|
require 'patch_ruby/models/create_order_line_item_request'
|
|
24
21
|
require 'patch_ruby/models/create_order_request'
|
|
25
|
-
require 'patch_ruby/models/create_rail_shipping_estimate_request'
|
|
26
|
-
require 'patch_ruby/models/create_road_shipping_estimate_request'
|
|
27
|
-
require 'patch_ruby/models/create_sea_shipping_estimate_request'
|
|
28
22
|
require 'patch_ruby/models/create_success_response'
|
|
29
23
|
require 'patch_ruby/models/delete_order_line_item_response'
|
|
30
24
|
require 'patch_ruby/models/delete_order_response'
|
|
31
25
|
require 'patch_ruby/models/disclaimer'
|
|
32
26
|
require 'patch_ruby/models/error_response'
|
|
33
|
-
require 'patch_ruby/models/estimate'
|
|
34
|
-
require 'patch_ruby/models/estimate_list_response'
|
|
35
|
-
require 'patch_ruby/models/estimate_response'
|
|
36
27
|
require 'patch_ruby/models/highlight'
|
|
37
28
|
require 'patch_ruby/models/inventory'
|
|
38
29
|
require 'patch_ruby/models/meta_index_object'
|
|
@@ -56,7 +47,6 @@ require 'patch_ruby/models/technology_type_list_response'
|
|
|
56
47
|
require 'patch_ruby/models/update_order_line_item_request'
|
|
57
48
|
|
|
58
49
|
# APIs
|
|
59
|
-
require 'patch_ruby/api/estimates_api'
|
|
60
50
|
require 'patch_ruby/api/order_line_items_api'
|
|
61
51
|
require 'patch_ruby/api/orders_api'
|
|
62
52
|
require 'patch_ruby/api/projects_api'
|
data/patch_ruby.gemspec
CHANGED
|
@@ -39,6 +39,8 @@ Gem::Specification.new do |s|
|
|
|
39
39
|
# Start custom
|
|
40
40
|
s.add_development_dependency 'factory_bot', '~> 6.2'
|
|
41
41
|
s.add_development_dependency 'pry'
|
|
42
|
+
s.add_development_dependency 'mutex_m' # Required for Ruby 3.4+
|
|
43
|
+
s.add_development_dependency 'observer' # Required for Ruby 3.4+
|
|
42
44
|
# End custom
|
|
43
45
|
|
|
44
46
|
end
|
data/spec/api/orders_api_spec.rb
CHANGED
|
@@ -46,7 +46,6 @@ describe 'OrdersApi' do
|
|
|
46
46
|
|
|
47
47
|
# unit tests for create_order
|
|
48
48
|
# Creates an order
|
|
49
|
-
# Creates an order in the `placed` state. To create a `draft` order, create an estimate first.
|
|
50
49
|
# @param create_order_request
|
|
51
50
|
# @param [Hash] opts the optional parameters
|
|
52
51
|
# @return [OrderResponse]
|
|
@@ -99,31 +99,6 @@ RSpec.describe 'Orders Integration' do
|
|
|
99
99
|
expect(create_order_response.data.state).to eq("draft")
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
it 'supports place and cancel for orders created via an estimate' do
|
|
103
|
-
create_estimate_to_place_response = Patch::Estimate.create_mass_estimate(mass_g: 100, create_order: true)
|
|
104
|
-
order_to_place_id = create_estimate_to_place_response.data.order.id
|
|
105
|
-
|
|
106
|
-
place_order_response = Patch::Order.place_order(order_to_place_id)
|
|
107
|
-
expect(place_order_response.data.state).to eq 'placed'
|
|
108
|
-
|
|
109
|
-
create_estimate_to_cancel_response = Patch::Estimate.create_mass_estimate(mass_g: 100, create_order: true)
|
|
110
|
-
order_to_cancel_id = create_estimate_to_cancel_response.data.order.id
|
|
111
|
-
|
|
112
|
-
cancel_order_response = Patch::Order.cancel_order(order_to_cancel_id)
|
|
113
|
-
expect(cancel_order_response.data.state).to eq 'cancelled'
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
it 'supports place order with issued_to' do
|
|
117
|
-
create_estimate_to_place_response = Patch::Estimate.create_mass_estimate(mass_g: 100, create_order: true)
|
|
118
|
-
order_to_place_id = create_estimate_to_place_response.data.order.id
|
|
119
|
-
|
|
120
|
-
issued_to = { email: 'envimpact@companya.com', name: 'Company A' }
|
|
121
|
-
place_order_response = Patch::Order.place_order(order_to_place_id, issued_to: issued_to)
|
|
122
|
-
expect(place_order_response.data.state).to eq 'placed'
|
|
123
|
-
expect(place_order_response.data.issued_to.email).to eq(issued_to[:email])
|
|
124
|
-
expect(place_order_response.data.issued_to.name).to eq(issued_to[:name])
|
|
125
|
-
end
|
|
126
|
-
|
|
127
102
|
it 'supports create with a vintage year' do
|
|
128
103
|
create_order_response =
|
|
129
104
|
Patch::Order.create_order(amount: 100, unit: "g", vintage_year: 2022)
|
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: 2.
|
|
4
|
+
version: 2.6.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: 2025-08
|
|
11
|
+
date: 2025-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -78,6 +78,34 @@ dependencies:
|
|
|
78
78
|
- - ">="
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
80
|
version: '0'
|
|
81
|
+
- !ruby/object:Gem::Dependency
|
|
82
|
+
name: mutex_m
|
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
|
84
|
+
requirements:
|
|
85
|
+
- - ">="
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '0'
|
|
88
|
+
type: :development
|
|
89
|
+
prerelease: false
|
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
91
|
+
requirements:
|
|
92
|
+
- - ">="
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '0'
|
|
95
|
+
- !ruby/object:Gem::Dependency
|
|
96
|
+
name: observer
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - ">="
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '0'
|
|
102
|
+
type: :development
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - ">="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '0'
|
|
81
109
|
description: Ruby wrapper for the Patch API
|
|
82
110
|
email:
|
|
83
111
|
- developers@usepatch.com
|
|
@@ -93,7 +121,6 @@ files:
|
|
|
93
121
|
- Rakefile
|
|
94
122
|
- bin/rspec
|
|
95
123
|
- lib/patch_ruby.rb
|
|
96
|
-
- lib/patch_ruby/api/estimates_api.rb
|
|
97
124
|
- lib/patch_ruby/api/order_line_items_api.rb
|
|
98
125
|
- lib/patch_ruby/api/orders_api.rb
|
|
99
126
|
- lib/patch_ruby/api/projects_api.rb
|
|
@@ -101,22 +128,13 @@ files:
|
|
|
101
128
|
- lib/patch_ruby/api_client.rb
|
|
102
129
|
- lib/patch_ruby/api_error.rb
|
|
103
130
|
- lib/patch_ruby/configuration.rb
|
|
104
|
-
- lib/patch_ruby/models/create_air_shipping_estimate_request.rb
|
|
105
|
-
- lib/patch_ruby/models/create_bitcoin_estimate_request.rb
|
|
106
|
-
- lib/patch_ruby/models/create_mass_estimate_request.rb
|
|
107
131
|
- lib/patch_ruby/models/create_order_line_item_request.rb
|
|
108
132
|
- lib/patch_ruby/models/create_order_request.rb
|
|
109
|
-
- lib/patch_ruby/models/create_rail_shipping_estimate_request.rb
|
|
110
|
-
- lib/patch_ruby/models/create_road_shipping_estimate_request.rb
|
|
111
|
-
- lib/patch_ruby/models/create_sea_shipping_estimate_request.rb
|
|
112
133
|
- lib/patch_ruby/models/create_success_response.rb
|
|
113
134
|
- lib/patch_ruby/models/delete_order_line_item_response.rb
|
|
114
135
|
- lib/patch_ruby/models/delete_order_response.rb
|
|
115
136
|
- lib/patch_ruby/models/disclaimer.rb
|
|
116
137
|
- lib/patch_ruby/models/error_response.rb
|
|
117
|
-
- lib/patch_ruby/models/estimate.rb
|
|
118
|
-
- lib/patch_ruby/models/estimate_list_response.rb
|
|
119
|
-
- lib/patch_ruby/models/estimate_response.rb
|
|
120
138
|
- lib/patch_ruby/models/highlight.rb
|
|
121
139
|
- lib/patch_ruby/models/inventory.rb
|
|
122
140
|
- lib/patch_ruby/models/meta_index_object.rb
|
|
@@ -140,7 +158,6 @@ files:
|
|
|
140
158
|
- lib/patch_ruby/models/update_order_line_item_request.rb
|
|
141
159
|
- lib/patch_ruby/version.rb
|
|
142
160
|
- patch_ruby.gemspec
|
|
143
|
-
- spec/api/estimates_api_spec.rb
|
|
144
161
|
- spec/api/order_line_items_api_spec.rb
|
|
145
162
|
- spec/api/orders_api_spec.rb
|
|
146
163
|
- spec/api/projects_api_spec.rb
|
|
@@ -148,12 +165,8 @@ files:
|
|
|
148
165
|
- spec/api_client_spec.rb
|
|
149
166
|
- spec/configuration_spec.rb
|
|
150
167
|
- spec/constants.rb
|
|
151
|
-
- spec/factories/create_mass_estimate_requests.rb
|
|
152
168
|
- spec/factories/create_order_requests.rb
|
|
153
169
|
- spec/factories/error_responses.rb
|
|
154
|
-
- spec/factories/estimate_list_responses.rb
|
|
155
|
-
- spec/factories/estimate_responses.rb
|
|
156
|
-
- spec/factories/estimates.rb
|
|
157
170
|
- spec/factories/meta_index_objects.rb
|
|
158
171
|
- spec/factories/order_list_responses.rb
|
|
159
172
|
- spec/factories/order_responses.rb
|
|
@@ -164,16 +177,11 @@ files:
|
|
|
164
177
|
- spec/factories/projects.rb
|
|
165
178
|
- spec/factories/sdgs.rb
|
|
166
179
|
- spec/factories/technology_type.rb
|
|
167
|
-
- spec/integration/estimates_spec.rb
|
|
168
180
|
- spec/integration/orders_spec.rb
|
|
169
181
|
- spec/integration/projects/technology_types_spec.rb
|
|
170
182
|
- spec/integration/projects_spec.rb
|
|
171
|
-
- spec/models/create_mass_estimate_request_spec.rb
|
|
172
183
|
- spec/models/create_order_request_spec.rb
|
|
173
184
|
- spec/models/error_response_spec.rb
|
|
174
|
-
- spec/models/estimate_list_response_spec.rb
|
|
175
|
-
- spec/models/estimate_response_spec.rb
|
|
176
|
-
- spec/models/estimate_spec.rb
|
|
177
185
|
- spec/models/meta_index_object_spec.rb
|
|
178
186
|
- spec/models/order_list_response_spec.rb
|
|
179
187
|
- spec/models/order_response_spec.rb
|
|
@@ -203,51 +211,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
203
211
|
- !ruby/object:Gem::Version
|
|
204
212
|
version: '0'
|
|
205
213
|
requirements: []
|
|
206
|
-
rubygems_version: 3.
|
|
214
|
+
rubygems_version: 3.5.22
|
|
207
215
|
signing_key:
|
|
208
216
|
specification_version: 4
|
|
209
217
|
summary: Ruby wrapper for the Patch API
|
|
210
218
|
test_files:
|
|
211
|
-
- spec/api/
|
|
219
|
+
- spec/api/order_line_items_api_spec.rb
|
|
220
|
+
- spec/api/orders_api_spec.rb
|
|
212
221
|
- spec/api/technology_types_api_spec.rb
|
|
213
222
|
- spec/api/projects_api_spec.rb
|
|
214
|
-
- spec/api/orders_api_spec.rb
|
|
215
|
-
- spec/api/order_line_items_api_spec.rb
|
|
216
223
|
- spec/api_client_spec.rb
|
|
217
224
|
- spec/configuration_spec.rb
|
|
218
225
|
- spec/constants.rb
|
|
219
|
-
- spec/factories/project_list_responses.rb
|
|
220
|
-
- spec/factories/order_responses.rb
|
|
221
|
-
- spec/factories/parent_technology_type.rb
|
|
222
|
-
- spec/factories/orders.rb
|
|
223
|
-
- spec/factories/estimate_responses.rb
|
|
224
226
|
- spec/factories/order_list_responses.rb
|
|
225
|
-
- spec/factories/estimates.rb
|
|
226
|
-
- spec/factories/create_mass_estimate_requests.rb
|
|
227
227
|
- spec/factories/sdgs.rb
|
|
228
|
-
- spec/factories/
|
|
228
|
+
- spec/factories/meta_index_objects.rb
|
|
229
229
|
- spec/factories/create_order_requests.rb
|
|
230
|
+
- spec/factories/project_list_responses.rb
|
|
231
|
+
- spec/factories/order_responses.rb
|
|
230
232
|
- spec/factories/technology_type.rb
|
|
231
|
-
- spec/factories/
|
|
233
|
+
- spec/factories/projects.rb
|
|
232
234
|
- spec/factories/project_responses.rb
|
|
235
|
+
- spec/factories/parent_technology_type.rb
|
|
233
236
|
- spec/factories/error_responses.rb
|
|
234
|
-
- spec/factories/
|
|
237
|
+
- spec/factories/orders.rb
|
|
238
|
+
- spec/integration/projects/technology_types_spec.rb
|
|
235
239
|
- spec/integration/projects_spec.rb
|
|
236
240
|
- spec/integration/orders_spec.rb
|
|
237
|
-
- spec/integration/projects/technology_types_spec.rb
|
|
238
|
-
- spec/integration/estimates_spec.rb
|
|
239
|
-
- spec/models/order_spec.rb
|
|
240
|
-
- spec/models/project_list_response_spec.rb
|
|
241
|
-
- spec/models/estimate_list_response_spec.rb
|
|
242
|
-
- spec/models/create_order_request_spec.rb
|
|
243
|
-
- spec/models/estimate_response_spec.rb
|
|
244
241
|
- spec/models/order_response_spec.rb
|
|
245
|
-
- spec/models/project_response_spec.rb
|
|
246
|
-
- spec/models/estimate_spec.rb
|
|
247
242
|
- spec/models/error_response_spec.rb
|
|
248
|
-
- spec/models/
|
|
243
|
+
- spec/models/project_response_spec.rb
|
|
249
244
|
- spec/models/project_spec.rb
|
|
245
|
+
- spec/models/create_order_request_spec.rb
|
|
246
|
+
- spec/models/order_spec.rb
|
|
250
247
|
- spec/models/meta_index_object_spec.rb
|
|
248
|
+
- spec/models/project_list_response_spec.rb
|
|
251
249
|
- spec/models/order_list_response_spec.rb
|
|
252
250
|
- spec/patch_ruby_spec.rb
|
|
253
251
|
- spec/spec_helper.rb
|