patch_ruby 1.0.0 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +78 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +30 -11
- data/Makefile +10 -0
- data/README.md +61 -8
- data/lib/patch_ruby.rb +2 -0
- data/lib/patch_ruby/models/allocation.rb +25 -0
- data/lib/patch_ruby/models/create_mass_estimate_request.rb +48 -4
- data/lib/patch_ruby/models/create_order_request.rb +75 -7
- data/lib/patch_ruby/models/create_preference_request.rb +7 -0
- data/lib/patch_ruby/models/error_response.rb +9 -0
- data/lib/patch_ruby/models/estimate.rb +29 -1
- data/lib/patch_ruby/models/estimate_list_response.rb +9 -0
- data/lib/patch_ruby/models/estimate_response.rb +9 -0
- data/lib/patch_ruby/models/meta_index_object.rb +11 -0
- data/lib/patch_ruby/models/order.rb +105 -4
- data/lib/patch_ruby/models/order_list_response.rb +9 -0
- data/lib/patch_ruby/models/order_response.rb +9 -0
- data/lib/patch_ruby/models/photo.rb +233 -0
- data/lib/patch_ruby/models/preference.rb +25 -0
- data/lib/patch_ruby/models/preference_list_response.rb +9 -0
- data/lib/patch_ruby/models/preference_response.rb +9 -0
- data/lib/patch_ruby/models/project.rb +141 -25
- data/lib/patch_ruby/models/project_list_response.rb +9 -0
- data/lib/patch_ruby/models/project_response.rb +9 -0
- data/lib/patch_ruby/models/standard.rb +254 -0
- data/lib/patch_ruby/version.rb +1 -1
- data/spec/api/estimates_api_spec.rb +6 -7
- data/spec/api/orders_api_spec.rb +10 -11
- data/spec/api/preferences_api_spec.rb +8 -9
- data/spec/api/projects_api_spec.rb +4 -5
- data/spec/constants.rb +3 -0
- data/spec/factories/allocations.rb +7 -0
- data/spec/factories/create_mass_estimate_requests.rb +6 -0
- data/spec/factories/create_order_requests.rb +8 -0
- data/spec/factories/create_preference_requests.rb +5 -0
- data/spec/factories/error_responses.rb +7 -0
- data/spec/factories/estimate_list_responses.rb +8 -0
- data/spec/factories/estimate_responses.rb +7 -0
- data/spec/factories/estimates.rb +8 -0
- data/spec/factories/meta_index_objects.rb +6 -0
- data/spec/factories/order_list_responses.rb +8 -0
- data/spec/factories/order_responses.rb +7 -0
- data/spec/factories/orders.rb +12 -0
- data/spec/factories/preference_list_responses.rb +8 -0
- data/spec/factories/preference_responses.rb +7 -0
- data/spec/factories/preferences.rb +7 -0
- data/spec/factories/project_list_responses.rb +8 -0
- data/spec/factories/project_responses.rb +7 -0
- data/spec/factories/projects.rb +15 -0
- data/spec/integration/estimates_spec.rb +4 -3
- data/spec/integration/orders_spec.rb +60 -1
- data/spec/integration/preferences_spec.rb +1 -1
- data/spec/integration/projects_spec.rb +19 -1
- data/spec/models/allocation_spec.rb +8 -2
- data/spec/models/create_mass_estimate_request_spec.rb +7 -2
- data/spec/models/create_order_request_spec.rb +7 -2
- data/spec/models/create_preference_request_spec.rb +8 -2
- data/spec/models/error_response_spec.rb +7 -2
- data/spec/models/estimate_list_response_spec.rb +7 -2
- data/spec/models/estimate_response_spec.rb +7 -2
- data/spec/models/estimate_spec.rb +8 -2
- data/spec/models/meta_index_object_spec.rb +7 -2
- data/spec/models/order_list_response_spec.rb +7 -2
- data/spec/models/order_response_spec.rb +7 -2
- data/spec/models/order_spec.rb +18 -2
- data/spec/models/preference_list_response_spec.rb +7 -2
- data/spec/models/preference_response_spec.rb +7 -2
- data/spec/models/preference_spec.rb +7 -2
- data/spec/models/project_list_response_spec.rb +7 -2
- data/spec/models/project_response_spec.rb +7 -2
- data/spec/models/project_spec.rb +21 -2
- data/spec/spec_helper.rb +11 -0
- data/spec/support/shared/generated_classes.rb +13 -0
- metadata +61 -17
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'EstimateListResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:estimate_list_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data, meta: @instance.meta } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of EstimateListResponse' do
|
31
37
|
it 'should create an instance of EstimateListResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::EstimateListResponse)
|
@@ -55,5 +61,4 @@ describe 'EstimateListResponse' do
|
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
62
|
end
|
57
63
|
end
|
58
|
-
|
59
64
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'EstimateResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:estimate_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of EstimateResponse' do
|
31
37
|
it 'should create an instance of EstimateResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::EstimateResponse)
|
@@ -49,5 +55,4 @@ describe 'EstimateResponse' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
56
|
end
|
51
57
|
end
|
52
|
-
|
53
58
|
end
|
@@ -20,18 +20,25 @@ require 'date'
|
|
20
20
|
describe 'Estimate' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:estimate)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { id: @instance.id, order: @instance.order.to_hash, production: @instance.production, type: @instance.type } }
|
33
|
+
let(:nullable_properties) { Set.new(["order"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of Estimate' do
|
31
37
|
it 'should create an instance of Estimate' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::Estimate)
|
33
39
|
end
|
34
40
|
end
|
41
|
+
|
35
42
|
describe 'test attribute "id"' do
|
36
43
|
it 'should work' do
|
37
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -55,5 +62,4 @@ describe 'Estimate' do
|
|
55
62
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
63
|
end
|
57
64
|
end
|
58
|
-
|
59
65
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'MetaIndexObject' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:meta_index_object)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { next_page: @instance.next_page, prev_page: @instance.prev_page } }
|
33
|
+
let(:nullable_properties) { Set.new(["next_page", "prev_page"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of MetaIndexObject' do
|
31
37
|
it 'should create an instance of MetaIndexObject' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::MetaIndexObject)
|
@@ -43,5 +49,4 @@ describe 'MetaIndexObject' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
50
|
end
|
45
51
|
end
|
46
|
-
|
47
52
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'OrderListResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:order_list_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data, meta: @instance.meta } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of OrderListResponse' do
|
31
37
|
it 'should create an instance of OrderListResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::OrderListResponse)
|
@@ -55,5 +61,4 @@ describe 'OrderListResponse' do
|
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
62
|
end
|
57
63
|
end
|
58
|
-
|
59
64
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'OrderResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:order_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of OrderResponse' do
|
31
37
|
it 'should create an instance of OrderResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::OrderResponse)
|
@@ -49,5 +55,4 @@ describe 'OrderResponse' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
56
|
end
|
51
57
|
end
|
52
|
-
|
53
58
|
end
|
data/spec/models/order_spec.rb
CHANGED
@@ -20,13 +20,30 @@ require 'date'
|
|
20
20
|
describe 'Order' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:order)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) {
|
33
|
+
{
|
34
|
+
id: @instance.id,
|
35
|
+
mass_g: @instance.mass_g,
|
36
|
+
production: @instance.production,
|
37
|
+
state: @instance.state,
|
38
|
+
allocation_state: @instance.allocation_state,
|
39
|
+
price_cents_usd: @instance.price_cents_usd,
|
40
|
+
patch_fee_cents_usd: @instance.patch_fee_cents_usd,
|
41
|
+
metadata: @instance.metadata
|
42
|
+
}
|
43
|
+
}
|
44
|
+
let(:nullable_properties) { Set.new(["patch_fee_cents_usd", "price_cents_usd"]) }
|
45
|
+
end
|
46
|
+
|
30
47
|
describe 'test an instance of Order' do
|
31
48
|
it 'should create an instance of Order' do
|
32
49
|
expect(@instance).to be_instance_of(Patch::Order)
|
@@ -81,5 +98,4 @@ describe 'Order' do
|
|
81
98
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
99
|
end
|
83
100
|
end
|
84
|
-
|
85
101
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'PreferenceListResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:preference_list_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data, meta: @instance.meta } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of PreferenceListResponse' do
|
31
37
|
it 'should create an instance of PreferenceListResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::PreferenceListResponse)
|
@@ -55,5 +61,4 @@ describe 'PreferenceListResponse' do
|
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
62
|
end
|
57
63
|
end
|
58
|
-
|
59
64
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'PreferenceResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:preference_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of PreferenceResponse' do
|
31
37
|
it 'should create an instance of PreferenceResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::PreferenceResponse)
|
@@ -49,5 +55,4 @@ describe 'PreferenceResponse' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
56
|
end
|
51
57
|
end
|
52
|
-
|
53
58
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'Preference' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:preference)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { id: @instance.id, project: @instance.project.to_hash, allocation_percentage: @instance.allocation_percentage } }
|
33
|
+
let(:nullable_properties) { Set.new }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of Preference' do
|
31
37
|
it 'should create an instance of Preference' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::Preference)
|
@@ -49,5 +55,4 @@ describe 'Preference' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
56
|
end
|
51
57
|
end
|
52
|
-
|
53
58
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'ProjectListResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:project_list_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data, meta: @instance.meta } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of ProjectListResponse' do
|
31
37
|
it 'should create an instance of ProjectListResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::ProjectListResponse)
|
@@ -55,5 +61,4 @@ describe 'ProjectListResponse' do
|
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
62
|
end
|
57
63
|
end
|
58
|
-
|
59
64
|
end
|
@@ -20,13 +20,19 @@ require 'date'
|
|
20
20
|
describe 'ProjectResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:project_response)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
|
33
|
+
let(:nullable_properties) { Set.new(["error"]) }
|
34
|
+
end
|
35
|
+
|
30
36
|
describe 'test an instance of ProjectResponse' do
|
31
37
|
it 'should create an instance of ProjectResponse' do
|
32
38
|
expect(@instance).to be_instance_of(Patch::ProjectResponse)
|
@@ -49,5 +55,4 @@ describe 'ProjectResponse' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
56
|
end
|
51
57
|
end
|
52
|
-
|
53
58
|
end
|
data/spec/models/project_spec.rb
CHANGED
@@ -20,13 +20,33 @@ require 'date'
|
|
20
20
|
describe 'Project' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance =
|
23
|
+
@instance = build(:project)
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
+
it_behaves_like "a generated class" do
|
31
|
+
let(:instance) { @instance }
|
32
|
+
let(:instance_hash) {
|
33
|
+
{
|
34
|
+
id: @instance.id,
|
35
|
+
name: @instance.name,
|
36
|
+
description: @instance.description,
|
37
|
+
production: @instance.production,
|
38
|
+
type: @instance.type,
|
39
|
+
country: @instance.country,
|
40
|
+
developer: @instance.developer,
|
41
|
+
photos: @instance.photos,
|
42
|
+
average_price_per_tonne_cents_usd: @instance.average_price_per_tonne_cents_usd,
|
43
|
+
remaining_mass_g: @instance.remaining_mass_g,
|
44
|
+
standard: @instance.standard
|
45
|
+
}
|
46
|
+
}
|
47
|
+
let(:nullable_properties) { Set.new(["photos", "standard"]) }
|
48
|
+
end
|
49
|
+
|
30
50
|
describe 'test an instance of Project' do
|
31
51
|
it 'should create an instance of Project' do
|
32
52
|
expect(@instance).to be_instance_of(Patch::Project)
|
@@ -85,5 +105,4 @@ describe 'Project' do
|
|
85
105
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
106
|
end
|
87
107
|
end
|
88
|
-
|
89
108
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -12,6 +12,11 @@ OpenAPI Generator version: 4.3.1
|
|
12
12
|
|
13
13
|
# load the gem
|
14
14
|
require 'patch_ruby'
|
15
|
+
require 'constants'
|
16
|
+
require 'factory_bot'
|
17
|
+
|
18
|
+
# Require shared spec examples
|
19
|
+
Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
|
15
20
|
|
16
21
|
# The following was generated by the `rspec --init` command. Conventionally, all
|
17
22
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
@@ -32,6 +37,12 @@ require 'patch_ruby'
|
|
32
37
|
#
|
33
38
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
34
39
|
RSpec.configure do |config|
|
40
|
+
# Use FactoryBot for test factories
|
41
|
+
config.include FactoryBot::Syntax::Methods
|
42
|
+
config.before(:suite) do
|
43
|
+
FactoryBot.find_definitions
|
44
|
+
end
|
45
|
+
|
35
46
|
# rspec-expectations config goes here. You can use an alternate
|
36
47
|
# assertion/expectation library such as wrong or the stdlib/minitest
|
37
48
|
# assertions if you prefer.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
RSpec.shared_examples "a generated class" do
|
2
|
+
describe '.openapi_nullable' do
|
3
|
+
it 'returns a set with nullable properties' do
|
4
|
+
expect(instance.class.openapi_nullable).to eq nullable_properties
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
describe '#to_hash' do
|
9
|
+
it 'returns a set with nullable properties' do
|
10
|
+
expect(@instance.to_hash).to eq(instance_hash)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
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.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patch Technology
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -77,8 +77,10 @@ executables: []
|
|
77
77
|
extensions: []
|
78
78
|
extra_rdoc_files: []
|
79
79
|
files:
|
80
|
+
- CHANGELOG.md
|
80
81
|
- Gemfile
|
81
82
|
- Gemfile.lock
|
83
|
+
- Makefile
|
82
84
|
- README.md
|
83
85
|
- Rakefile
|
84
86
|
- lib/patch_ruby.rb
|
@@ -101,12 +103,14 @@ files:
|
|
101
103
|
- lib/patch_ruby/models/order.rb
|
102
104
|
- lib/patch_ruby/models/order_list_response.rb
|
103
105
|
- lib/patch_ruby/models/order_response.rb
|
106
|
+
- lib/patch_ruby/models/photo.rb
|
104
107
|
- lib/patch_ruby/models/preference.rb
|
105
108
|
- lib/patch_ruby/models/preference_list_response.rb
|
106
109
|
- lib/patch_ruby/models/preference_response.rb
|
107
110
|
- lib/patch_ruby/models/project.rb
|
108
111
|
- lib/patch_ruby/models/project_list_response.rb
|
109
112
|
- lib/patch_ruby/models/project_response.rb
|
113
|
+
- lib/patch_ruby/models/standard.rb
|
110
114
|
- lib/patch_ruby/version.rb
|
111
115
|
- patch_ruby.gemspec
|
112
116
|
- spec/api/estimates_api_spec.rb
|
@@ -115,6 +119,25 @@ files:
|
|
115
119
|
- spec/api/projects_api_spec.rb
|
116
120
|
- spec/api_client_spec.rb
|
117
121
|
- spec/configuration_spec.rb
|
122
|
+
- spec/constants.rb
|
123
|
+
- spec/factories/allocations.rb
|
124
|
+
- spec/factories/create_mass_estimate_requests.rb
|
125
|
+
- spec/factories/create_order_requests.rb
|
126
|
+
- spec/factories/create_preference_requests.rb
|
127
|
+
- spec/factories/error_responses.rb
|
128
|
+
- spec/factories/estimate_list_responses.rb
|
129
|
+
- spec/factories/estimate_responses.rb
|
130
|
+
- spec/factories/estimates.rb
|
131
|
+
- spec/factories/meta_index_objects.rb
|
132
|
+
- spec/factories/order_list_responses.rb
|
133
|
+
- spec/factories/order_responses.rb
|
134
|
+
- spec/factories/orders.rb
|
135
|
+
- spec/factories/preference_list_responses.rb
|
136
|
+
- spec/factories/preference_responses.rb
|
137
|
+
- spec/factories/preferences.rb
|
138
|
+
- spec/factories/project_list_responses.rb
|
139
|
+
- spec/factories/project_responses.rb
|
140
|
+
- spec/factories/projects.rb
|
118
141
|
- spec/integration/estimates_spec.rb
|
119
142
|
- spec/integration/orders_spec.rb
|
120
143
|
- spec/integration/preferences_spec.rb
|
@@ -138,6 +161,7 @@ files:
|
|
138
161
|
- spec/models/project_response_spec.rb
|
139
162
|
- spec/models/project_spec.rb
|
140
163
|
- spec/spec_helper.rb
|
164
|
+
- spec/support/shared/generated_classes.rb
|
141
165
|
homepage: https://www.usepatch.com
|
142
166
|
licenses:
|
143
167
|
- MIT
|
@@ -162,32 +186,52 @@ signing_key:
|
|
162
186
|
specification_version: 4
|
163
187
|
summary: Ruby wrapper for the Patch API
|
164
188
|
test_files:
|
165
|
-
- spec/api/orders_api_spec.rb
|
166
|
-
- spec/api/estimates_api_spec.rb
|
167
189
|
- spec/api/projects_api_spec.rb
|
190
|
+
- spec/api/orders_api_spec.rb
|
168
191
|
- spec/api/preferences_api_spec.rb
|
192
|
+
- spec/api/estimates_api_spec.rb
|
169
193
|
- spec/api_client_spec.rb
|
170
194
|
- spec/configuration_spec.rb
|
195
|
+
- spec/constants.rb
|
196
|
+
- spec/factories/estimates.rb
|
197
|
+
- spec/factories/estimate_list_responses.rb
|
198
|
+
- spec/factories/create_order_requests.rb
|
199
|
+
- spec/factories/project_list_responses.rb
|
200
|
+
- spec/factories/order_list_responses.rb
|
201
|
+
- spec/factories/estimate_responses.rb
|
202
|
+
- spec/factories/error_responses.rb
|
203
|
+
- spec/factories/preference_list_responses.rb
|
204
|
+
- spec/factories/preference_responses.rb
|
205
|
+
- spec/factories/meta_index_objects.rb
|
206
|
+
- spec/factories/order_responses.rb
|
207
|
+
- spec/factories/preferences.rb
|
208
|
+
- spec/factories/project_responses.rb
|
209
|
+
- spec/factories/create_preference_requests.rb
|
210
|
+
- spec/factories/orders.rb
|
211
|
+
- spec/factories/projects.rb
|
212
|
+
- spec/factories/create_mass_estimate_requests.rb
|
213
|
+
- spec/factories/allocations.rb
|
171
214
|
- spec/integration/orders_spec.rb
|
172
|
-
- spec/integration/preferences_spec.rb
|
173
215
|
- spec/integration/estimates_spec.rb
|
216
|
+
- spec/integration/preferences_spec.rb
|
174
217
|
- spec/integration/projects_spec.rb
|
175
|
-
- spec/models/
|
218
|
+
- spec/models/error_response_spec.rb
|
219
|
+
- spec/models/preference_list_response_spec.rb
|
220
|
+
- spec/models/preference_spec.rb
|
221
|
+
- spec/models/project_response_spec.rb
|
222
|
+
- spec/models/project_spec.rb
|
223
|
+
- spec/models/create_preference_request_spec.rb
|
176
224
|
- spec/models/order_response_spec.rb
|
177
225
|
- spec/models/order_list_response_spec.rb
|
226
|
+
- spec/models/allocation_spec.rb
|
227
|
+
- spec/models/estimate_response_spec.rb
|
178
228
|
- spec/models/order_spec.rb
|
179
|
-
- spec/models/create_preference_request_spec.rb
|
180
|
-
- spec/models/error_response_spec.rb
|
181
|
-
- spec/models/preference_spec.rb
|
182
|
-
- spec/models/preference_list_response_spec.rb
|
183
|
-
- spec/models/project_list_response_spec.rb
|
184
|
-
- spec/models/create_order_request_spec.rb
|
185
229
|
- spec/models/meta_index_object_spec.rb
|
186
|
-
- spec/models/
|
230
|
+
- spec/models/project_list_response_spec.rb
|
187
231
|
- spec/models/preference_response_spec.rb
|
188
232
|
- spec/models/estimate_spec.rb
|
189
|
-
- spec/models/
|
190
|
-
- spec/models/
|
191
|
-
- spec/models/
|
192
|
-
- spec/models/allocation_spec.rb
|
233
|
+
- spec/models/create_mass_estimate_request_spec.rb
|
234
|
+
- spec/models/estimate_list_response_spec.rb
|
235
|
+
- spec/models/create_order_request_spec.rb
|
193
236
|
- spec/spec_helper.rb
|
237
|
+
- spec/support/shared/generated_classes.rb
|