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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52fd76562cdf622c0113c22c6e37727e91ece93f
4
- data.tar.gz: 6beff43f5aa065c5f9540b029c87ecb94dc18802
3
+ metadata.gz: d718168f186ebd4841de2736a6548d4d2c49171e
4
+ data.tar.gz: e7beede8ef875b1746fae38d3f18e172894216a0
5
5
  SHA512:
6
- metadata.gz: 828eaa47a1d2ce425a33b6a8a6228299099aad016bf6ed0e9a085ebfb4ecfd2a03a122b6d37e9763e06da4465fe8ca3be4581ce3a4221e99ef74122d3e022d81
7
- data.tar.gz: 0d637576e70b3b2ed35e9c31a00f1bea1d21a66ed1f9049d5c911aa458e5905495399337d87637472470a7e67ef22906eb62cea03896dc4e10102f753f9e72e7
6
+ metadata.gz: ce723ba4288914e76104028b527b8f8dcd6138301a89eebad98986650173ce397d8a35ff615eb425db4c3e78eb41ad7145beda0f7c1d9e778a7e8fde1224faea
7
+ data.tar.gz: e7b39b5556d545c7ffdd5f0998939060313797221583c7a9260148ccb1dff96346bc1a6349cb9f480e8368680d0fc1ae309454c005edb522827c184fdc736b10
@@ -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'],
@@ -1,3 +1,3 @@
1
1
  module Bowtie
2
- VERSION = '1.0.14'
2
+ VERSION = '1.0.15'
3
3
  end
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.14
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-09-28 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll