replyr 0.0.6 → 0.0.7

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: 35b92ed35fc6ede67a620af6ac9e1636e60b8eb4
4
- data.tar.gz: d5287cec3d40688f291317793d6d1abc0479f70f
3
+ metadata.gz: cc30e8d36b31046ac18c5ec4447a1ac051a512b2
4
+ data.tar.gz: ed95db5d8aa64a306fdaad7818dd176ed3393402
5
5
  SHA512:
6
- metadata.gz: 1b54aa7af0f37698a5170e2de6f5dab1b931c98e1756414a7710c453a60cd51ded81483073e71c38d72cb286c9eeaed88868f23849dcb9306ed3d5e42b9f224b
7
- data.tar.gz: 65b7cc9d3ed1ef1451c2ff0556d29b4eb7d2c93a99eb1493d68e9be7fd0c7210fe2bf42ade31e90cc0b5a796f11b24991885021d24f216f94be2638742b9c4de
6
+ metadata.gz: ab02078a8475a15365ca3add436a3681ce988903eb718eb9eb9059ea424eae52d3a8071ac6b978cb161aa5397c507e09b421a18c0b85cade8c351f6d00804c46
7
+ data.tar.gz: 49ef7f5734651590f4c6692bd9a046d2f85c97307006584454426c59127869b0ac64ab8c9b76ff4a0911ba59441a0f9e9ce0a25ce6988010837da633c1d4c078
@@ -1,3 +1,7 @@
1
+ ## v0.0.7
2
+
3
+ - Process the stripped body (signature removed)
4
+
1
5
  ## v0.0.6
2
6
 
3
7
  - Fix bug in email_reply and add more tests
@@ -38,7 +38,7 @@ module Replyr
38
38
  def process
39
39
  if is_reply_email?
40
40
  if reply_address = ReplyAddress.new_from_address(to)
41
- reply_address.model.handle_reply(reply_address.user, body, files)
41
+ reply_address.model.handle_reply(reply_address.user, stripped_body, files)
42
42
  true
43
43
  else
44
44
  false
@@ -1,3 +1,3 @@
1
1
  module Replyr
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
Binary file
@@ -20705,3 +20705,297 @@ Reply email address invalid.
20705
20705
  Reply email address invalid.
20706
20706
   (0.1ms) begin transaction
20707
20707
   (0.0ms) rollback transaction
20708
+ Connecting to database specified by database.yml
20709
+  (3.0ms) DROP TABLE IF EXISTS users
20710
+  (1.2ms) CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
20711
+  (0.9ms) DROP TABLE IF EXISTS comments
20712
+  (0.9ms) CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
20713
+  (1.2ms) DROP TABLE IF EXISTS users
20714
+  (0.9ms) CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
20715
+  (1.1ms) DROP TABLE IF EXISTS comments
20716
+  (0.9ms) CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
20717
+  (0.1ms) begin transaction
20718
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20719
+  (1.0ms) commit transaction
20720
+  (0.0ms) begin transaction
20721
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20722
+  (1.0ms) commit transaction
20723
+  (0.1ms) begin transaction
20724
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20725
+  (1.0ms) commit transaction
20726
+  (0.1ms) SELECT COUNT(*) FROM "comments"
20727
+  (0.0ms) begin transaction
20728
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", "Ein neuer Kommentar"], ["user_id", nil]]
20729
+  (0.9ms) commit transaction
20730
+  (0.1ms) SELECT COUNT(*) FROM "comments"
20731
+  (0.0ms) begin transaction
20732
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20733
+  (0.8ms) commit transaction
20734
+  (0.1ms) begin transaction
20735
+ SQL (0.4ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20736
+  (1.2ms) commit transaction
20737
+  (0.1ms) begin transaction
20738
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", 3]]
20739
+  (0.9ms) commit transaction
20740
+  (0.0ms) begin transaction
20741
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20742
+  (0.9ms) commit transaction
20743
+  (0.0ms) begin transaction
20744
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20745
+  (0.9ms) commit transaction
20746
+  (0.0ms) begin transaction
20747
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", 5]]
20748
+  (0.9ms) commit transaction
20749
+  (0.0ms) begin transaction
20750
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20751
+  (0.9ms) commit transaction
20752
+  (0.0ms) begin transaction
20753
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20754
+  (1.0ms) commit transaction
20755
+  (0.0ms) begin transaction
20756
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20757
+  (0.9ms) commit transaction
20758
+  (0.0ms) begin transaction
20759
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20760
+  (1.1ms) commit transaction
20761
+  (0.1ms) begin transaction
20762
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20763
+  (0.9ms) commit transaction
20764
+  (0.0ms) begin transaction
20765
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20766
+  (0.9ms) commit transaction
20767
+ Reply email address invalid.
20768
+  (0.0ms) begin transaction
20769
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20770
+  (0.6ms) commit transaction
20771
+  (0.1ms) begin transaction
20772
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20773
+  (1.9ms) commit transaction
20774
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "8"]]
20775
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "10"]]
20776
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "1"]]
20777
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
20778
+ Reply email address invalid.
20779
+  (0.1ms) begin transaction
20780
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20781
+  (0.8ms) commit transaction
20782
+  (0.0ms) begin transaction
20783
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20784
+  (0.7ms) commit transaction
20785
+  (0.1ms) begin transaction
20786
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20787
+  (0.6ms) commit transaction
20788
+  (0.0ms) begin transaction
20789
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20790
+  (0.9ms) commit transaction
20791
+  (0.1ms) begin transaction
20792
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20793
+  (0.9ms) commit transaction
20794
+  (0.0ms) begin transaction
20795
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20796
+  (1.0ms) commit transaction
20797
+  (0.0ms) begin transaction
20798
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20799
+  (0.9ms) commit transaction
20800
+  (0.0ms) begin transaction
20801
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20802
+  (0.9ms) commit transaction
20803
+  (0.0ms) begin transaction
20804
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20805
+  (0.9ms) commit transaction
20806
+  (0.0ms) begin transaction
20807
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20808
+  (0.9ms) commit transaction
20809
+  (0.0ms) begin transaction
20810
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20811
+  (0.9ms) commit transaction
20812
+  (0.1ms) begin transaction
20813
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20814
+  (0.9ms) commit transaction
20815
+  (0.1ms) begin transaction
20816
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20817
+  (1.1ms) commit transaction
20818
+  (0.0ms) begin transaction
20819
+ SQL (0.4ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20820
+  (0.6ms) commit transaction
20821
+  (0.0ms) begin transaction
20822
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20823
+  (1.2ms) commit transaction
20824
+  (0.0ms) begin transaction
20825
+ SQL (0.7ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20826
+  (0.9ms) commit transaction
20827
+  (0.1ms) begin transaction
20828
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20829
+  (1.0ms) commit transaction
20830
+  (0.0ms) begin transaction
20831
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20832
+  (0.9ms) commit transaction
20833
+  (0.1ms) begin transaction
20834
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20835
+  (0.8ms) commit transaction
20836
+  (0.0ms) begin transaction
20837
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20838
+  (0.9ms) commit transaction
20839
+  (0.1ms) begin transaction
20840
+ SQL (0.5ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20841
+  (0.8ms) commit transaction
20842
+  (0.1ms) begin transaction
20843
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20844
+  (1.0ms) commit transaction
20845
+  (0.2ms) SELECT COUNT(*) FROM "comments" 
20846
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "19"]]
20847
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "21"]]
20848
+  (0.1ms) begin transaction
20849
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", "Das ist wunderschön"], ["user_id", nil]]
20850
+  (1.0ms) commit transaction
20851
+  (0.1ms) SELECT COUNT(*) FROM "comments" 
20852
+ Reply email address invalid.
20853
+  (0.1ms) begin transaction
20854
+  (0.0ms) rollback transaction
20855
+ Connecting to database specified by database.yml
20856
+  (3.4ms) DROP TABLE IF EXISTS users
20857
+  (1.1ms) CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
20858
+  (0.7ms) DROP TABLE IF EXISTS comments
20859
+  (0.7ms) CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
20860
+  (1.3ms) DROP TABLE IF EXISTS users
20861
+  (1.4ms) CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)
20862
+  (0.9ms) DROP TABLE IF EXISTS comments
20863
+  (1.1ms) CREATE TABLE comments (id INTEGER PRIMARY KEY, body TEXT, user_id INTEGER)
20864
+  (0.1ms) begin transaction
20865
+ SQL (2.9ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20866
+  (0.7ms) commit transaction
20867
+  (0.0ms) begin transaction
20868
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20869
+  (0.9ms) commit transaction
20870
+  (0.1ms) begin transaction
20871
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20872
+  (1.0ms) commit transaction
20873
+  (0.1ms) SELECT COUNT(*) FROM "comments"
20874
+  (0.0ms) begin transaction
20875
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", "Ein neuer Kommentar"], ["user_id", nil]]
20876
+  (0.9ms) commit transaction
20877
+  (0.1ms) SELECT COUNT(*) FROM "comments"
20878
+  (0.0ms) begin transaction
20879
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20880
+  (1.0ms) commit transaction
20881
+  (0.0ms) begin transaction
20882
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20883
+  (1.0ms) commit transaction
20884
+  (0.1ms) begin transaction
20885
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", 3]]
20886
+  (0.8ms) commit transaction
20887
+  (0.1ms) begin transaction
20888
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20889
+  (1.0ms) commit transaction
20890
+  (0.0ms) begin transaction
20891
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20892
+  (0.8ms) commit transaction
20893
+  (0.0ms) begin transaction
20894
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", 5]]
20895
+  (1.0ms) commit transaction
20896
+  (0.0ms) begin transaction
20897
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20898
+  (0.9ms) commit transaction
20899
+  (0.0ms) begin transaction
20900
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20901
+  (0.9ms) commit transaction
20902
+  (0.0ms) begin transaction
20903
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20904
+  (0.9ms) commit transaction
20905
+  (0.0ms) begin transaction
20906
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20907
+  (0.9ms) commit transaction
20908
+  (0.1ms) begin transaction
20909
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20910
+  (0.8ms) commit transaction
20911
+  (0.0ms) begin transaction
20912
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20913
+  (0.9ms) commit transaction
20914
+ Reply email address invalid.
20915
+  (0.1ms) begin transaction
20916
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20917
+  (0.7ms) commit transaction
20918
+  (0.1ms) begin transaction
20919
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20920
+  (0.6ms) commit transaction
20921
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "8"]]
20922
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "10"]]
20923
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "1"]]
20924
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
20925
+ Reply email address invalid.
20926
+  (0.1ms) begin transaction
20927
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20928
+  (1.0ms) commit transaction
20929
+  (0.0ms) begin transaction
20930
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20931
+  (0.8ms) commit transaction
20932
+  (0.0ms) begin transaction
20933
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20934
+  (0.7ms) commit transaction
20935
+  (0.0ms) begin transaction
20936
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20937
+  (1.0ms) commit transaction
20938
+  (0.1ms) begin transaction
20939
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20940
+  (1.1ms) commit transaction
20941
+  (0.0ms) begin transaction
20942
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20943
+  (0.9ms) commit transaction
20944
+  (0.0ms) begin transaction
20945
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20946
+  (0.9ms) commit transaction
20947
+  (0.0ms) begin transaction
20948
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20949
+  (0.9ms) commit transaction
20950
+  (0.0ms) begin transaction
20951
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20952
+  (0.9ms) commit transaction
20953
+  (0.0ms) begin transaction
20954
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20955
+  (0.7ms) commit transaction
20956
+  (0.0ms) begin transaction
20957
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20958
+  (0.8ms) commit transaction
20959
+  (0.0ms) begin transaction
20960
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20961
+  (0.9ms) commit transaction
20962
+  (0.1ms) begin transaction
20963
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20964
+  (1.1ms) commit transaction
20965
+  (0.0ms) begin transaction
20966
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20967
+  (0.8ms) commit transaction
20968
+  (0.1ms) begin transaction
20969
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20970
+  (1.0ms) commit transaction
20971
+  (0.0ms) begin transaction
20972
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20973
+  (0.6ms) commit transaction
20974
+  (0.1ms) begin transaction
20975
+ SQL (0.4ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20976
+  (1.0ms) commit transaction
20977
+  (0.0ms) begin transaction
20978
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20979
+  (0.9ms) commit transaction
20980
+  (0.0ms) begin transaction
20981
+ SQL (0.2ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20982
+  (0.8ms) commit transaction
20983
+  (0.0ms) begin transaction
20984
+ SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20985
+  (1.0ms) commit transaction
20986
+ Reply email address invalid.
20987
+  (0.1ms) begin transaction
20988
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", nil], ["user_id", nil]]
20989
+  (1.0ms) commit transaction
20990
+  (0.0ms) begin transaction
20991
+ SQL (0.2ms) INSERT INTO "users" ("name") VALUES (?) [["name", nil]]
20992
+  (1.0ms) commit transaction
20993
+  (0.2ms) SELECT COUNT(*) FROM "comments" 
20994
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "19"]]
20995
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "21"]]
20996
+  (0.1ms) begin transaction
20997
+ SQL (0.3ms) INSERT INTO "comments" ("body", "user_id") VALUES (?, ?) [["body", "Das ist wunderschön"], ["user_id", nil]]
20998
+  (1.0ms) commit transaction
20999
+  (0.1ms) SELECT COUNT(*) FROM "comments" 
21000
+  (0.0ms) begin transaction
21001
+  (0.0ms) rollback transaction
@@ -0,0 +1,14 @@
1
+ Content-Type: text/plain;
2
+ charset=iso-8859-1
3
+ Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
4
+ Subject: Re: Aufgabe: Neues Todo
5
+ From: =?iso-8859-1?Q?Philipp_W=FCllner?= <wursttheke@me.com>
6
+ Date: Wed, 19 Mar 2014 07:49:15 +0100
7
+ Content-Transfer-Encoding: quoted-printable
8
+ Message-Id: <1EACD37B-1E55-482A-8EAA-E0F06E438B4C@me.com>
9
+ To: reply-t-1-b36712af6a5e7012-73-b2022a46a52075a9@example.com
10
+
11
+ Das ist wundersch=F6n=
12
+
13
+ --
14
+ Signature
@@ -17,6 +17,14 @@ describe Replyr::ReplyEmail do
17
17
  assert_equal "wursttheke@me.com", reply_email.from
18
18
  assert_equal "Das ist wunderschön", reply_email.stripped_body
19
19
  end
20
+
21
+ it 'removes signature from message object' do
22
+ mail = Mail.read('test/replyr/emails/reply_plain_signature.eml')
23
+ reply_email = Replyr::ReplyEmail.new(mail)
24
+ assert_equal "wursttheke@me.com", reply_email.from
25
+ assert_equal "Das ist wunderschön", reply_email.stripped_body
26
+ end
27
+
20
28
  end
21
29
 
22
30
  describe '#process' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: replyr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Wüllner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-22 00:00:00.000000000 Z
11
+ date: 2014-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mailman
@@ -206,6 +206,7 @@ files:
206
206
  - test/email_reply_parser/emails/new_content/email_1_2.txt
207
207
  - test/replyr/emails/reply_multipart.eml
208
208
  - test/replyr/emails/reply_plain.eml
209
+ - test/replyr/emails/reply_plain_signature.eml
209
210
  - test/replyr/emails/reply_with_attachment.eml
210
211
  - test/replyr/handle_reply_test.rb
211
212
  - test/replyr/reply_address_test.rb