mms2r 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/History.txt +8 -1
- data/conf/mms2r_media.yml +1 -0
- data/lib/mms2r.rb +1 -1
- data/lib/mms2r/media.rb +1 -1
- data/mms2r.gemspec +4 -4
- data/test/test_mms2r_media.rb +14 -0
- metadata +2 -2
data/.gitignore
CHANGED
data/History.txt
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
+
### 2.4.1 / 2010-02-07 (Vater Orlaag - political and spiritual specialist)
|
2
|
+
|
3
|
+
* 3 minor enhancements
|
4
|
+
* make sure filename is free of new lines - laurynas
|
5
|
+
* recognize HTC HERO200 as a smart phone
|
6
|
+
* recognize HTC Eris as a smart phone
|
7
|
+
|
1
8
|
### 2.4.0 / 2009-12-20 (Dr. Nanemiltred Philtendrieden - specialist on celebrity death)
|
2
9
|
|
3
10
|
* 1 new feature
|
4
11
|
* replace Hpricot with Nokogiri for html parsing of Sprint data
|
5
12
|
|
6
13
|
* 3 minor enhancements
|
7
|
-
* smartphone identities stored
|
14
|
+
* smartphone identities stored in conf/mms2r_media.yml
|
8
15
|
* identify Motorola Droid as a smartphone
|
9
16
|
* identify T-Mobile Dash as a smartphone
|
10
17
|
* use uuidtools for naming temp directories - kbaum
|
data/conf/mms2r_media.yml
CHANGED
data/lib/mms2r.rb
CHANGED
data/lib/mms2r/media.rb
CHANGED
@@ -517,7 +517,7 @@ module MMS2R
|
|
517
517
|
end
|
518
518
|
end
|
519
519
|
# XXX fwiw, janky look for dot extension 1 to 4 chars long
|
520
|
-
name = (name =~ /\..{1,4}$/ ? name : "#{name}.#{self.default_ext(part.part_type?)}")
|
520
|
+
name = (name =~ /\..{1,4}$/ ? name : "#{name}.#{self.default_ext(part.part_type?)}").strip
|
521
521
|
|
522
522
|
# handle excessively large filenames
|
523
523
|
if name.size > 255
|
data/mms2r.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{mms2r}
|
5
|
-
s.version = "2.4.
|
5
|
+
s.version = "2.4.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Mike Mondragon"]
|
@@ -40,17 +40,17 @@ parts the mail is comprised of.}
|
|
40
40
|
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
41
41
|
s.add_runtime_dependency(%q<tmail>, [">= 0"])
|
42
42
|
s.add_runtime_dependency(%q<uuidtools>, [">= 0"])
|
43
|
-
s.add_development_dependency(%q<hoe>, [">= 2.4.
|
43
|
+
s.add_development_dependency(%q<hoe>, [">= 2.4.1"])
|
44
44
|
else
|
45
45
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
46
46
|
s.add_dependency(%q<tmail>, [">= 0"])
|
47
47
|
s.add_dependency(%q<uuidtools>, [">= 0"])
|
48
|
-
s.add_dependency(%q<hoe>, [">= 2.4.
|
48
|
+
s.add_dependency(%q<hoe>, [">= 2.4.1"])
|
49
49
|
end
|
50
50
|
else
|
51
51
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
52
52
|
s.add_dependency(%q<tmail>, [">= 0"])
|
53
53
|
s.add_dependency(%q<uuidtools>, [">= 0"])
|
54
|
-
s.add_dependency(%q<hoe>, [">= 2.4.
|
54
|
+
s.add_dependency(%q<hoe>, [">= 2.4.1"])
|
55
55
|
end
|
56
56
|
end
|
data/test/test_mms2r_media.rb
CHANGED
@@ -802,6 +802,20 @@ class TestMms2rMedia < Test::Unit::TestCase
|
|
802
802
|
assert_equal true, mms.is_mobile?
|
803
803
|
end
|
804
804
|
|
805
|
+
def test_htc_eris_device_type_by_exif
|
806
|
+
mail = smart_phone_mock('Eris')
|
807
|
+
mms = MMS2R::Media.new(mail)
|
808
|
+
assert_equal :htc, mms.device_type?
|
809
|
+
assert_equal true, mms.is_mobile?
|
810
|
+
end
|
811
|
+
|
812
|
+
def test_htc_hero_device_type_by_exif
|
813
|
+
mail = smart_phone_mock('HERO200')
|
814
|
+
mms = MMS2R::Media.new(mail)
|
815
|
+
assert_equal :htc, mms.device_type?
|
816
|
+
assert_equal true, mms.is_mobile?
|
817
|
+
end
|
818
|
+
|
805
819
|
def test_blackberry_device_type
|
806
820
|
berries = ['att-blackberry.mail',
|
807
821
|
'suncom-blackberry.mail',
|
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: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Mondragon
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-07 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|