us-mail-client 0.0.5.alpha → 0.0.6.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/settings.yml +18 -0
- data/lib/union_station/clients/default_mailer.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2faabaf164a9a064202001a036ed312e58e78593
|
4
|
+
data.tar.gz: 7c6540b29f2a9028ec04061116838cd561175efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e700cdd4f46c9754f13f3b3d06c87a66c22044dcc4a14c076d9f2c8cbb9669d862687c292f228a49f6152f81dbfd04b077cfdf98316c0791811f14a149a7cdd9
|
7
|
+
data.tar.gz: e73cd89c7878d43563ec478a30449e8fa3112271bc835825e777d4a5d9aa4cdd070fd4b6a62120f30d0bf84f21177ecb345c161909e988700098761e34572644
|
data/config/settings.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
default_settings: &default_settings
|
2
|
+
email:
|
3
|
+
mailer_host: http://mailer:8205
|
4
|
+
|
5
|
+
development:
|
6
|
+
<<: *default_settings
|
7
|
+
email:
|
8
|
+
delivery_method: test
|
9
|
+
mailer_host: http://mailer:8205
|
10
|
+
|
11
|
+
test:
|
12
|
+
<<: *default_settings
|
13
|
+
email:
|
14
|
+
delivery_method: test
|
15
|
+
mailer_host: http://mailer:8205
|
16
|
+
|
17
|
+
production:
|
18
|
+
<<: *default_settings
|
@@ -13,7 +13,7 @@ module UnionStation
|
|
13
13
|
|
14
14
|
def deliver(message)
|
15
15
|
http = Net::HTTP.new(@uri.host, @uri.port)
|
16
|
-
req = Net::HTTP::Post.new(@uri
|
16
|
+
req = Net::HTTP::Post.new(@uri)
|
17
17
|
req.content_type = "application/x-www-form-urlencoded"
|
18
18
|
req.body = message.to_hash.to_query
|
19
19
|
response = http.request(req)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: us-mail-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phusion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -32,6 +32,7 @@ extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
34
|
- README.md
|
35
|
+
- config/settings.yml
|
35
36
|
- config/settings.yml.example
|
36
37
|
- lib/union_station/clients/default_mailer.rb
|
37
38
|
- lib/union_station/clients/test_mailer.rb
|
@@ -60,9 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
61
|
version: 1.3.1
|
61
62
|
requirements: []
|
62
63
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
64
|
+
rubygems_version: 2.4.6
|
64
65
|
signing_key:
|
65
66
|
specification_version: 4
|
66
67
|
summary: Mail client of the Union Station system.
|
67
68
|
test_files: []
|
68
|
-
has_rdoc:
|