Skip to content

Commit 94a7918

Browse files
authored
Merge pull request #11 from patch-technology/lovisa/v1.2.1
v1.2.2
2 parents 6a33347 + 22a349a commit 94a7918

File tree

5 files changed

+22
-11
lines changed

5 files changed

+22
-11
lines changed

CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.2.2] - 2020-09-18
11+
12+
### Added
13+
14+
- `photos` field to `projects`
15+
16+
## [1.2.1] - 2020-09-18
17+
18+
### Fixed
19+
20+
- Fixing an issue related to the OpenApi code generator.
21+
1022
## [1.2.0] - 2020-09-17
1123

1224
### Added
1325

14-
- `photos` field to `projects`
1526
- `average_price_per_tonne_cents_usd` field to `projects`
1627
- `remaining_mass_g` field to `projects`
1728
- `standard` field to `projects`

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
patch_ruby (1.2.0)
4+
patch_ruby (1.2.2)
55
json (~> 2.1, >= 2.1.0)
66
typhoeus (~> 1.0, >= 1.0.1)
77

lib/patch_ruby/models/photo.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
module Patch
1616
class Photo
17-
attr_accessor :file
17+
attr_accessor :url
1818

1919
# Attribute mapping from ruby-style variable name to JSON key.
2020
def self.attribute_map
2121
{
22-
:'file' => :'file'
22+
:'url' => :'url'
2323
}
2424
end
2525

2626
# Attribute type mapping.
2727
def self.openapi_types
2828
{
29-
:'file' => :'String'
29+
:'url' => :'String'
3030
}
3131
end
3232

@@ -56,8 +56,8 @@ def initialize(attributes = {})
5656
h[k.to_sym] = v
5757
}
5858

59-
if attributes.key?(:'file')
60-
self.file = attributes[:'file']
59+
if attributes.key?(:'url')
60+
self.url = attributes[:'url']
6161
end
6262
end
6363

@@ -79,7 +79,7 @@ def valid?
7979
def ==(o)
8080
return true if self.equal?(o)
8181
self.class == o.class &&
82-
file == o.file
82+
url == o.url
8383
end
8484

8585
# @see the `==` method
@@ -91,7 +91,7 @@ def eql?(o)
9191
# Calculates hash code according to all attributes.
9292
# @return [Integer] Hash code
9393
def hash
94-
[file].hash
94+
[url].hash
9595
end
9696

9797
# Builds the object from hash

lib/patch_ruby/models/project.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def self.openapi_types
8888
:'photos' => :'Array<Photo>',
8989
:'average_price_per_tonne_cents_usd' => :'Integer',
9090
:'remaining_mass_g' => :'Integer',
91-
:'standard' => :'OneOfstandard'
91+
:'standard' => :'Standard'
9292
}
9393
end
9494

lib/patch_ruby/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module Patch
14-
VERSION = '1.2.0'
14+
VERSION = '1.2.2'
1515
end

0 commit comments

Comments
 (0)