popper 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/popper/action/git.rb +1 -1
- data/lib/popper/config.rb +1 -1
- data/lib/popper/mail_account.rb +7 -4
- data/lib/popper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72ac0486fff5d4f83876ef9886d1c28995406a2b
|
4
|
+
data.tar.gz: 74fb566a42ced8e653ec1fb4ba28351a703a51aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b38a249533f6104b875bf86abdcbaa9df13c890bc49fb30adc1048e33e28ba381d5c0fb45cdeb2efed7df4ee95831d06a3ba842c4af30a88e5730f5ccd05e2b
|
7
|
+
data.tar.gz: 18fc4142645cc586c61f9fa364159a03baa93423b96ffc88c9c5b734224607c4af96e73ee1711601131ecaeb625fcfa118b532819b4ec885b31ca8dd1211e7ca
|
data/lib/popper/action/git.rb
CHANGED
data/lib/popper/config.rb
CHANGED
@@ -63,7 +63,7 @@ module Popper
|
|
63
63
|
hash = self.send("global_default_#{name}")
|
64
64
|
hash = hash.deep_merge(self.send("account_default_#{name}").to_h) if self.send("account_default_#{name}")
|
65
65
|
hash = hash.deep_merge(self.rules.send(rule).send(name).to_h) if rules.send(rule).respond_to?(name.to_sym)
|
66
|
-
AccountAttributes.new(hash)
|
66
|
+
AccountAttributes.new(Hash[hash.map {|k,v| [k.to_s.gsub(/^body$/, "utf_body").to_sym, v]}])
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
data/lib/popper/mail_account.rb
CHANGED
@@ -99,12 +99,15 @@ class EncodeMail < Mail::Message
|
|
99
99
|
Kconv.toutf8(self[:Subject].value) if self[:Subject]
|
100
100
|
end
|
101
101
|
|
102
|
-
def
|
102
|
+
def utf_body
|
103
103
|
if multipart?
|
104
|
-
|
105
|
-
|
104
|
+
if text_part
|
105
|
+
text_part.decoded.encode("UTF-8", charset)
|
106
|
+
elsif html_part
|
107
|
+
html_part.decoded.encode("UTF-8", charset)
|
108
|
+
end
|
106
109
|
else
|
107
|
-
|
110
|
+
body.decoded.encode("UTF-8", charset)
|
108
111
|
end
|
109
112
|
end
|
110
113
|
end
|
data/lib/popper/version.rb
CHANGED