carterdte_smtp_filter 0.0.5.2 → 0.0.6

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: 75135f1d41b92543a14cf53230cf50688147251c
4
- data.tar.gz: c2d6a52db5781684792a8b1d2e8c0c005c38f2d3
3
+ metadata.gz: 3005aa1651c3cc6be6b5c82971cb227f4f45f847
4
+ data.tar.gz: ca3f3e2fa003714cb06bf4a56c38781e355ee3ba
5
5
  SHA512:
6
- metadata.gz: 005f6e5a299b58920eca2932b73fb7c251f851eb4d22fee8cc121cd1c33e7f5c19a71672642f65f64216614c5022cbfdc958e29605a18ec7a8460b8b17212eff
7
- data.tar.gz: bec7e0bf64b1c9185fa27a4e3ae88f21299835d6eef7eb15ed9666c578507fab4a709ff145bf9782b7ca388ac0e2487fb27f64623d35890b6a90c126b8b78aac
6
+ metadata.gz: 7ed9b5a34693d4f46264643c356b344ceb0b8582aa85f067b2c0758ba67a056a220834d9e847d47e547814e89858c418b40a03ac0c1f373831ded90c3727e784
7
+ data.tar.gz: 26094512b674bb1ca05a1319df5f5c705abcd8b2b1fbe87143cf99b555aeaf7db15281dc9f67f7bfcc02fc042e3df12d6725b087bea3413e2cf1e12193c766f0
@@ -55,6 +55,8 @@ module CarterdteSmtpFilter
55
55
  cc: @email.cc,
56
56
  sent_date: @email.date.to_s,
57
57
  return_qid: @return_qid,
58
+ rut_receptor: @dte.rut_receptor,
59
+ rut_emisor: @dte.rut_emisor,
58
60
  dte_attributes: JSON.parse(@dte.to_json)
59
61
  })
60
62
  end
@@ -1,3 +1,3 @@
1
1
  module CarterdteSmtpFilter
2
- VERSION = "0.0.5.2"
2
+ VERSION = "0.0.6"
3
3
  end
data/test/test_message.rb CHANGED
@@ -47,6 +47,8 @@ class TestMessage < Minitest::Test
47
47
  assert_equal(message.email.from.first, json["message"]["from"])
48
48
  assert_equal(message.email.date.to_s, json["message"]["sent_date"])
49
49
  assert_equal("96529310-8", json["message"]["dte_attributes"]["rut_emisor"])
50
+ assert_equal("96529310-8", json["message"]["rut_emisor"])
51
+ assert(json["message"]["rut_receptor"], "No tiene receptor")
50
52
  assert(json["message"]["qid"])
51
53
  end
52
54
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carterdte_smtp_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.2
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Bruna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-02 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail