rcap 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/README.rdoc +1 -1
- data/lib/rcap.rb +1 -1
- data/lib/rcap/info.rb +21 -21
- data/lib/rcap/polygon.rb +2 -2
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
data/lib/rcap.rb
CHANGED
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
|
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(
|
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.
|
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-
|
12
|
+
date: 2009-11-26 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|