ragoon 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: b5f0f567bf1708c30ea8ebeb9762c69b5bfd5ec9
4
- data.tar.gz: b9bc20acee3e5315530833e3db82c82f2cc41a0e
3
+ metadata.gz: cc1f2d85ac24d101d5c7eadf8d7309c5510094f7
4
+ data.tar.gz: 7b7cf1968cfae7ac9a3fbba5786741e866c74494
5
5
  SHA512:
6
- metadata.gz: 87ebedd491389ebe292c770c4c178a4a41be1ee76acf078e2a6d2c3fc5b2f5773b52b6968fd0d9f60abe887f7f7f13444a4732680542f59337a51de52eeda6a4
7
- data.tar.gz: d797d4f97b1d2213994655bd75fc767dc86e03b1765cf52ea72a6794d68a27e1077c08cb5f29d1dde31a8a6a699e0501c6dc834a41ef65672afd75e7174ea346
6
+ metadata.gz: 7bac530eed44b054794e582b533e7be5eb3e0f2ddffba7911e500d1d514e953d1aa5ed2d3738fa92028244dfa4d73a621674678527b0a14a86f7d1307a4ddeff
7
+ data.tar.gz: 731e8139a0905e683a2a259c8c6f0c8e98da396bd9093ea8b76702df70769976996babf2b4517026a59421ac1dffc22f59478c586bf93639ec85bfcb077662b1
@@ -23,7 +23,9 @@ class Ragoon::Services::Notification < Ragoon::Services
23
23
  end
24
24
 
25
25
  notifications = notification_get_notifications_by_id(items)
26
- keys = notifications.xpath('//notification').first.attributes.keys.map(&:to_sym)
26
+ first_item = notifications.xpath('//notification').first
27
+ return [] if first_item.nil?
28
+ keys = first_item.attributes.keys.map(&:to_sym)
27
29
 
28
30
  notifications.xpath('//notification').each_with_object([]) do |notification, result|
29
31
  result.push(
@@ -60,10 +62,10 @@ class Ragoon::Services::Notification < Ragoon::Services
60
62
  notification_items.each do |notification_item|
61
63
  parameter_node.add_child(
62
64
  Ragoon::XML.create_node(
63
- 'notification_id',
64
- module_id: notification_item[:module_id],
65
- item: notification_item[:item],
66
- )
65
+ 'notification_id',
66
+ module_id: notification_item[:module_id],
67
+ item: notification_item[:item]
68
+ )
67
69
  )
68
70
  end
69
71
 
@@ -72,14 +74,4 @@ class Ragoon::Services::Notification < Ragoon::Services
72
74
  client.request(action_name, body_node)
73
75
  client.result_set
74
76
  end
75
-
76
-
77
- def default_options(action_name)
78
- case action_name
79
- when 'ScheduleGetEvents'
80
- Ragoon::Services.start_and_end
81
- else
82
- {}
83
- end
84
- end
85
77
  end
@@ -1,3 +1,3 @@
1
1
  module Ragoon
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: ragoon
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
  - SHIOYA, Hiromu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-29 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client