lifen 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 327eef4638197835068e726dd70cad247e2439a9
4
- data.tar.gz: c9bd8ceb3d086dbaec1867deaa37c2b8b6cc8515
3
+ metadata.gz: 38df1a5450810d1efd28ee6b8e1d1ecc0fd37958
4
+ data.tar.gz: a3722eb0dfe2b7471df3afdd9531098bc018def0
5
5
  SHA512:
6
- metadata.gz: 4297d54ba2897aae59036911fb239720c7de64a3328b6fef11d3601a2f3b1de2ce81b1c7b121df41dc7e82f0bb42c0d230e882993f116833cc313304c22e0a9e
7
- data.tar.gz: 96c3a46a60f6e4efbbf2e37f67d635c247241624c568406789c33684f6646bbfe445ce53fe22dcadf8a1f391c93bc70eff81b340ed078bc9e9adc741ae86d54d
6
+ metadata.gz: 2f142badeeba234f9254c2a433abd3a50f218c412a1a99d3e8a089584e28cbd0e90156b50cd22dc96909887f8a040c1213f1f7564e59f7511ebc3e5796f7099f
7
+ data.tar.gz: 40b6a3ba5ac1db2a34d9cfadf4171b6ef562e8981ec20662f4ba4241feccdda522407bb2c596761e4ab89705549e6ad8c1c7cc155a465a16cfa71daf2f9430da
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 1.6.1
2
+ -----
3
+
4
+ - Better handling when a user has no channel
5
+
1
6
  1.6.0
2
7
  -----
3
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lifen (1.6.0)
4
+ lifen (1.6.1)
5
5
  faraday (>= 0.9)
6
6
  inflecto
7
7
  virtus (>= 1.0)
@@ -46,7 +46,7 @@ GEM
46
46
  rspec-support (~> 3.5.0)
47
47
  rspec-support (3.5.0)
48
48
  safe_yaml (1.0.4)
49
- thread_safe (0.3.5)
49
+ thread_safe (0.3.6)
50
50
  vcr (3.0.3)
51
51
  virtus (1.0.5)
52
52
  axiom-types (~> 0.1)
data/lib/lifen/user.rb CHANGED
@@ -121,11 +121,11 @@ module Lifen
121
121
 
122
122
  user = new(json)
123
123
 
124
- json["telecom"].each do |telecom_json|
124
+ Array(json["telecom"]).each do |telecom_json|
125
125
  user.channels << Lifen::Communication::Channel.from_json(telecom_json, "telecom")
126
126
  end
127
127
 
128
- json["address"].each do |address_json|
128
+ Array(json["address"]).each do |address_json|
129
129
  user.channels << Lifen::Communication::Channel.from_json(address_json, "address")
130
130
  end
131
131
 
data/lib/lifen/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lifen
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lifen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Etienne Depaulis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-23 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  requirements: []
231
231
  rubyforge_project:
232
- rubygems_version: 2.5.2
232
+ rubygems_version: 2.6.8
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Lifen JSON API ruby client