rcap 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/lib/rcap/alert.rb +6 -3
- data/lib/rcap/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
data/lib/rcap/alert.rb
CHANGED
@@ -30,12 +30,15 @@ module RCAP
|
|
30
30
|
|
31
31
|
def self.from_json( json_string )
|
32
32
|
json_hash = JSON.parse( json_string )
|
33
|
+
self.from_h( json_hash )
|
34
|
+
end
|
33
35
|
|
34
|
-
|
36
|
+
def self.from_h( hash )
|
37
|
+
case hash[ JSON_CAP_VERSION_KEY ]
|
35
38
|
when CAP_1_1::Alert::CAP_VERSION
|
36
|
-
CAP_1_1::Alert.from_h(
|
39
|
+
CAP_1_1::Alert.from_h( hash )
|
37
40
|
else
|
38
|
-
CAP_1_2::Alert.from_h(
|
41
|
+
CAP_1_2::Alert.from_h( hash )
|
39
42
|
end
|
40
43
|
end
|
41
44
|
end
|
data/lib/rcap/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Farrel Lifson
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-04-
|
17
|
+
date: 2011-04-22 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|