zaui_zapi 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/version.rb +1 -1
  3. data/lib/zaui.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2603818d4cbdef47080f90af717209755afd29f0
4
- data.tar.gz: f4d5727dcfa29d39133d13b8762c5a0375d089e9
3
+ metadata.gz: 50bdde3617f28e6a94bfd0d8e3674d7bca45c5e7
4
+ data.tar.gz: 55646b4d1755146775663bbd110681b49b42f3b6
5
5
  SHA512:
6
- metadata.gz: 911be11613a1207627f3ceec5bd7479a691d95a48bfc86dcfafb6cbbaefb456eb6b2886a3c84f4f47d03d3084eed35769723f7ac58a6b8e724bfcfbf19a4985b
7
- data.tar.gz: c2eca43692963b6d82db7b7fe9e388c0ac430a41066998a76362c6622925e1686432f81c42da89914de101ab91340d1b7b62aa0989a8495f397a7e4dc0552271
6
+ metadata.gz: 5bc23752049600fb86e43b2b39205045b00508fec23761bea992533f511d6c4cd1d8c5abb755f242327f626cb5f9566e05154a47d2e82f3aabad4d42e7a8a2cd
7
+ data.tar.gz: 57af1d47b8b055dfd38a46bf14fcde4148b3522e87d8962d522b094b2dbdb52ac22ba29ef68e3390b27b1a7645b30c81c5403f88c6ac3931fbc1726eab5ceebc
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = '0.1.0'
1
+ VERSION = '0.1.1'
data/lib/zaui.rb CHANGED
@@ -9,11 +9,11 @@ class Zaui
9
9
  end
10
10
 
11
11
  def get_activity_categories
12
- raw = _zapi(xml.get_activity_categories)[:categories][:category]
12
+ raw = _zapi(xml.get_activity_categories).try(:[],'categories').try(:[],'category')
13
13
  end
14
14
 
15
15
  def get_activities_by_category_id id
16
- raw = _zapi(xml.get_activities_by_category_id(id))[:activities][:activity]
16
+ raw = _zapi(xml.get_activities_by_category_id(id)).try(:[],'activities').try(:[],'activity')
17
17
  end
18
18
 
19
19
  def get_package_categories
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaui_zapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Kretzmann