openbel-api 0.5.0-java → 0.5.1-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 +4 -4
- data/.gemspec +1 -1
- data/CHANGELOG.md +8 -0
- data/VERSION +1 -1
- data/lib/openbel/api/evidence/mongo.rb +1 -5
- data/lib/openbel/api/evidence/mongo_facet.rb +12 -3
- 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: 1e92506a6a1b43f887a0b8a0b90a89e79784aa1c
|
|
4
|
+
data.tar.gz: a460b94a82a4430ffcd3a24c627fae818ca30c81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2c221355ede69af12b3cce38a99d70126cfa763aed4dfdc6674783724220066711ad5c4a903e6b15320d46f950b6c091406dad8f031f3c09a4fb2d1b44b90e0
|
|
7
|
+
data.tar.gz: edad2faa9587a091ba86baca74c6446dbb489430efdb3f485153b5eaf5dce142dc4b0a4b8bd4b8dbae7eff822a969c0117b5f711e99fb60663bc60913212d0cf
|
data/.gemspec
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@ All notable changes to openbel-api will be documented in this file. The curated
|
|
|
3
3
|
|
|
4
4
|
This project adheres to [Semantic Versioning][Semantic Versioning].
|
|
5
5
|
|
|
6
|
+
## [0.5.1][0.5.1] - 2015-12-18
|
|
7
|
+
### Fixed
|
|
8
|
+
- Authentication error for MongoDB user when faceting on `GET /api/evidence` ([Issue #93][93]).
|
|
9
|
+
|
|
10
|
+
-----
|
|
11
|
+
|
|
6
12
|
## [0.5.0][0.5.0] - 2015-12-17
|
|
7
13
|
### Added
|
|
8
14
|
- Report API version from executables (`openbel-api`, `openbel-config`) and REST API (`GET /api/version`) ([Issue #91][91]).
|
|
@@ -34,8 +40,10 @@ This project adheres to [Semantic Versioning][Semantic Versioning].
|
|
|
34
40
|
- Retrieve equivalent namespace values from the individual.
|
|
35
41
|
- Retrieve orthologous namespace values from the individual.
|
|
36
42
|
|
|
43
|
+
[0.5.1]: https://github.com/OpenBEL/openbel-api/compare/0.5.0...0.5.1
|
|
37
44
|
[0.5.0]: https://github.com/OpenBEL/openbel-api/compare/0.4.0...0.5.0
|
|
38
45
|
[Semantic Versioning]: http://semver.org
|
|
39
46
|
[MongoDB User Authentication]: https://github.com/OpenBEL/openbel-api/wiki/Configuring-the-Evidence-Store#mongodb-user-authentication
|
|
40
47
|
[91]: https://github.com/OpenBEL/openbel-api/issues/91
|
|
41
48
|
[92]: https://github.com/OpenBEL/openbel-api/issues/92
|
|
49
|
+
[93]: https://github.com/OpenBEL/openbel-api/issues/93
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.1
|
|
@@ -33,11 +33,7 @@ module OpenBEL
|
|
|
33
33
|
{:"$**" => Mongo::TEXT },
|
|
34
34
|
:background => true
|
|
35
35
|
)
|
|
36
|
-
@evidence_facets = EvidenceFacets.new(
|
|
37
|
-
:host => host,
|
|
38
|
-
:port => port,
|
|
39
|
-
:database => db
|
|
40
|
-
)
|
|
36
|
+
@evidence_facets = EvidenceFacets.new(options)
|
|
41
37
|
end
|
|
42
38
|
|
|
43
39
|
def create_evidence(evidence)
|
|
@@ -12,10 +12,19 @@ module OpenBEL
|
|
|
12
12
|
include FacetFilter
|
|
13
13
|
|
|
14
14
|
def initialize(options = {})
|
|
15
|
-
host = options
|
|
16
|
-
port = options
|
|
17
|
-
db = options
|
|
15
|
+
host = options[:host]
|
|
16
|
+
port = options[:port]
|
|
17
|
+
db = options[:database]
|
|
18
18
|
@db = MongoClient.new(host, port).db(db)
|
|
19
|
+
|
|
20
|
+
# Authenticate user if provided.
|
|
21
|
+
username = options[:username]
|
|
22
|
+
password = options[:password]
|
|
23
|
+
if username && password
|
|
24
|
+
auth_db = options[:authentication_database] || db
|
|
25
|
+
@db.authenticate(username, password, nil, auth_db)
|
|
26
|
+
end
|
|
27
|
+
|
|
19
28
|
@evidence = @db[:evidence]
|
|
20
29
|
@evidence_facets = @db[:evidence_facets]
|
|
21
30
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openbel-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Anthony Bargnesi
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-12-
|
|
13
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|