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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fa47f8991f91aad490818b0c6e6a5fc8f822ecc
4
- data.tar.gz: bbd5f02dfa6c64f060181b029d138960a9ef691f
3
+ metadata.gz: 6bcf575f4340f45cbe5e89d6dac75acff1ddf359
4
+ data.tar.gz: efdf772df684ef6926fccac408fc7dff0adbdd19
5
5
  SHA512:
6
- metadata.gz: d2fe0173aad3c83200e69361bcd632ee38d19d6b52465f63678fd3385f792cfc491841bee631f4229289e43e843ac3e8e05dddec99d8a64f35508775574a390d
7
- data.tar.gz: 28c72b97ae6f3eb3381f51a4194a16b84760549a07c3bcfb31ca7c9a05bfb824f55418d5d3f9fd4017e0d63df2d119a05a27856b6cd4b192909bdfe1a5a9bf21
6
+ metadata.gz: a34194c1df9d2e44105833471dac6ab1c2c53ea1155d6e9ce6cd2015202a27c1fb38b1dbc6e81ebd369605ccea0a0892f5b26c064d8982a7735d8583db56acac
7
+ data.tar.gz: 5005874c63134c908d5da718f532e756a85daa492220b28fa20e08766292c5a1f0bb288ca7c3e8f1a6472ad6347deac3a782e743a482b3ebd5d0ee92085ba8cf
data/.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  'Nick Bargnesi',
12
12
  'William Hayes'
13
13
  ]
14
- spec.date = %q{2016-03-16}
14
+ spec.date = %q{2016-03-23}
15
15
  spec.email = %q{abargnesi@selventa.com}
16
16
  spec.files = [
17
17
  Dir.glob('app/**/*.{json,rb,ru}'),
@@ -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
1
+ 0.6.2
@@ -30,18 +30,16 @@ module OpenBEL
30
30
  end
31
31
  end
32
32
  if token.nil?
33
- raise 'missing authorization cookie'
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 == 2
40
- token = tokens[1]
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.1
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-16 00:00:00.000000000 Z
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