mail_room 0.6.0 → 0.6.1

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: 7e839c7e9c2857c75d399aca74fe627438432c17
4
- data.tar.gz: 97d5cbe394fbd50ee36814785ce03af51381c1ae
3
+ metadata.gz: c956827ee8a391612edf608e8cfcca307fd40bf6
4
+ data.tar.gz: 03d42253cf5fa4f3d9902cacb7ed3a1e45e414d3
5
5
  SHA512:
6
- metadata.gz: 5dfcca4fe8a7323d5207b232a48351bb78cd4df53f8301aa719c198186d08ceb09ca3ce7dd3178af2d80f513f330a52488ba9bad5a6aa079aa9a0b19f649e002
7
- data.tar.gz: e2ec188a14291548bc1891459e3ce18066109daa8566d584714d26fc2be3bb3fc17a54b17e1925c5758d785d1daa4e8292735a7db17cba04f045c6801b035a02
6
+ metadata.gz: c4316883fc6dee362bef9dfaefb7f88d70fe0641bdf35045b76c27d775b5bfa267cb858dc8593eb2d6488d0251a773e00e0636e7af86650a5bc65dabc07d3347
7
+ data.tar.gz: 617090d049ac9c620909af604839c6ce9f71940ebcce43912d35875ac93fdad1b680137a4a702271d2b62ad19f9315d48b1ed16f6907b218278fae839f403d4b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## mail_room 0.6.1 ##
2
+
3
+ * ERB parsing of configuration yml file to enable using ENV variables
4
+
5
+ *Douwe Maan <@DouweM>*
6
+
1
7
  ## mail_room 0.6.0 ##
2
8
 
3
9
  * Add redis Arbitration to reduce multiple deliveries of the same message when running multiple MailRoom instances on the same inbox
@@ -1,3 +1,5 @@
1
+ require "erb"
2
+
1
3
  module MailRoom
2
4
  # Wraps configuration for a set of individual mailboxes with global config
3
5
  # @author Tony Pitale
@@ -11,7 +13,7 @@ module MailRoom
11
13
 
12
14
  if options.has_key?(:config_path)
13
15
  begin
14
- config_file = YAML.load_file(options[:config_path])
16
+ config_file = YAML.load(ERB.new(File.read(options[:config_path])).result)
15
17
 
16
18
  set_mailboxes(config_file[:mailboxes])
17
19
  rescue => e
@@ -1,4 +1,4 @@
1
1
  module MailRoom
2
2
  # Current version of MailRoom gem
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_room
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Pitale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-09 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake