rs.ge 0.1.5 → 0.1.6

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: be7334e70d92d1c8a745692e546ba283d753bce9
4
- data.tar.gz: 77d2e5874aced28a29371fcbab10227868ba727b
3
+ metadata.gz: 7546bf9f1d2d511ed338bc862dd77c8d10e99b04
4
+ data.tar.gz: 69662fd8244f94fdd104b983d7810f0aa486d064
5
5
  SHA512:
6
- metadata.gz: c173c79c32fa8c82d344edfc27bc3d6a67e9c52a52aed930e9757c1b50539b2ca967e506941dbab2ee11173af3f85de7df88285c998d9e21d580380812f75dfe
7
- data.tar.gz: 97f7e9040f0fac1a21e636fcd6b32b0b92ad73c35d27a78c2556ec745c194881b5a0ce760239998d515e543d7be3aedaa9e3300b7aa0442366182b2b1c75eaa5
6
+ metadata.gz: 447892ce8317a536843abf69cf2eb4aad5e9603dc21121c59e1596c79eb551a82e5d7ea1b1fdb8f15029b03257340b0e523b6c457cda78f16b070eebfed80301
7
+ data.tar.gz: d96847c6ff14c964d904210af20a1069eaae2d82b83ab1d837ddeb2e18781c43e8a01ad5bed168ef610634af5d0b12143af3f4e71b96f2cdfe42ed38c8b174c2
@@ -43,8 +43,11 @@ module RS
43
43
  raise 'illegal username/password'
44
44
  else
45
45
  users = []
46
- response[:get_service_users_response][:get_service_users_result][:service_users][:service_user].each do |data|
47
- users << RS::User.extract(data)
46
+ users_data = response[:get_service_users_response][:get_service_users_result][:service_users][:service_user]
47
+ if users_data.is_a?(Array)
48
+ users_data.each { |data| users << RS::User.extract(data) }
49
+ else
50
+ users << RS::User.extract(users_data)
48
51
  end
49
52
  users
50
53
  end
data/lib/rs/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module RS
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rs.ge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Kurashvili
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-04 00:00:00.000000000 Z
11
+ date: 2013-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec