mms2r 3.8.1 → 3.8.2

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mms2r (3.8.1)
4
+ mms2r (3.8.2)
5
5
  exifr (>= 1.0.3)
6
6
  json (>= 1.6.0)
7
7
  mail (>= 2.4.0)
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 BlackBerry (from|by) .*$/im
6
- - !ruby/regexp /\ASent from my Windows Phone.*$/im
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 BlackBerry (from|by) .*$/im
12
+ - - !ruby/regexp /\A(.*?)Sent (via|(from (my|your))) .*/im
15
13
  - "\\1"
16
- - - !ruby/regexp /\A(.*?)Sent from my Windows Phone.*$/im
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
@@ -10,7 +10,7 @@ module MMS2R
10
10
  end
11
11
 
12
12
  def self.patch
13
- 1
13
+ 2
14
14
  end
15
15
 
16
16
  def self.pre
@@ -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.1
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-07-22 00:00:00.000000000 Z
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: 2415070101069530442
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: 2415070101069530442
389
+ hash: 4273706323397208345
390
390
  requirements: []
391
391
  rubyforge_project: mms2r
392
- rubygems_version: 1.8.24
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)