Skip to content

v1.2.1 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.2] - 2020-09-18

### Added

- `photos` field to `projects`

## [1.2.1] - 2020-09-18

### Fixed

- Fixing an issue related to the OpenApi code generator.

## [1.2.0] - 2020-09-17

### Added

- `photos` field to `projects`
- `average_price_per_tonne_cents_usd` field to `projects`
- `remaining_mass_g` field to `projects`
- `standard` field to `projects`
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
patch_ruby (1.2.0)
patch_ruby (1.2.2)
json (~> 2.1, >= 2.1.0)
typhoeus (~> 1.0, >= 1.0.1)

Expand Down
14 changes: 7 additions & 7 deletions lib/patch_ruby/models/photo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@

module Patch
class Photo
attr_accessor :file
attr_accessor :url

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'file' => :'file'
:'url' => :'url'
}
end

# Attribute type mapping.
def self.openapi_types
{
:'file' => :'String'
:'url' => :'String'
}
end

Expand Down Expand Up @@ -56,8 +56,8 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'file')
self.file = attributes[:'file']
if attributes.key?(:'url')
self.url = attributes[:'url']
end
end

Expand All @@ -79,7 +79,7 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
file == o.file
url == o.url
end

# @see the `==` method
Expand All @@ -91,7 +91,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[file].hash
[url].hash
end

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def self.openapi_types
:'photos' => :'Array<Photo>',
:'average_price_per_tonne_cents_usd' => :'Integer',
:'remaining_mass_g' => :'Integer',
:'standard' => :'OneOfstandard'
:'standard' => :'Standard'
}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module Patch
VERSION = '1.2.0'
VERSION = '1.2.2'
end