bel_parser 1.1.4-java → 1.1.6-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemspec +1 -1
- data/VERSION +1 -1
- data/lib/bel_parser/expression/model/namespace.rb +11 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c19ef9a53955b4d72f1c10adf39ed0c3879d28
|
4
|
+
data.tar.gz: c8a1ef5093eb3db9e543489a4007f7a36ca5906a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9e88dbb5fe334ef7b8aea6ebf7ce4ec05691e843d9f64823b7130e09c2503757f684ca0f2603028eda138befd9d320e7c58a3dfd02d56a8d7799cd94cc22ccd
|
7
|
+
data.tar.gz: 7788c41c5874e75db53c68683b2dbef77d865bce7808900212d25fcba0ea159bf89a4762a249e42c3a7b4e0617c0ab151808c1eca4199a95d07ccce16479ec2c
|
data/.gemspec
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.6
|
@@ -90,8 +90,17 @@ module BELParser
|
|
90
90
|
end
|
91
91
|
|
92
92
|
if resolved_value
|
93
|
-
|
94
|
-
|
93
|
+
match =
|
94
|
+
if resolved_value.size == 1
|
95
|
+
resolved_value.first
|
96
|
+
else
|
97
|
+
# first, find match by name, identifier, title
|
98
|
+
# otherwise, select first match (e.g. multiple match by synonym)
|
99
|
+
resolved_value.find { |v|
|
100
|
+
[v.name, v.identifier, v.title].any? { |s| s == value }
|
101
|
+
} || resolved_value.first
|
102
|
+
end
|
103
|
+
Parameter.new(self, match.name, match.encodings)
|
95
104
|
else
|
96
105
|
Parameter.new(self, value, nil)
|
97
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bel_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Anthony Bargnesi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|