openbel-api 0.6.1-java → 0.6.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 +4 -4
- data/.gemspec +1 -1
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/app/openbel/api/middleware/auth.rb +4 -6
- 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: 6bcf575f4340f45cbe5e89d6dac75acff1ddf359
|
|
4
|
+
data.tar.gz: efdf772df684ef6926fccac408fc7dff0adbdd19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a34194c1df9d2e44105833471dac6ab1c2c53ea1155d6e9ce6cd2015202a27c1fb38b1dbc6e81ebd369605ccea0a0892f5b26c064d8982a7735d8583db56acac
|
|
7
|
+
data.tar.gz: 5005874c63134c908d5da718f532e756a85daa492220b28fa20e08766292c5a1f0bb288ca7c3e8f1a6472ad6347deac3a782e743a482b3ebd5d0ee92085ba8cf
|
data/.gemspec
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@ 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.6.2][0.6.2] - 2016-03-23
|
|
7
|
+
### Fixed
|
|
8
|
+
- Missing authorization header reported when header is malformed ([Issue #105][105]).
|
|
9
|
+
|
|
6
10
|
## [0.6.1][0.6.1] - 2016-03-16
|
|
7
11
|
### Changed
|
|
8
12
|
- Bumped gems specification date. Requires new version because 0.6.0 was yanked from RubyGems.
|
|
@@ -66,6 +70,7 @@ Datasets are stored with a URI computed from the scheme and host that is serving
|
|
|
66
70
|
- Retrieve equivalent namespace values from the individual.
|
|
67
71
|
- Retrieve orthologous namespace values from the individual.
|
|
68
72
|
|
|
73
|
+
[0.6.2]: https://github.com/OpenBEL/openbel-api/compare/0.6.1...0.6.2
|
|
69
74
|
[0.6.1]: https://github.com/OpenBEL/openbel-api/compare/0.6.0...0.6.1
|
|
70
75
|
[0.6.0]: https://github.com/OpenBEL/openbel-api/compare/0.5.1...0.6.0
|
|
71
76
|
[0.5.1]: https://github.com/OpenBEL/openbel-api/compare/0.5.0...0.5.1
|
|
@@ -79,3 +84,4 @@ Datasets are stored with a URI computed from the scheme and host that is serving
|
|
|
79
84
|
[95]: https://github.com/OpenBEL/openbel-api/issues/95
|
|
80
85
|
[99]: https://github.com/OpenBEL/openbel-api/issues/99
|
|
81
86
|
[102]: https://github.com/OpenBEL/openbel-api/issues/102
|
|
87
|
+
[105]: https://github.com/OpenBEL/openbel-api/issues/105
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.2
|
|
@@ -30,18 +30,16 @@ module OpenBEL
|
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
if token.nil?
|
|
33
|
-
raise '
|
|
33
|
+
raise 'malformed authorization cookie'
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
if not auth_hdr.nil?
|
|
38
38
|
tokens = auth_hdr.split('Bearer ')
|
|
39
|
-
if tokens.size
|
|
40
|
-
|
|
41
|
-
end
|
|
42
|
-
if token.nil?
|
|
43
|
-
raise 'missing authorization header'
|
|
39
|
+
if tokens.size != 2
|
|
40
|
+
raise 'malformed authorization header'
|
|
44
41
|
end
|
|
42
|
+
token = tokens[1]
|
|
45
43
|
end
|
|
46
44
|
|
|
47
45
|
secret = OpenBEL::Settings[:auth][:secret]
|
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.6.
|
|
4
|
+
version: 0.6.2
|
|
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: 2016-03-
|
|
13
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|