story_branch 0.2.10 → 0.2.11

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/story_branch.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1177647df695fb3f6484115ac9e97d45aea9a3df
4
- data.tar.gz: 1cafb5c066769b0157314e08262be0affef543ab
3
+ metadata.gz: 87dd3ed376746ad1ef5041b8163ca121b6c0e465
4
+ data.tar.gz: 76a8b44ef9a1d240c39f84c0a6f7ce8cbca7b561
5
5
  SHA512:
6
- metadata.gz: 7194737e8a67fa453f6a025fd56c8628b2e75ec81de5c55e3a9746c2bdaaa983e965bea7571133d267ecfc7cfc9871f4ecc32453c49ff9b25ee84e2205fc2a42
7
- data.tar.gz: 2c5d397bdf1c4184cd7317abd17d2078fac9826b2f7d58ba9f89f9695b3b49dbef75b6359692c490388932a05f23793e207d9ccae3f378cef84f9641b94fe7e1
6
+ metadata.gz: a20f1ef3bb406a75c1c590765ce45802a9ce29adec86366132fcd69e29950c77110f1b762126c8fbca98751a201fad549535ceb5acfcef8e776490148e799b0d
7
+ data.tar.gz: 0af67bc5bc79e81e16b206ef799b643181aaea897797cf2e93bd96b097bfb3392c586f692f37789b8469c591a1762f3cfe73aa480338801a3d84b35cf88e25e0
data/lib/story_branch.rb CHANGED
@@ -203,8 +203,10 @@ module StoryBranch
203
203
 
204
204
  def config_value key, env
205
205
  PIVOTAL_CONFIG_FILES.each do |config_file|
206
- pivotal_info = YAML.load_file config_file
207
- return pivotal_info[key] if pivotal_info[key]
206
+ if File.exists? config_file
207
+ pivotal_info = YAML.load_file config_file
208
+ return pivotal_info[key] if pivotal_info[key]
209
+ end
208
210
  end
209
211
  value ||= env_required env
210
212
  value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: story_branch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Milkins
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-03-08 00:00:00.000000000 Z
15
+ date: 2016-04-03 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: blanket_wrapper