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.
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module RCAP
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rcap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.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: 2012-11-17 00:00:00 Z
13
+ date: 2013-01-09 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assistance