soar_lexicon 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soar_lexicon/version.rb +1 -1
- data/lib/soar_lexicon.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bf31d8e784f21a5fd560b0a1a95dac003be8496
|
4
|
+
data.tar.gz: 2a85ff54ce8f27474510fb533b9b344413c93aea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ad159d8fb686b9101a2611cef225a110311d3dc67d2b45fff98a30f3a0cd9c120206884aa551df27b690635c51019325b8e1994c207e13c6150827f2f0dbbc
|
7
|
+
data.tar.gz: 34fdbacc514a43a7e4d6a08f426e5858ce9a419b6d1842a82b484bbbb018589d55fe34d626135f9a0d00c3fb5cf565c4c8cfdc3f57fbec73fe761faaa7c542ac
|
data/lib/soar_lexicon/version.rb
CHANGED
data/lib/soar_lexicon.rb
CHANGED
@@ -19,11 +19,13 @@ module SoarLexicon
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.describe(lexicon)
|
22
|
+
return nil if lexicon.nil?
|
22
23
|
translator = Wadling::LexiconTranslator.new(SoarLexicon::Lexicon::WADL_XSL)
|
23
24
|
translator.translate_resources_into_wadl(lexicon)
|
24
25
|
end
|
25
26
|
|
26
27
|
def self.describe_resource(lexicon, route)
|
28
|
+
return nil if lexicon.nil? or lexicon[route].nil?
|
27
29
|
translator = Wadling::LexiconTranslator.new(SoarLexicon::Lexicon::WADL_XSL)
|
28
30
|
data = {}
|
29
31
|
data[route] = lexicon[route]
|