mail_room 0.9.0 → 0.9.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: ee519fad16a2cfffc77987222062d15f59da6081
4
- data.tar.gz: e403cac3cc18fe5a258d892dc69481535e01c4b6
3
+ metadata.gz: a31789d70291c209682a4b9ce5af4f5fa894cfba
4
+ data.tar.gz: 56f2f340095b95a616bac7a22a1786df517eb688
5
5
  SHA512:
6
- metadata.gz: 3b001def60c902e4efab7b4708c655e6c07d2d1b4b94cd1d0a0703c91a987c05ba218834a9e711f377a2c38c524134de73a0b184d3e676b188cd077a1a3cf94c
7
- data.tar.gz: 8df7ff1eb78ec3eb6f19d976c5b6fc3a884194daede0af990a4f2c74b2efcdd04b6c8dfd7f9dd2f8e7ee3fd156696ab5104062abfa6ea1f4d640d2cc2a9f7a53
6
+ metadata.gz: 67fff02a10229d437653d5e02a015fed44d3a184c7f5cc5742cdb08b0c30043b03027eedf1d6b8c36ffca6350eefb143a5a34548f3f2d8998468722c50d7c2b6
7
+ data.tar.gz: 696b3b95f5f96fb9a987c75e5cc169c9a346cbf3c9f392777c6fca5691a53045d96514123372c1f58f6767e2734ad442618a7ffc3488864c3b72828ef1c2b3d5
@@ -1,3 +1,9 @@
1
+ ## mail_room 0.9.1 ##
2
+
3
+ * __FILE__ support in yml ERb config - PR#80
4
+
5
+ *Gabriel Mazetto <@brodock>*
6
+
1
7
  ## mail_room 0.9.0 ##
2
8
 
3
9
  * Redis Sentinel configuration support - PR#79
@@ -13,7 +13,9 @@ module MailRoom
13
13
 
14
14
  if options.has_key?(:config_path)
15
15
  begin
16
- config_file = YAML.load(ERB.new(File.read(options[:config_path])).result)
16
+ erb = ERB.new(File.read(options[:config_path]))
17
+ erb.filename = options[:config_path]
18
+ config_file = YAML.load(erb.result)
17
19
 
18
20
  set_mailboxes(config_file[:mailboxes])
19
21
  rescue => e
@@ -23,7 +25,7 @@ module MailRoom
23
25
  end
24
26
 
25
27
  # Builds individual mailboxes from YAML configuration
26
- #
28
+ #
27
29
  # @param mailboxes_config
28
30
  def set_mailboxes(mailboxes_config)
29
31
  mailboxes_config.each do |attributes|
@@ -1,4 +1,4 @@
1
1
  module MailRoom
2
2
  # Current version of MailRoom gem
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.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.9.0
4
+ version: 0.9.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: 2016-10-25 00:00:00.000000000 Z
11
+ date: 2017-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  version: '0'
251
251
  requirements: []
252
252
  rubyforge_project:
253
- rubygems_version: 2.4.5
253
+ rubygems_version: 2.4.5.1
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: mail_room will proxy email (gmail) from IMAP to a callback URL, logger, or