From f3747feee51fbd14d26f8cb2ed2fc888a190c054 Mon Sep 17 00:00:00 2001 From: Lovisa Svallingson Date: Fri, 18 Sep 2020 17:44:21 -0600 Subject: [PATCH 1/2] v1.2.1 --- CHANGELOG.md | 6 ++++++ lib/patch_ruby/models/project.rb | 2 +- lib/patch_ruby/version.rb | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8f0069..16e52a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.2.1] - 2020-09-18 + +### Fixed + +- Fixing an issue related to the OpenApi code generator. + ## [1.2.0] - 2020-09-17 ### Added diff --git a/lib/patch_ruby/models/project.rb b/lib/patch_ruby/models/project.rb index d159653..0ce275b 100644 --- a/lib/patch_ruby/models/project.rb +++ b/lib/patch_ruby/models/project.rb @@ -88,7 +88,7 @@ def self.openapi_types :'photos' => :'Array', :'average_price_per_tonne_cents_usd' => :'Integer', :'remaining_mass_g' => :'Integer', - :'standard' => :'OneOfstandard' + :'standard' => :'Standard' } end diff --git a/lib/patch_ruby/version.rb b/lib/patch_ruby/version.rb index ce4a8fd..24c02a3 100644 --- a/lib/patch_ruby/version.rb +++ b/lib/patch_ruby/version.rb @@ -11,5 +11,5 @@ =end module Patch - VERSION = '1.2.0' + VERSION = '1.2.1' end From 22a349aa0b78d4bb2f7b411a5e5d1b49ae2d32a5 Mon Sep 17 00:00:00 2001 From: Lovisa Svallingson Date: Fri, 18 Sep 2020 19:21:30 -0600 Subject: [PATCH 2/2] v1.2.2 --- CHANGELOG.md | 7 ++++++- Gemfile.lock | 2 +- lib/patch_ruby/models/photo.rb | 14 +++++++------- lib/patch_ruby/version.rb | 2 +- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16e52a4..53b47b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ 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 @@ -17,7 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- `photos` field to `projects` - `average_price_per_tonne_cents_usd` field to `projects` - `remaining_mass_g` field to `projects` - `standard` field to `projects` diff --git a/Gemfile.lock b/Gemfile.lock index 431885d..56dfdcb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/lib/patch_ruby/models/photo.rb b/lib/patch_ruby/models/photo.rb index 7bf42df..9028c4b 100644 --- a/lib/patch_ruby/models/photo.rb +++ b/lib/patch_ruby/models/photo.rb @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/lib/patch_ruby/version.rb b/lib/patch_ruby/version.rb index 24c02a3..d0708e9 100644 --- a/lib/patch_ruby/version.rb +++ b/lib/patch_ruby/version.rb @@ -11,5 +11,5 @@ =end module Patch - VERSION = '1.2.1' + VERSION = '1.2.2' end