rcap 0.2 → 0.3

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/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Change Log
2
2
 
3
+ == 0.3 - 26th November 2009
4
+
5
+ * Bugfix release
6
+
3
7
  == 0.2 - 20th November 2009
4
8
 
5
9
  * Implemented to_s/inspect methods for all classes
data/README.rdoc CHANGED
@@ -8,7 +8,7 @@ RCAP currently supports only CAP Version 1.1.
8
8
 
9
9
  == Version
10
10
 
11
- 0.2
11
+ 0.3
12
12
 
13
13
  == Dependencies
14
14
 
data/lib/rcap.rb CHANGED
@@ -17,5 +17,5 @@ require 'rcap/area'
17
17
 
18
18
  module RCAP
19
19
  XMLNS = "urn:oasis:names:tc:emergency:cap:1.1"
20
- VERSION = "0.2"
20
+ VERSION = "0.3"
21
21
  end
data/lib/rcap/info.rb CHANGED
@@ -282,27 +282,27 @@ EOF
282
282
  )
283
283
  end
284
284
 
285
- LANGUAGE_YAML = 'Language'
286
- CATEGORIES_YAML = 'Categories'
287
- EVENT_YAML = 'Event'
288
- RESPONSE_TYPES_YAML = 'Response Types'
289
- URGENCY_YAML = 'Urgency'
290
- SEVERITY_YAML = 'Severity'
291
- CERTAINTY_YAML = 'Certainty'
292
- AUDIENCE_YAML = 'Audience'
293
- EFFECTIVE_YAML = 'Effective'
294
- ONSET_YAML = 'Onset'
295
- EXPIRES_YAML = 'Expires'
296
- SENDER_NAME_YAML = 'Sender Name'
297
- HEADLINE_YAML = 'Headline'
298
- DESCRIPTION_YAML = 'Description'
299
- INSTRUCTION_YAML = 'Instruction'
300
- WEB_YAML = 'Web'
301
- CONTACT_YAML = 'Contact'
302
- EVENT_CODES_YAML = 'Event Codes'
303
- PARAMETERS_YAML = 'Parameters'
304
- RESOURCES_YAML = 'Resources'
305
- AREAS_YAML = 'Areas'
285
+ LANGUAGE_YAML = 'Language' # :nodoc:
286
+ CATEGORIES_YAML = 'Categories' # :nodoc:
287
+ EVENT_YAML = 'Event' # :nodoc:
288
+ RESPONSE_TYPES_YAML = 'Response Types' # :nodoc:
289
+ URGENCY_YAML = 'Urgency' # :nodoc:
290
+ SEVERITY_YAML = 'Severity' # :nodoc:
291
+ CERTAINTY_YAML = 'Certainty' # :nodoc:
292
+ AUDIENCE_YAML = 'Audience' # :nodoc:
293
+ EFFECTIVE_YAML = 'Effective' # :nodoc:
294
+ ONSET_YAML = 'Onset' # :nodoc:
295
+ EXPIRES_YAML = 'Expires' # :nodoc:
296
+ SENDER_NAME_YAML = 'Sender Name' # :nodoc:
297
+ HEADLINE_YAML = 'Headline' # :nodoc:
298
+ DESCRIPTION_YAML = 'Description' # :nodoc:
299
+ INSTRUCTION_YAML = 'Instruction' # :nodoc:
300
+ WEB_YAML = 'Web' # :nodoc:
301
+ CONTACT_YAML = 'Contact' # :nodoc:
302
+ EVENT_CODES_YAML = 'Event Codes' # :nodoc:
303
+ PARAMETERS_YAML = 'Parameters' # :nodoc:
304
+ RESOURCES_YAML = 'Resources' # :nodoc:
305
+ AREAS_YAML = 'Areas' # :nodoc:
306
306
 
307
307
  def to_yaml( options = {} ) # :nodoc:
308
308
  response_types_yaml = self.response_types
data/lib/rcap/polygon.rb CHANGED
@@ -22,7 +22,7 @@ module RCAP
22
22
  # points[0] points[1] points[2] ... points[n-1] points[0]
23
23
  # where each point is formatted with RCAP::Point#to_s
24
24
  def to_s
25
- (@points.map{ |point| point.to_s } + [ @points.first ]).join( ' ' )
25
+ (@points + [ @points.first ]).join( ' ' )
26
26
  end
27
27
 
28
28
  def inspect # :nodoc:
@@ -58,7 +58,7 @@ module RCAP
58
58
  yaml_points.to_yaml( options )
59
59
  end
60
60
 
61
- def self.from_yaml_data( polyon_yaml_data ) # :nodoc:
61
+ def self.from_yaml_data( polygon_yaml_data ) # :nodoc:
62
62
  self.new(
63
63
  :points => Array( polygon_yaml_data ).map{ |lattitude, longitude| Point.new( :lattitude => lattitude, :longitude => longitude )}
64
64
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcap
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.2"
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Farrel Lifson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-20 00:00:00 +02:00
12
+ date: 2009-11-26 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency