bel-search-sqlite 0.4.0-java → 0.4.2-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d98df18f7374780d8f52adf7a29057daffc56769
4
- data.tar.gz: 018909fedbca6d27047cf9b519ebda44a7684a2d
3
+ metadata.gz: 7de6c7fedb4492e30f621e44005d6d0b13f2d1ed
4
+ data.tar.gz: 87332ebf803a2e3eb8f3f9db9ff8ef276709c53c
5
5
  SHA512:
6
- metadata.gz: dab27dcee074761824f72dd927dbad708ded9054f4cd218db0632e474f9d4445532bd94be3256255daab2c276a7f1443197ae76728b48627a642ca883b615c8a
7
- data.tar.gz: 8734d24a0a7bdc471b3429b0e8ee069e2936dcd366e4b1413283062173a4b6f6f4e32ec92272d41b380cdc80dfbac18047d00e2fe359251a623dcc63e484dfbd
6
+ metadata.gz: 819d2a36de35732647d078a34be5adbb99df819896f351c4a4eea065b6ee843ff8134871105da98c5b0d35424f0ebc6e53f6d5376b31e81c5dd2033ad2f6991c
7
+ data.tar.gz: c89ea0c836c6c728b36a1c398bc0cb46d98ba20dccd6575c0d367915be7e5860ba886161a937d8cc501b96c846493b96101914a7071fc9a746091423580253c0
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'bel-search-sqlite'
3
- spec.version = '0.4.0'
3
+ spec.version = '0.4.2'
4
4
  spec.summary = '''
5
5
  Resource search plugin for bel.rb using Sqlite FTS.
6
6
  '''.gsub(%r{^\s+}, ' ').gsub(%r{\n}, '')
@@ -3,6 +3,17 @@ All notable changes to bel-search-sqlite will be documented in this file. The cu
3
3
 
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
- ## [0.4.0][0.4.0] - 2015-12-14
6
+ ## [0.4.2][0.4.2] - 2015-12-17
7
+ ### Added
8
+ - Added the :exclude_identifier_schemes option to search for concepts where their preferred label is not an identifier. This was added to allows more human-friendly biological identifiers to be returned.
9
+ - Allow [bel.rb][bel.rb] gem dependency within version range 0.4.x < 0.5 (pessimistic version qualifier).
10
+
11
+ ## [0.4.1][0.4.1] - 2015-12-17
12
+ ### Note
13
+ - Yanked this version. Dependency on bel.rb was incorrect.
14
+
15
+ ## 0.4.0 - 2015-12-14
7
16
  ### Added
8
17
  - Added full-text-search of annotations and namespaces using SQLite. This implementation provides a solution for CRuby and JRuby using the wonderful "sequel" gem.
18
+
19
+ [0.4.2]: https://github.com/OpenBEL/bel.rb-search-sqlite/compare/0.4.0...0.4.2
@@ -31,12 +31,13 @@ module BEL::Resource::Search::Plugins
31
31
 
32
32
  # optional SQL parameters
33
33
  params = {
34
- :match => query_expression.encode('UTF-8'),
35
- :start => (options.delete(:start) || 0).to_i,
36
- :size => size,
37
- :concept_type => (concept_type ? concept_type.to_s.encode('UTF-8') : nil),
38
- :scheme_uri => (scheme_uri ? scheme_uri.to_s.encode('UTF-8') : nil),
39
- :species => (species ? species.to_s.encode('UTF-8') : nil),
34
+ :match => query_expression.encode('UTF-8'),
35
+ :start => (options.delete(:start) || 0).to_i,
36
+ :size => size,
37
+ :concept_type => (concept_type ? concept_type.to_s.encode('UTF-8') : nil),
38
+ :scheme_uri => (scheme_uri ? scheme_uri.to_s.encode('UTF-8') : nil),
39
+ :species => (species ? species.to_s.encode('UTF-8') : nil),
40
+ :exclude_identifier_schemes => options.delete(:exclude_identifier_schemes)
40
41
  }
41
42
 
42
43
  query = QUERY_TEMPLATE.result(binding)
@@ -12,6 +12,10 @@ WHERE
12
12
 
13
13
  <% end %>
14
14
  <% end %>
15
+
16
+ <% if params[:exclude_identifier_schemes] %>
17
+ AND identifier != pref_label
18
+ <% end %>
15
19
  ORDER BY
16
20
  length(pref_label) ASC
17
21
  LIMIT :size
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel-search-sqlite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: java
6
6
  authors:
7
7
  - Anthony Bargnesi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -112,3 +112,4 @@ signing_key:
112
112
  specification_version: 4
113
113
  summary: Resource search plugin for bel.rb using Sqlite FTS.
114
114
  test_files: []
115
+ has_rdoc: