brillo 1.2.1 → 1.2.2

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: 5710cd9cd91c654d2b41c4ec73f25fb50e06a758
4
- data.tar.gz: a3f1f0d872e3699340df7e52cdedd9de990dcb77
3
+ metadata.gz: dca2fe9bf5bd40152028f30723ec28bf20b277b6
4
+ data.tar.gz: b3fd67ef708fdeac5f980889fe40d8f46b618bb0
5
5
  SHA512:
6
- metadata.gz: e774ee9d5a391f339d5f4a0021d394e301b22e1b2da42f325da2323a779cbf260c9b98e6c42f86a1256ebaeb23663756047306529914d60cc954f9ad09f15970
7
- data.tar.gz: 81c62a48d76e87133c69d94c7183f311ef520556e2a33c98ffbc341492041e897f076ba6509d091b2201bc0aef7ac3321ba744bd961933d8f9723942b4324d00
6
+ metadata.gz: 9288c13a235a8e14569e19a5e9e4949675c164a60c926c7b5da381870893d781f2d7c4c9c477ca7d3d96d1632fae224cc6dc20004955f66bec234683ba663d49
7
+ data.tar.gz: a5b3663b86b43f5a74843e8d7018cb1ba293b1913b21e7cd41502e46c6b8316e52c0be0b44379b32a73b225d878d5d6508eb607bf2ce7cee0b4f8d5482a5eebd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.2.2
4
+ Fixed initializer. `Brillo.configure` pre-initialization will now work.
5
+
6
+ Moved verification of config to post app initialization.
7
+
3
8
  ## 1.2.1
4
9
  Support S3 config [via your environment](https://github.com/aws/aws-sdk-ruby#configuration). To configure via the environment, just leave your `Brillo.config.transfer_config.{access_key_id,secret_access_key}` blank.
5
10
 
data/lib/brillo/errors.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Brillo
2
- ConfigParseError = Class.new(StandardError)
3
- CredentialsError = Class.new(StandardError)
2
+ ConfigParseError = Class.new(StandardError)
3
+ CredentialsError = Class.new(StandardError)
4
4
  end
@@ -7,6 +7,15 @@ if defined? Rails
7
7
  generators do
8
8
  require "generators/brillo.rb"
9
9
  end
10
+ config.after_initialize do
11
+ Brillo.configure do |config|
12
+ begin
13
+ config.verify!
14
+ rescue ConfigParseError => e
15
+ puts "Brillo config contains errors: #{e}"
16
+ end
17
+ end
18
+ end
10
19
  end
11
20
  end
12
21
  end
@@ -1,3 +1,3 @@
1
1
  module Brillo
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
data/lib/brillo.rb CHANGED
@@ -25,11 +25,6 @@ require 'polo'
25
25
  module Brillo
26
26
  def self.configure
27
27
  yield config
28
- begin
29
- config.verify!
30
- rescue ConfigParseError => e
31
- puts "Brillo config contains errors: #{e}"
32
- end
33
28
  end
34
29
 
35
30
  def self.scrub!(logger: ::Logger.new(STDOUT))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brillo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Bessey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.6.6
228
+ rubygems_version: 2.5.2
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Rails database scrubber and loader, great for seeding your dev db with real