ecm_contact2 5.1.2 → 5.1.3

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: a4d2e30129cfc6af3e0932b4474eb2811550ceda
4
- data.tar.gz: 625eb7cedfe459a537cfdebc8650857c61038e33
3
+ metadata.gz: 58b84fc812068ad7ae249c62b86b7356995ab7f9
4
+ data.tar.gz: 96dd645cb37740ad59cb19e6e203d383e76b8ed3
5
5
  SHA512:
6
- metadata.gz: b302c2ce7e89b26ca459c6f9462e9cff95fb87e07c880e17ed52d344c1066cc7deb7d38ca4fcedbb8cbb48e7fb39e2bb42f764099d98f9c378431d51800ef3c8
7
- data.tar.gz: d6881e0fa85c31fe654faed83ac79743f0ba1ea98b07920b3344c8da321f87dae889ff2894e8e3954ae6249248725421d37f8d84d20684799b62de603b6a108e
6
+ metadata.gz: ed8f94a45b9703ef41918079f69eb6c51c60a46e9ba570bc049151d03d1d249aab78e6da7e468d14caf548dcf6564a8b0f3426bfb3d9c02951cf51f8d44f9a22
7
+ data.tar.gz: 231219713cdee4f6e106e593757481a012ba4f706ea56cb3b4dde33b06ed305ce2b1fb1bedd568a2c7a9c9121345cb5b685d7d2487238973c059caaf1e8bc39c
data/README.md CHANGED
@@ -21,6 +21,10 @@ Or install it yourself as:
21
21
  $ gem install ecm_contact
22
22
  ```
23
23
 
24
+ ## Configuration
25
+
26
+ You can use the environment variable ECM_CONTACT_RECIPIENTS to override the recipients in config/initializers/ecm_contact.rb
27
+
24
28
  ## Contributing
25
29
  Contribution directions go here.
26
30
 
@@ -25,7 +25,7 @@ module Ecm::Contact
25
25
  end
26
26
 
27
27
  def notification_recipients
28
- Ecm::Contact::Configuration.recipients[Rails.env]
28
+ ENV.fetch('ECM_CONTACT_RECIPIENTS') { Ecm::Contact::Configuration.recipients[Rails.env] }
29
29
  end
30
30
  end
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Contact
3
- VERSION = '5.1.2'.freeze
3
+ VERSION = '5.1.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_contact2
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.2
4
+ version: 5.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-10 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  requirements: []
328
328
  rubyforge_project:
329
- rubygems_version: 2.6.11
329
+ rubygems_version: 2.5.1
330
330
  signing_key:
331
331
  specification_version: 4
332
332
  summary: Ecm Contact Module.