sendcloud-mailer 0.1.1 → 0.1.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: 63d2c522c2d3c92ea6088c10e05900b256345434
4
- data.tar.gz: 610da6bd64f69c570f2ba3c6438ef036eb21428f
3
+ metadata.gz: 014e4a0ba58b96091774e0ec629f6d4a372659ce
4
+ data.tar.gz: 552cd74b98e3682dbe775b10e56504845bc86757
5
5
  SHA512:
6
- metadata.gz: f154355b8c697a7b0ed239e98ab952745677b6e2036354e5f5948a92c6330d98032208e2da2bf466c5ccd2894024dd9c204a141a95e2da4a363b8062f3f107bd
7
- data.tar.gz: 3636ffc67cca86978bec151f73e601eed3eb3c121bf5672bdcc4dabde319c81d907e61b28cc4b917d8a62b64a2050387503179264ae3ec3e6ad01b6ca057f8fd
6
+ metadata.gz: 2ac0610941d92a4f2b689fe4b9764b6def7afcb3ec42c2bbdc3bff470a66f0e6b6852661a513e7281abd59cbe13f9e995ff07b4af8a3eda31f01d7c1dc9f9045
7
+ data.tar.gz: 38d30942f6ac169db04c439e8500c58e226ed361059f787af0afca2fcb70be7db69c37eaf5cdb28c349cbf097707b76a70769b5a8d478920a8d519e8ed2777f4
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
3
+ - 2.3.0
4
4
  before_install: gem install bundler -v 1.10.6
5
5
  branches:
6
6
  only:
@@ -1,3 +1,7 @@
1
+ # v0.1.2 / 2016-08-06
2
+
3
+ Added label id.
4
+
1
5
  # v0.1.1 / 2016-03-20
2
6
 
3
7
  Release project
@@ -1,3 +1,4 @@
1
+ require 'active_support/rescuable'
1
2
  require "action_mailer"
2
3
  require "sendcloud-mailer/version"
3
4
  require "sendcloud-mailer/base"
@@ -21,7 +21,8 @@ module SendcloudMailer
21
21
  :subject => mail.subject,
22
22
  :html => html,
23
23
  :plain => plain,
24
- :attachments => attachments
24
+ :attachments => attachments,
25
+ :labelId => label_id
25
26
  }
26
27
  params.delete_if { |k, v| v.nil? }
27
28
 
@@ -82,5 +83,9 @@ module SendcloudMailer
82
83
  return @file
83
84
  end
84
85
  end
86
+
87
+ def label_id
88
+ @mail.header.fields.find { |f| f.name == 'label-id' }.try :value
89
+ end
85
90
  end
86
91
  end
@@ -1,3 +1,3 @@
1
1
  module SendcloudMailer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendcloud-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chen, Yi-Cyuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-20 00:00:00.000000000 Z
11
+ date: 2016-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer