party_mixins 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65ebb091060c2a813b8913bb037f48a7b65daac06f9b45a30b8936151a964f6d
4
- data.tar.gz: 1eb87d51b5138797eec87df8459e4b1eaba7347c22e81b824a007ab10111dcfd
3
+ metadata.gz: 45394825e247725cc9e7367f370c95370fa69e0c18fc35d8983e01449c3865e0
4
+ data.tar.gz: f066bdc8bd34367042dc17bce9237c3070cd996ba012e3e8d30789ff2cf781c3
5
5
  SHA512:
6
- metadata.gz: 40b93d7cd19017b1da75e5c92ece37ea32c54fea2b2e410299a650eb92ef16a9c464d8beba7312a0d89273245a1577f7f892f799075ce0ec8cb35d2d49107cf5
7
- data.tar.gz: 9cc62dac1a1c8e00f1f062f63dccc413ec250dae6f52849be2c7b96c59f07c692f67b8b55f102e537c8e636c435958a488710cefde4e268fb6da4b6a5e21a3c4
6
+ metadata.gz: 1c2c84c94d1672406beed811c444dae62852437c6c84d7f751b058a5d356e0b2f7bec97f3358c436abd1efa55db6408d0f85a9212fb261ff7956f9120eb62dcc
7
+ data.tar.gz: c04bcb60a716e65e79315670e522fd50fac9c08e0922f76ff76baea58bcebc323598521010d5328f4b4ad1201325a3cb4da2a5529199c269a5743ff11c418535
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
+ ## [0.2.2] - 2021-03-07
9
+
10
+ Fix response ok error
11
+
12
+ ### Fixed
13
+ - Fix response ok error
14
+
8
15
  ## [0.2.1] - 2021-01-17
9
16
 
10
17
  Fix response ok error and add more detail to message
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- party_mixins (0.2.1)
4
+ party_mixins (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -71,4 +71,4 @@ DEPENDENCIES
71
71
  webmock
72
72
 
73
73
  BUNDLED WITH
74
- 2.2.4
74
+ 2.2.9
data/lib/party_mixins.rb CHANGED
@@ -42,7 +42,7 @@ module PartyMixins
42
42
  define_method(method_name) do |*args|
43
43
  response = super(*args)
44
44
  options = this.build_options(method_name, response)
45
- raise ServiceError.new(response, options[:error_message]) unless response.success?
45
+ raise ServiceError.new(response, options[:error_message]) unless response.success? || response.ok?
46
46
 
47
47
  response.parsed_response
48
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PartyMixins
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: party_mixins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Humberto Guerrero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-19 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: HTTParty mixin extension
14
14
  email: