tmail_es 1.2.7.2 → 1.2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00779581c5aee5e1f3e5235785d30323b5a54f71
4
- data.tar.gz: ff1f7eb91b147445055e72dd5187a9eb9e6cd91c
3
+ metadata.gz: abe2c8391196aa00402d2d4e7d13c9788aa9d561
4
+ data.tar.gz: 910dbcb600f769375c7a90cd00961d20f7f1fe44
5
5
  SHA512:
6
- metadata.gz: 19d50035d8ad768c78725c63dff6030dffb1ca1a25fbedb62300749d048f78aa529cf6990d15706ba5606670c1c933f7c3ff019e4d3b771dc70622777a093422
7
- data.tar.gz: efdd3a738745e21200ca6a8e8c0fac8aeb3057d573e36f4581b0cad3747f27585939256e386d0432ce62724d3b63eb2a069aa1c7154b1b6dc4b693473860bbc3
6
+ metadata.gz: 959d459378e836ca430a5d60055af495946c15e74785f79ab18f05070d1e199cce97d75ced3cc30522697444ab270c707b6a82f520cef544920ed3c5d46cdf6f
7
+ data.tar.gz: f0d0a820926bc6286586cc3b805f7a52bc20de9b0937bd398224eac8023fe6ab79ce2e1d0cb5331dcf97f70ff010ac7e193ae3d65934e8103a33840646277cfd
data/lib/tmail/utils.rb CHANGED
@@ -114,10 +114,10 @@ module TMail
114
114
  lwsp = %Q| \t\r\n|
115
115
  control = %Q|\x00-\x1f\x7f-\xff|
116
116
 
117
- CONTROL_CHAR = /[#{control}]/n
118
- ATOM_UNSAFE = /[#{Regexp.quote aspecial}#{control}#{lwsp}]/n
119
- PHRASE_UNSAFE = /[#{Regexp.quote aspecial}#{control}]/n
120
- TOKEN_UNSAFE = /[#{Regexp.quote tspecial}#{control}#{lwsp}]/n
117
+ CONTROL_CHAR = /[#\{control\}]/n
118
+ ATOM_UNSAFE = /[#\{Regexp.quote aspecial\}#\{control\}#\{lwsp\}]/n
119
+ PHRASE_UNSAFE = /[#\{Regexp.quote aspecial\}#\{control\}]/n
120
+ TOKEN_UNSAFE = /[#\{Regexp.quote tspecial\}#\{control\}#\{lwsp\}]/n
121
121
 
122
122
  # Returns true if the string supplied is free from characters not allowed as an ATOM
123
123
  def atom_safe?( str )
@@ -36,7 +36,7 @@ module CharDet
36
36
  class UniversalDetector
37
37
  attr_accessor :result
38
38
  def initialize
39
- @_highBitDetector = /[\x80-\xFF]/
39
+ @_highBitDetector = /[\\x80-\\xFF]/
40
40
  @_escDetector = /(\033|\~\{)/
41
41
  @_mEscCharSetProber = nil
42
42
  @_mCharSetProbers = []
data/tmail_es.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "tmail_es"
5
- s.version = "1.2.7.2"
5
+ s.version = "1.2.7.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mikel Lindsaar <raasdnil AT gmail.com>"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmail_es
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7.2
4
+ version: 1.2.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikel Lindsaar <raasdnil AT gmail.com>