mms2r 3.8.0 → 3.8.1
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 +1 -1
- data/History.txt +5 -0
- data/Manifest.txt +22 -16
- data/README.rdoc +1 -0
- data/conf/mms.gocbw.com.yml +5 -0
- data/lib/mms2r/version.rb +1 -1
- data/test/fixtures/cincinnati-bell-image-01.mail +2408 -0
- data/test/test_mms_cincinnati_bell.rb +24 -0
- metadata +7 -4
@@ -0,0 +1,24 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class TestMmsCincinnatiBell < Test::Unit::TestCase
|
4
|
+
include MMS2R::TestHelper
|
5
|
+
|
6
|
+
def test_mms_image_cincinnati_bell
|
7
|
+
# sms.sasktel.com service
|
8
|
+
mail = mail('cincinnati-bell-image-01.mail')
|
9
|
+
mms = MMS2R::Media.new(mail)
|
10
|
+
assert_equal "12223334444", mms.number
|
11
|
+
assert_equal "mms.gocbw.com", mms.carrier
|
12
|
+
assert_equal "", mms.subject
|
13
|
+
assert_nil mms.media['text/html']
|
14
|
+
assert_nil mms.media['image/gif']
|
15
|
+
# we have media and text, to 2 media items
|
16
|
+
assert_equal 2, mms.media.size
|
17
|
+
assert_not_nil mms.media['image/jpeg']
|
18
|
+
assert_equal 1, mms.media['image/jpeg'].size
|
19
|
+
assert_match(/test-file.jpg$/, mms.media['image/jpeg'].first)
|
20
|
+
assert_file_size(mms.media['image/jpeg'].first, 106024)
|
21
|
+
mms.purge
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
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.1
|
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-
|
12
|
+
date: 2012-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -187,6 +187,7 @@ files:
|
|
187
187
|
- conf/mms.alltel.com.yml
|
188
188
|
- conf/mms.att.net.yml
|
189
189
|
- conf/mms.dobson.net.yml
|
190
|
+
- conf/mms.gocbw.com.yml
|
190
191
|
- conf/mms.luxgsm.lu.yml
|
191
192
|
- conf/mms.mobileiam.ma.yml
|
192
193
|
- conf/mms.mtn.co.za.yml
|
@@ -240,6 +241,7 @@ files:
|
|
240
241
|
- test/fixtures/att-iphone-03.mail
|
241
242
|
- test/fixtures/att-text-01.mail
|
242
243
|
- test/fixtures/bell-canada-image-01.mail
|
244
|
+
- test/fixtures/cincinnati-bell-image-01.mail
|
243
245
|
- test/fixtures/cingularme-text-01.mail
|
244
246
|
- test/fixtures/cingularme-text-02.mail
|
245
247
|
- test/fixtures/dici_un_mois_georgie.txt
|
@@ -332,6 +334,7 @@ files:
|
|
332
334
|
- test/test_mms_ae.rb
|
333
335
|
- test/test_mms_alltel_com.rb
|
334
336
|
- test/test_mms_att_net.rb
|
337
|
+
- test/test_mms_cincinnati_bell.rb
|
335
338
|
- test/test_mms_dobson_net.rb
|
336
339
|
- test/test_mms_luxgsm_lu.rb
|
337
340
|
- test/test_mms_mobileiam_ma.rb
|
@@ -374,7 +377,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
374
377
|
version: '0'
|
375
378
|
segments:
|
376
379
|
- 0
|
377
|
-
hash:
|
380
|
+
hash: 2415070101069530442
|
378
381
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
379
382
|
none: false
|
380
383
|
requirements:
|
@@ -383,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
383
386
|
version: '0'
|
384
387
|
segments:
|
385
388
|
- 0
|
386
|
-
hash:
|
389
|
+
hash: 2415070101069530442
|
387
390
|
requirements: []
|
388
391
|
rubyforge_project: mms2r
|
389
392
|
rubygems_version: 1.8.24
|