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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c91d5cda71bc86120353f6c6c30469ebf03bdb6
4
- data.tar.gz: c7bf26f80357b8ad94e74157bfb91cd5385bff38
3
+ metadata.gz: 45c19ef9a53955b4d72f1c10adf39ed0c3879d28
4
+ data.tar.gz: c8a1ef5093eb3db9e543489a4007f7a36ca5906a
5
5
  SHA512:
6
- metadata.gz: 90594c6de5c640c2713ca6ca1b70b059ce81ccb4bec97188f074ce4608fda969a3ddbd7c5e4b43e30ab74cb76d4da5bf99e84637fa9b2076351f2c6e394c5d8b
7
- data.tar.gz: e7181dd3b0fbbfa3639235e045b364916f758eff5e811521c2af6106af3cad73febed97bd11d7e608e17f9a1df869cd31f64a0c9bca01b6db48355ecb94492d8
6
+ metadata.gz: f9e88dbb5fe334ef7b8aea6ebf7ce4ec05691e843d9f64823b7130e09c2503757f684ca0f2603028eda138befd9d320e7c58a3dfd02d56a8d7799cd94cc22ccd
7
+ data.tar.gz: 7788c41c5874e75db53c68683b2dbef77d865bce7808900212d25fcba0ea159bf89a4762a249e42c3a7b4e0617c0ab151808c1eca4199a95d07ccce16479ec2c
data/.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  'Anthony Bargnesi',
12
12
  'Nick Bargnesi',
13
13
  ]
14
- spec.date = %q{2017-01-23}
14
+ spec.date = %q{2017-05-22}
15
15
  spec.email = %q{abargnesi@selventa.com}
16
16
  spec.files = [
17
17
  Dir.glob('lib/**/*.{rb,rl}'),
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.6
@@ -90,8 +90,17 @@ module BELParser
90
90
  end
91
91
 
92
92
  if resolved_value
93
- value = resolved_value.first
94
- Parameter.new(self, value.name, value.encodings)
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
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-01-23 00:00:00.000000000 Z
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