figaro 1.1.0 → 1.1.1

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: af9b66074369101f09ce3e4e4ee8161c4354b843
4
- data.tar.gz: e1d0f5dece186075d18e12984802b88bd32076b0
3
+ metadata.gz: a4b16b7aabf0f45581b9e38bbc91143a7754b53c
4
+ data.tar.gz: ac3ebd390b6558897caedf70588023c2f32d568d
5
5
  SHA512:
6
- metadata.gz: 6331ab10b4b58b4ea3533997812fec8a1e8ba668a1dd12002930a2ec7aec08f52664222a4560d81215a2934638f473273577c8566fde41861e6006f18bd06c27
7
- data.tar.gz: 9e50596b47b1cc65102dc23a6878bd1c678d968942a36b15b7535d08f459a01cc13a425a287269d9a7e1bfd44b86b1f7aaa00cbfba28aa7d3ea8053850df8303
6
+ metadata.gz: d98407b51af7e1a3754c0e9c8508e022b92515b11112cc1d0632e446e7747386e968b52fea202b6ee34fbea3f4fa7cb6c61687eedf51a23d924cdb6bffe9c88b
7
+ data.tar.gz: 724b042e35ecceff47dccf0246cd73931dfc9fa663eda27f59e33205d82fabb8d674b34bc3ffb85a74630d8aee887420247111f8f7daa07d6d9edd2b2579d05e
@@ -1,3 +1,12 @@
1
+ ## 1.1.1 / 2015-04-30
2
+
3
+ * [BUGFIX] Fix crash when environment-specific configuration is `nil`
4
+
5
+ ## 1.1.0 / 2015-01-27
6
+
7
+ * [FEATURE] Support --remote when setting Heroku configuration
8
+ * [ENHANCEMENT] Test against Rails 4.2 (stable)
9
+
1
10
  ## 1.0.0 / 2014-09-17
2
11
 
3
12
  * [BUGFIX] Make calls to Heroku with a clean Bundler environment
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "figaro"
5
- gem.version = "1.1.0"
5
+ gem.version = "1.1.1"
6
6
 
7
7
  gem.author = "Steve Richert"
8
8
  gem.email = "steve.richert@gmail.com"
@@ -65,7 +65,7 @@ module Figaro
65
65
  end
66
66
 
67
67
  def environment_configuration
68
- raw_configuration.fetch(environment) { {} }
68
+ raw_configuration[environment] || {}
69
69
  end
70
70
 
71
71
  def set(key, value)
@@ -155,6 +155,14 @@ YAML
155
155
  expect(application.configuration).to eq("foo" => "BAR")
156
156
  end
157
157
 
158
+ it "handles an empty environment block" do
159
+ application = Application.new(path: yaml_to_path("development:"))
160
+
161
+ expect {
162
+ application.configuration
163
+ }.not_to raise_error
164
+ end
165
+
158
166
  it "follows a changing default path" do
159
167
  path_1 = yaml_to_path("foo: bar")
160
168
  path_2 = yaml_to_path("foo: baz")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figaro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.5
126
+ rubygems_version: 2.4.6
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Simple Rails app configuration