bowtie-io 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bowtie/errors.rb +1 -1
- data/lib/bowtie/middleware/policy_check.rb +3 -1
- data/lib/bowtie/version.rb +1 -1
- 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: d718168f186ebd4841de2736a6548d4d2c49171e
|
4
|
+
data.tar.gz: e7beede8ef875b1746fae38d3f18e172894216a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce723ba4288914e76104028b527b8f8dcd6138301a89eebad98986650173ce397d8a35ff615eb425db4c3e78eb41ad7145beda0f7c1d9e778a7e8fde1224faea
|
7
|
+
data.tar.gz: e7b39b5556d545c7ffdd5f0998939060313797221583c7a9260148ccb1dff96346bc1a6349cb9f480e8368680d0fc1ae309454c005edb522827c184fdc736b10
|
data/lib/bowtie/errors.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Bowtie
|
2
2
|
class ProjectSecretKeyMissing < RuntimeError
|
3
|
-
def initialize(msg='You need "project": { "secret_key": "XYZ" } defined in `settings.json`')
|
3
|
+
def initialize(msg='You need "project": { "environments": { "development": { "secret_key": "XYZ" } } } defined in `settings.json`')
|
4
4
|
super
|
5
5
|
end
|
6
6
|
end
|
@@ -261,7 +261,9 @@ module Bowtie::Middleware
|
|
261
261
|
end
|
262
262
|
|
263
263
|
def user_profile_endpoint_url(user_id, scope)
|
264
|
-
secret_key = Bowtie::Settings['project']['secret_key']
|
264
|
+
secret_key = Bowtie::Settings['project']['secret_key'] rescue nil
|
265
|
+
secret_key ||= Bowtie::Settings['project']['environments']['development']['secret_key'] rescue nil
|
266
|
+
|
265
267
|
raise SecretKeyMissingError.new if secret_key.nil?
|
266
268
|
|
267
269
|
URI::HTTPS.build(host: Bowtie::Settings['project']['fqdn']['development'],
|
data/lib/bowtie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowtie-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Kassemi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|