Skip to content
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build devcycle-ruby-server-sdk.gemspec
- gem install ./devcycle-ruby-server-sdk-1.0.1.gem
- gem install ./devcycle-ruby-server-sdk-1.1.1.gem
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,22 +151,22 @@ gem build devcycle-ruby-server-sdk.gemspec
Then either install the gem locally:

```shell
gem install ./devcycle-ruby-server-sdk-1.0.0.gem
gem install ./devcycle-ruby-server-sdk-1.1.1.gem
```

(for development, run `gem install --dev ./devcycle-ruby-server-sdk-1.0.0.gem` to install the development dependencies)
(for development, run `gem install --dev ./devcycle-ruby-server-sdk-1.1.1.gem` to install the development dependencies)

or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).

Finally add this to the Gemfile:

gem 'devcycle-ruby-server-sdk', '~> 1.0.0'
gem 'devcycle-ruby-server-sdk', '~> 1.1.1'


#### About this Package

This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 1.0.0
- Package version: 1.1.1
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
32 changes: 31 additions & 1 deletion lib/devcycle-ruby-server-sdk/models/feature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class Feature
# Bucketed feature variation
attr_accessor :_variation

# Bucketed feature variation key
attr_accessor :variationKey

# Bucketed feature variation name
attr_accessor :variationName

# Evaluation reasoning
attr_accessor :eval_reason

Expand Down Expand Up @@ -59,6 +65,8 @@ def self.attribute_map
:'key' => :'key',
:'type' => :'type',
:'_variation' => :'_variation',
:'variationKey' => :'variationKey',
:'variationName' => :'variationName',
:'eval_reason' => :'evalReason'
}
end
Expand All @@ -75,6 +83,8 @@ def self.openapi_types
:'key' => :'String',
:'type' => :'String',
:'_variation' => :'String',
:'variationKey' => :'String',
:'variationName' => :'String',
:'eval_reason' => :'String'
}
end
Expand Down Expand Up @@ -116,6 +126,14 @@ def initialize(attributes = {})
self._variation = attributes[:'_variation']
end

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

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

if attributes.key?(:'eval_reason')
self.eval_reason = attributes[:'eval_reason']
end
Expand All @@ -141,6 +159,14 @@ def list_invalid_properties
invalid_properties.push('invalid value for "_variation", _variation cannot be nil.')
end

if @variationKey.nil?
invalid_properties.push('invalid value for "variationKey", variationKey cannot be nil.')
end

if @variationName.nil?
invalid_properties.push('invalid value for "variationName", variationName cannot be nil.')
end

invalid_properties
end

Expand All @@ -153,6 +179,8 @@ def valid?
type_validator = EnumAttributeValidator.new('String', ["release", "experiment", "permission", "ops"])
return false unless type_validator.valid?(@type)
return false if @_variation.nil?
return false if @variationKey.nil?
return false if @variationName.nil?
true
end

Expand All @@ -175,6 +203,8 @@ def ==(o)
key == o.key &&
type == o.type &&
_variation == o._variation &&
variationKey == o.variationKey &&
variationName == o.variationName &&
eval_reason == o.eval_reason
end

Expand All @@ -187,7 +217,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[_id, key, type, _variation, eval_reason].hash
[_id, key, type, _variation, variationKey, variationName, eval_reason].hash
end

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion lib/devcycle-ruby-server-sdk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module DevCycle
VERSION = '1.1.0'
VERSION = '1.1.1'
end