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 +4 -4
- data/lib/ragoon/services/notification.rb +7 -15
- data/lib/ragoon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc1f2d85ac24d101d5c7eadf8d7309c5510094f7
|
4
|
+
data.tar.gz: 7b7cf1968cfae7ac9a3fbba5786741e866c74494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
64
|
-
|
65
|
-
|
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
|
data/lib/ragoon/version.rb
CHANGED
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.
|
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
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|