Skip to content

Commit

Permalink
Bumped version to 2.1.0 since we have new functionality
Browse files Browse the repository at this point in the history
Changelog updated as well
  • Loading branch information
Envek committed Dec 26, 2017
1 parent a417dc2 commit fc2acf4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,36 @@ to [Semantic Versioning].
end
```

- Method to pass response handling to parent scopes by @Envek ([#21](https://github.com/evilmartians/evil-client/pull/21]))

Allow to handle specific cases in operations and common cases in parent scopes.

```ruby
scope :entities do
operation :create do
response(409) do |_, _, (data, *)|
super! unless data["errorCode"] == "201"
raise YourAPI::AlreadyExists, data["errorMessage"]
end
end

response(409) do |_, _, (data, *)|
raise YourAPI::Error, data.dig["errorsMessage"]
end
end
```

### Fixed

- Generation of English error messages in case of using non-English locales

### Changed

- Version requirement for tram-policy is limited due to regression in 0.2.4

See https://github.com/tram-rb/tram-policy/commit/874c8f61399dbe174c158fec729d16c2b1ffb2fd#r26432444


## [2.0.0] [2017-09-02]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion evil-client.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |gem|
gem.name = "evil-client"
gem.version = "2.0.0"
gem.version = "2.1.0"
gem.author = ["Andrew Kozin (nepalez)", "Ravil Bairamgalin (brainopia)"]
gem.email = ["[email protected]", "[email protected]"]
gem.homepage = "https://github.com/evilmartians/evil-client"
Expand Down

0 comments on commit fc2acf4

Please sign in to comment.