mms2r 3.8.1 → 3.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/History.txt +6 -0
- data/conf/mms2r_media.yml +4 -10
- data/lib/mms2r/version.rb +1 -1
- data/test/test_mms2r_media.rb +1 -0
- metadata +5 -5
data/Gemfile.lock
CHANGED
data/History.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 3.8.2 / 2012-08-21 (Seth - Pickles The Drummer's brother)
|
2
|
+
|
3
|
+
* 2 minor enhancements
|
4
|
+
* Broadened handling of generic "Sent from" footers in smart phones
|
5
|
+
* Add ability to process HTC Sensation footer
|
6
|
+
|
1
7
|
### 3.8.1 / 2012-07-22 (Calvert - Pickles The Drummer's dad)
|
2
8
|
|
3
9
|
* 1 major enhancement
|
data/conf/mms2r_media.yml
CHANGED
@@ -2,22 +2,16 @@
|
|
2
2
|
ignore:
|
3
3
|
text/plain:
|
4
4
|
- !ruby/regexp /^\(no subject\)$/i
|
5
|
-
- !ruby/regexp /\ASent via
|
6
|
-
- !ruby/regexp /\
|
7
|
-
- !ruby/regexp /\ASent from my Verizon Wireless BlackBerry$/im
|
8
|
-
- !ruby/regexp /\ASent (via|(from (my|your))) iPhone.?$/im
|
5
|
+
- !ruby/regexp /\ASent (via|(from (my|your))) /im
|
6
|
+
- !ruby/regexp /\AFrom my HTC /im
|
9
7
|
- !ruby/regexp /\ASent on the Sprint.* Now Network.*$/im
|
10
8
|
multipart/mixed:
|
11
9
|
- !ruby/regexp "/^Attachment: /i"
|
12
10
|
transform:
|
13
11
|
text/plain:
|
14
|
-
- - !ruby/regexp /\A(.*?)Sent via
|
12
|
+
- - !ruby/regexp /\A(.*?)Sent (via|(from (my|your))) .*/im
|
15
13
|
- "\\1"
|
16
|
-
- - !ruby/regexp /\A(.*?)
|
17
|
-
- "\\1"
|
18
|
-
- - !ruby/regexp /\A(.*?)Sent from my Verizon Wireless BlackBerry$/im
|
19
|
-
- "\\1"
|
20
|
-
- - !ruby/regexp /\A(.*?)Sent (via|(from (my|your))) iPhone.?$/im
|
14
|
+
- - !ruby/regexp /\A(.*?)From my HTC .*/im
|
21
15
|
- "\\1"
|
22
16
|
- - !ruby/regexp /\A(.*?)\s+image\/jpeg$/im
|
23
17
|
- "\\1"
|
data/lib/mms2r/version.rb
CHANGED
data/test/test_mms2r_media.rb
CHANGED
@@ -193,6 +193,7 @@ class TestMms2rMedia < Test::Unit::TestCase
|
|
193
193
|
assert_equal result, mms.transform_text(type, text)
|
194
194
|
|
195
195
|
# testing the default config
|
196
|
+
assert_equal ['text/plain', ''], mms.transform_text('text/plain', "From my HTC Sensation 4G on T-Mobile. The first nationwide 4G network")
|
196
197
|
assert_equal ['text/plain', ''], mms.transform_text('text/plain', "Sent from my Windows Phone")
|
197
198
|
assert_equal ['text/plain', ''], mms.transform_text('text/plain', "Sent via BlackBerry from T-Mobile")
|
198
199
|
assert_equal ['text/plain', ''], mms.transform_text('text/plain', "Sent from my Verizon Wireless BlackBerry")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mms2r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
4
|
+
version: 3.8.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -377,7 +377,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
377
377
|
version: '0'
|
378
378
|
segments:
|
379
379
|
- 0
|
380
|
-
hash:
|
380
|
+
hash: 4273706323397208345
|
381
381
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
382
382
|
none: false
|
383
383
|
requirements:
|
@@ -386,10 +386,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
386
386
|
version: '0'
|
387
387
|
segments:
|
388
388
|
- 0
|
389
|
-
hash:
|
389
|
+
hash: 4273706323397208345
|
390
390
|
requirements: []
|
391
391
|
rubyforge_project: mms2r
|
392
|
-
rubygems_version: 1.8.
|
392
|
+
rubygems_version: 1.8.23
|
393
393
|
signing_key:
|
394
394
|
specification_version: 3
|
395
395
|
summary: Extract user media from MMS (and not carrier cruft)
|