mms2r 3.3.1 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/Gemfile +11 -11
- data/Gemfile.lock +28 -24
- data/History.txt +7 -0
- data/Manifest.txt +5 -4
- data/README.txt +8 -5
- data/conf/1nbox.net.yml +4 -4
- data/conf/aliases.yml +1 -1
- data/conf/mediamessaging.o2.co.uk.yml +1 -1
- data/conf/messaging.nextel.com.yml +8 -8
- data/conf/mms.3ireland.ie.yml +8 -8
- data/conf/mms.ae.yml +1 -1
- data/conf/mms.alltel.com.yml +2 -2
- data/conf/mms.att.net.yml +9 -9
- data/conf/mms.dobson.net.yml +3 -3
- data/conf/mms.luxgsm.lu.yml +8 -8
- data/conf/mms.mobileiam.ma.yml +6 -6
- data/conf/mms.mtn.co.za.yml +4 -4
- data/conf/mms.myhelio.com.yml +7 -7
- data/conf/mms.netcom.no.yml +2 -2
- data/conf/mms.o2online.de.yml +6 -6
- data/conf/mms.three.co.uk.yml +9 -9
- data/conf/mms.uscc.net.mail +6 -6
- data/conf/mms.vodacom4me.co.za.yml +4 -4
- data/conf/mms2r_media.yml +20 -20
- data/conf/mobile.indosat.net.id.yml +4 -4
- data/conf/msg.telus.com.yml +2 -2
- data/conf/orangemms.net.yml +7 -7
- data/conf/pm.sprint.com.yml +8 -8
- data/conf/pxt.vodafone.net.nz.yml +3 -3
- data/conf/rci.rogers.com.yml +7 -7
- data/conf/sms.sasktel.com.yml +9 -9
- data/conf/tmomail.net.yml +22 -22
- data/conf/txt.bell.ca.yml +2 -2
- data/conf/unicel.com.yml +3 -3
- data/conf/vmpix.com.yml +7 -7
- data/conf/vzwpix.com.yml +6 -6
- data/conf/waw.plspictures.com.yml +8 -9
- data/dev_tools/anonymizer.rb +1 -1
- data/lib/{mail_ext.rb → ext/mail.rb} +0 -0
- data/lib/ext/object.rb +11 -0
- data/lib/mms2r.rb +10 -20
- data/lib/mms2r/media.rb +33 -29
- data/mms2r.gemspec +23 -43
- data/test/fixtures/ad_new.txt +5 -0
- data/test/fixtures/dici_un_mois_georgie.txt +1 -0
- data/test/hax.rb +8 -0
- data/test/test_1nbox_net.rb +2 -2
- data/test/test_bell_canada.rb +1 -1
- data/test/test_bellsouth_net.rb +2 -2
- data/test/test_helper.rb +5 -9
- data/test/test_mediamessaging_o2_co_uk.rb +1 -1
- data/test/test_messaging_nextel_com.rb +1 -1
- data/test/test_messaging_sprintpcs_com.rb +1 -1
- data/test/test_mms2r_media.rb +35 -23
- data/test/test_mms_3ireland_ie.rb +1 -1
- data/test/test_mms_ae.rb +1 -1
- data/test/test_mms_alltel_com.rb +1 -1
- data/test/test_mms_att_net.rb +2 -2
- data/test/test_mms_dobson_net.rb +1 -1
- data/test/test_mms_luxgsm_lu.rb +1 -1
- data/test/test_mms_mobileiam_ma.rb +1 -1
- data/test/test_mms_mtn_co_za.rb +1 -1
- data/test/test_mms_mycricket_com.rb +1 -1
- data/test/test_mms_myhelio_com.rb +1 -1
- data/test/test_mms_netcom_no.rb +1 -1
- data/test/test_mms_o2online_de.rb +1 -1
- data/test/test_mms_three_co_uk.rb +1 -1
- data/test/test_mms_uscc_net.rb +1 -1
- data/test/test_mms_vodacom4me_co_za.rb +1 -1
- data/test/test_mobile_indosat_net_id.rb +1 -1
- data/test/test_msg_telus_com.rb +1 -1
- data/test/test_orangemms_net.rb +1 -1
- data/test/test_pm_sprint_com.rb +1 -1
- data/test/test_pxt_vodafone_net_nz.rb +1 -1
- data/test/test_rci_rogers_com.rb +1 -1
- data/test/test_sms_sasktel_com.rb +1 -1
- data/test/test_tmomail_net.rb +4 -4
- data/test/test_unicel_com.rb +1 -1
- data/test/test_vmpix_com.rb +1 -1
- data/test/test_vzwpix_com.rb +3 -7
- data/test/test_waw_plspictures_com.rb +1 -1
- metadata +91 -118
- data/.gitignore +0 -7
- data/dev_tools/github.rb +0 -8
- data/test/test_github.rb +0 -12
data/test/test_msg_telus_com.rb
CHANGED
data/test/test_orangemms_net.rb
CHANGED
data/test/test_pm_sprint_com.rb
CHANGED
data/test/test_rci_rogers_com.rb
CHANGED
data/test/test_tmomail_net.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "test_helper"
|
2
2
|
|
3
3
|
class TestTmomailNet < Test::Unit::TestCase
|
4
4
|
include MMS2R::TestHelper
|
@@ -52,7 +52,7 @@ class TestTmomailNet < Test::Unit::TestCase
|
|
52
52
|
assert_nil mms.media['text/plain']
|
53
53
|
|
54
54
|
assert_not_nil mms.media['image/jpeg'].first
|
55
|
-
assert_match(
|
55
|
+
assert_match(/\/IMG00239\.jpg$/, mms.media['image/jpeg'].first)
|
56
56
|
mms.purge
|
57
57
|
end
|
58
58
|
|
@@ -66,7 +66,7 @@ class TestTmomailNet < Test::Unit::TestCase
|
|
66
66
|
assert_nil mms.media['text/plain']
|
67
67
|
|
68
68
|
assert_not_nil mms.media['image/jpeg'].first
|
69
|
-
assert_match(
|
69
|
+
assert_match(/\/IMG00141\.jpg$/, mms.media['image/jpeg'].first)
|
70
70
|
mms.purge
|
71
71
|
end
|
72
72
|
|
@@ -103,7 +103,7 @@ class TestTmomailNet < Test::Unit::TestCase
|
|
103
103
|
|
104
104
|
assert_file_size mms.media['image/jpeg'][0], 337
|
105
105
|
file = mms.default_media
|
106
|
-
assert_equal '
|
106
|
+
assert_equal 'IMG00440.jpg', file.original_filename
|
107
107
|
|
108
108
|
mms.purge
|
109
109
|
end
|
data/test/test_unicel_com.rb
CHANGED
data/test/test_vmpix_com.rb
CHANGED
data/test/test_vzwpix_com.rb
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
-
require
|
1
|
+
require "test_helper"
|
2
2
|
|
3
3
|
class TestVzwpixCom < Test::Unit::TestCase
|
4
4
|
include MMS2R::TestHelper
|
5
5
|
|
6
6
|
def setup
|
7
|
-
@ad_new =
|
8
|
-
|
9
|
-
To learn how you can snap pictures and capture videos with your wireless phone visit www.verizonwireless.com/picture.
|
10
|
-
|
11
|
-
Note: To play video messages sent to email, QuickTime® 6.5 or higher is required.}
|
7
|
+
@ad_new = fixture_data('ad_new.txt')
|
12
8
|
|
13
9
|
@ad_old = %q{This message was sent using PIX-FLIX Messaging service from Verizon Wireless!
|
14
10
|
To learn how you can snap pictures with your wireless phone visit
|
@@ -158,7 +154,7 @@ www.verizonwireless.com/getitnow/getpix.}
|
|
158
154
|
assert_equal "Wonderful picture!", IO.readlines(mms.media['text/plain'].first).join.strip
|
159
155
|
|
160
156
|
assert_not_nil mms.media['image/jpeg'].first
|
161
|
-
assert_match(
|
157
|
+
assert_match(/\/IMG00016\.jpg$/, mms.media['image/jpeg'].first)
|
162
158
|
mms.purge
|
163
159
|
end
|
164
160
|
|
metadata
CHANGED
@@ -1,130 +1,109 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mms2r
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 3
|
9
|
-
- 1
|
10
|
-
version: 3.3.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.4.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Mike Mondragon
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-10-31 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: nokogiri
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &13599080 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 15
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 4
|
33
|
-
- 4
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
34
21
|
version: 1.4.4
|
35
22
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: mail
|
39
23
|
prerelease: false
|
40
|
-
|
24
|
+
version_requirements: *13599080
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mail
|
27
|
+
requirement: &13597440 !ruby/object:Gem::Requirement
|
41
28
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 19
|
46
|
-
segments:
|
47
|
-
- 2
|
48
|
-
- 2
|
49
|
-
- 10
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
50
32
|
version: 2.2.10
|
51
33
|
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: uuidtools
|
55
34
|
prerelease: false
|
56
|
-
|
35
|
+
version_requirements: *13597440
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: uuidtools
|
38
|
+
requirement: &13594060 !ruby/object:Gem::Requirement
|
57
39
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
hash: 9
|
62
|
-
segments:
|
63
|
-
- 2
|
64
|
-
- 1
|
65
|
-
- 1
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
66
43
|
version: 2.1.1
|
67
44
|
type: :runtime
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: exifr
|
71
45
|
prerelease: false
|
72
|
-
|
46
|
+
version_requirements: *13594060
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: exifr
|
49
|
+
requirement: &13553800 !ruby/object:Gem::Requirement
|
73
50
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
hash: 17
|
78
|
-
segments:
|
79
|
-
- 1
|
80
|
-
- 0
|
81
|
-
- 3
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
82
54
|
version: 1.0.3
|
83
55
|
type: :runtime
|
84
|
-
version_requirements: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: hoe
|
87
56
|
prerelease: false
|
88
|
-
|
57
|
+
version_requirements: *13553800
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: hoe
|
60
|
+
requirement: &13551820 !ruby/object:Gem::Requirement
|
89
61
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
segments:
|
95
|
-
- 2
|
96
|
-
- 8
|
97
|
-
- 0
|
98
|
-
version: 2.8.0
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2.12'
|
99
66
|
type: :development
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *13551820
|
69
|
+
description: ! '== DESCRIPTION
|
70
|
+
|
71
|
+
|
72
|
+
MMS2R by Mike Mondragon
|
73
|
+
|
74
|
+
http://mms2r.rubyforge.org/
|
75
|
+
|
76
|
+
https://github.com/monde/mms2r
|
77
|
+
|
78
|
+
https://github.com/monde/mms2r/issues
|
79
|
+
|
80
|
+
http://peepcode.com/products/mms2r-pdf
|
81
|
+
|
82
|
+
|
104
83
|
MMS2R is a library that decodes the parts of an MMS message to disk while
|
84
|
+
|
105
85
|
stripping out advertising injected by the mobile carriers. MMS messages are
|
86
|
+
|
106
87
|
multipart email and the carriers often inject branding into these messages. Use
|
88
|
+
|
107
89
|
MMS2R if you want to get at the real user generated content from a MMS without
|
90
|
+
|
108
91
|
having to deal with the cruft from the carriers.
|
109
|
-
|
92
|
+
|
93
|
+
|
110
94
|
If MMS2R is not aware of a particular carrier no extra processing is done to the
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
parts the mail is comprised of.
|
115
|
-
email:
|
95
|
+
|
96
|
+
MMS other than decoding and consolidating its media.'
|
97
|
+
email:
|
116
98
|
- mikemondragon@gmail.com
|
117
99
|
executables: []
|
118
|
-
|
119
100
|
extensions: []
|
120
|
-
|
121
|
-
extra_rdoc_files:
|
101
|
+
extra_rdoc_files:
|
122
102
|
- History.txt
|
123
103
|
- Manifest.txt
|
124
104
|
- README.TMail.txt
|
125
105
|
- README.txt
|
126
|
-
files:
|
127
|
-
- .gitignore
|
106
|
+
files:
|
128
107
|
- Gemfile
|
129
108
|
- Gemfile.lock
|
130
109
|
- History.txt
|
@@ -169,9 +148,9 @@ files:
|
|
169
148
|
- conf/waw.plspictures.com.yml
|
170
149
|
- dev_tools/anonymizer.rb
|
171
150
|
- dev_tools/debug_sprint_nokogiri_parsing.rb
|
172
|
-
- dev_tools/github.rb
|
173
151
|
- init.rb
|
174
|
-
- lib/
|
152
|
+
- lib/ext/mail.rb
|
153
|
+
- lib/ext/object.rb
|
175
154
|
- lib/mms2r.rb
|
176
155
|
- lib/mms2r/media.rb
|
177
156
|
- lib/mms2r/media/sprint.rb
|
@@ -181,6 +160,7 @@ files:
|
|
181
160
|
- test/fixtures/1nbox-2images-03.mail
|
182
161
|
- test/fixtures/1nbox-2images-04.mail
|
183
162
|
- test/fixtures/3ireland-mms-01.mail
|
163
|
+
- test/fixtures/ad_new.txt
|
184
164
|
- test/fixtures/alltel-image-01.mail
|
185
165
|
- test/fixtures/alltel-mms-01.mail
|
186
166
|
- test/fixtures/alltel-mms-03.mail
|
@@ -196,6 +176,7 @@ files:
|
|
196
176
|
- test/fixtures/bell-canada-image-01.mail
|
197
177
|
- test/fixtures/cingularme-text-01.mail
|
198
178
|
- test/fixtures/cingularme-text-02.mail
|
179
|
+
- test/fixtures/dici_un_mois_georgie.txt
|
199
180
|
- test/fixtures/dobson-image-01.mail
|
200
181
|
- test/fixtures/dot.jpg
|
201
182
|
- test/fixtures/generic.mail
|
@@ -266,10 +247,10 @@ files:
|
|
266
247
|
- test/fixtures/vtext-text-01.mail
|
267
248
|
- test/fixtures/vzwpix.com-image-01.mail
|
268
249
|
- test/fixtures/waw.plspictures.com-image-01.mail
|
250
|
+
- test/hax.rb
|
269
251
|
- test/test_1nbox_net.rb
|
270
252
|
- test/test_bell_canada.rb
|
271
253
|
- test/test_bellsouth_net.rb
|
272
|
-
- test/test_github.rb
|
273
254
|
- test/test_helper.rb
|
274
255
|
- test/test_mediamessaging_o2_co_uk.rb
|
275
256
|
- test/test_messaging_nextel_com.rb
|
@@ -304,44 +285,37 @@ files:
|
|
304
285
|
- test/test_waw_plspictures_com.rb
|
305
286
|
- vendor/plugins/mms2r/lib/autotest/discover.rb
|
306
287
|
- vendor/plugins/mms2r/lib/autotest/mms2r.rb
|
307
|
-
|
308
|
-
homepage:
|
309
|
-
http://mms2r.rubyforge.org/
|
310
|
-
|
288
|
+
- .gemtest
|
289
|
+
homepage: https://github.com/monde/mms2r
|
311
290
|
licenses: []
|
312
|
-
|
313
291
|
post_install_message:
|
314
|
-
rdoc_options:
|
292
|
+
rdoc_options:
|
315
293
|
- --main
|
316
294
|
- README.txt
|
317
|
-
require_paths:
|
295
|
+
require_paths:
|
318
296
|
- lib
|
319
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
297
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
320
298
|
none: false
|
321
|
-
requirements:
|
322
|
-
- -
|
323
|
-
- !ruby/object:Gem::Version
|
324
|
-
|
325
|
-
segments:
|
299
|
+
requirements:
|
300
|
+
- - ! '>='
|
301
|
+
- !ruby/object:Gem::Version
|
302
|
+
version: '0'
|
303
|
+
segments:
|
326
304
|
- 0
|
327
|
-
|
328
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
305
|
+
hash: 4582879088238575309
|
306
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
307
|
none: false
|
330
|
-
requirements:
|
331
|
-
- -
|
332
|
-
- !ruby/object:Gem::Version
|
333
|
-
|
334
|
-
segments:
|
335
|
-
- 0
|
336
|
-
version: "0"
|
308
|
+
requirements:
|
309
|
+
- - ! '>='
|
310
|
+
- !ruby/object:Gem::Version
|
311
|
+
version: '0'
|
337
312
|
requirements: []
|
338
|
-
|
339
313
|
rubyforge_project: mms2r
|
340
|
-
rubygems_version: 1.
|
314
|
+
rubygems_version: 1.8.10
|
341
315
|
signing_key:
|
342
316
|
specification_version: 3
|
343
317
|
summary: Extract user media from MMS (and not carrier cruft)
|
344
|
-
test_files:
|
318
|
+
test_files:
|
345
319
|
- test/test_orangemms_net.rb
|
346
320
|
- test/test_waw_plspictures_com.rb
|
347
321
|
- test/test_mediamessaging_o2_co_uk.rb
|
@@ -370,7 +344,6 @@ test_files:
|
|
370
344
|
- test/test_mms_3ireland_ie.rb
|
371
345
|
- test/test_pm_sprint_com.rb
|
372
346
|
- test/test_mms_alltel_com.rb
|
373
|
-
- test/test_github.rb
|
374
347
|
- test/test_mms_mobileiam_ma.rb
|
375
348
|
- test/test_mms_mycricket_com.rb
|
376
349
|
- test/test_bellsouth_net.rb
|
data/.gitignore
DELETED
data/dev_tools/github.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
# based on Trouble shooting section in http://gems.github.com/
|
2
|
-
require 'rubygems'
|
3
|
-
require 'rubygems/specification'
|
4
|
-
data = File.read(File.join(File.dirname(__FILE__), "..", "mms2r.gemspec"))
|
5
|
-
spec = nil
|
6
|
-
result = Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
|
7
|
-
puts spec
|
8
|
-
(!!result) ? exit(0) : exit(1)
|
data/test/test_github.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# based on Trouble shooting section in http://gems.github.com/
|
2
|
-
require 'test/unit'
|
3
|
-
require 'rubygems'
|
4
|
-
|
5
|
-
class TestGithub < Test::Unit::TestCase
|
6
|
-
|
7
|
-
def test_build_github_gem
|
8
|
-
result = `ruby #{File.join(File.dirname(__FILE__), "..", "dev_tools", "github.rb")}`
|
9
|
-
assert_equal 0, $?.exitstatus
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|