rcap 2.0.0 → 2.0.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.
- data/lib/rcap/base/alert.rb +3 -3
- data/lib/rcap/version.rb +1 -1
- metadata +2 -2
data/lib/rcap/base/alert.rb
CHANGED
@@ -72,7 +72,7 @@ module RCAP
|
|
72
72
|
# Initialises a new Alert object. Yields the initialised alert to a block.
|
73
73
|
#
|
74
74
|
# @example
|
75
|
-
# alert = Alert.new do |alert|
|
75
|
+
# alert = RCAP::CAP_1_2::Alert.new do |alert|
|
76
76
|
# alert.sender = alerts@example.org
|
77
77
|
# alert.status = Alert::STATUS_ACTUAL
|
78
78
|
# alert.msg_type = Alert::MSG_TYPE_ALERT
|
@@ -175,7 +175,7 @@ module RCAP
|
|
175
175
|
#
|
176
176
|
# @return [String]
|
177
177
|
def to_reference
|
178
|
-
"#{ @sender },#{ @identifier },#{ @sent }"
|
178
|
+
"#{ @sender },#{ @identifier },#{ RCAP.to_s_for_cap( @sent )}"
|
179
179
|
end
|
180
180
|
|
181
181
|
# @return [String]
|
@@ -206,7 +206,7 @@ module RCAP
|
|
206
206
|
#
|
207
207
|
# @return [String]
|
208
208
|
def to_s
|
209
|
-
"#{ @sender }/#{ @identifier }/#{ @sent }"
|
209
|
+
"#{ @sender }/#{ @identifier }/#{ RCAP.to_s_for_cap( @sent )}"
|
210
210
|
end
|
211
211
|
|
212
212
|
XPATH = 'cap:alert'
|
data/lib/rcap/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.0.
|
5
|
+
version: 2.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Farrel Lifson
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2013-01-09 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assistance
|