bloom_net_center_client 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 8b3884b8cf885a2f682f33bd5457b597493fff71
4
- data.tar.gz: e4c6d9aab66ef5ffe83ac98770c17114e5b8ab3d
3
+ metadata.gz: ea59a59777528213f3e4db2b41f41e7b0a658c2b
4
+ data.tar.gz: 04098780a5219f9ad94f4491d6e96fd61d4910ce
5
5
  SHA512:
6
- metadata.gz: 3b7019685966bcdcf55c689b1280ac56c55922e1d0586ca2af44879ede1903d212adc8c4096e20b5a1da9dedf728ea37513f5a399482666f8cf290d502f1f842
7
- data.tar.gz: 2a7cce1b3a11d7d26a577257b901c6e4c48a1e09bbf695ee4281fd54b1f90b736d072e72594859427b0f1d5fd243216e6a49ca9bc38f6adce975a9a6dff93eab
6
+ metadata.gz: c54ef07d6656c1a9e3ca7b2efc458fe9eeaefddb28767d20bc11d7ecb9c2204d7d00250bb592d4da21775cfcc9505fd89508742ab9fe62685a79ed7f36a4db0b
7
+ data.tar.gz: d7a260f6980651833c6e20f98a51985eecc8d5223ba636cec6ba30552d791486d1802343591b156569b0d469d99f9da562fdfbbdc4212004da059ca4062d9b98
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.3.1] - 2017-03-31
8
+ ### Fixed
9
+ - FindTxnResponse: `txn` is nil (no longer raises exception) when the response is invalid
10
+
7
11
  ## [0.3.0] - 2017-03-27
8
12
  ### Changed
9
13
  - Work with new version of BloomNet Center
@@ -6,10 +6,13 @@ module BloomNetCenterClient
6
6
  private
7
7
 
8
8
  def default_txn
9
+ attribute_params = body[:data][:attributes]
10
+ return nil if attribute_params.nil?
11
+
9
12
  attributes = Txn::ATTRS.each_with_object({}) do |attr, hash|
10
13
  attr_dasherized = attr.to_s.dasherize
11
14
  hash[attr] = body[:data][attr_dasherized] ||
12
- body[:data][:attributes][attr_dasherized]
15
+ attribute_params[attr_dasherized]
13
16
  end
14
17
  BloomNetCenterClient::Txn.new(attributes)
15
18
  end
@@ -1,3 +1,3 @@
1
1
  module BloomNetCenterClient
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloom_net_center_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config