rubymtp 0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,41 @@
1
+ diff -ur syndication-0.6.1/lib/syndication/podcast.rb /var/lib/gems/1.8/gems/syndication-0.6.1/lib/syndication/podcast.rb
2
+ --- syndication-0.6.1/lib/syndication/podcast.rb 2006-06-19 00:14:41.000000000 +0200
3
+ +++ /var/lib/gems/1.8/gems/syndication-0.6.1/lib/syndication/podcast.rb 2007-02-13 01:50:05.000000000 +0100
4
+ @@ -31,6 +31,7 @@
5
+ # Set the duration. Apple specifies four possible formats for the
6
+ # XML data: HH:MM:SS, H:MM:SS, MM:SS, or M:SS.
7
+ def itunes_duration=(x)
8
+ + return if x.is_a?(Hash)
9
+ if x.match(/(\d?\d):(\d\d):(\d\d)/)
10
+ @itunes_duration = $3.to_i + $2.to_i * 60 + $1.to_i * 3600
11
+ elsif x.match(/(\d?\d):(\d\d)/)
12
+ Seulement dans syndication-0.6.1: setup.rb
13
+ diff -ur syndication-0.6.1/test/rsstest.rb /var/lib/gems/1.8/gems/syndication-0.6.1/test/rsstest.rb
14
+ --- syndication-0.6.1/test/rsstest.rb 2007-02-15 12:52:13.000000000 +0100
15
+ +++ /var/lib/gems/1.8/gems/syndication-0.6.1/test/rsstest.rb 2007-02-15 11:08:43.000000000 +0100
16
+ @@ -61,7 +61,8 @@
17
+ <?xml version="1.0"?>
18
+ <rdf:RDF
19
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20
+ - xmlns="http://purl.org/rss/1.0/">
21
+ + xmlns="http://purl.org/rss/1.0/"
22
+ + xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd">
23
+ <channel rdf:about="http://www.otternet.com/">
24
+ <title>OtterNet</title>
25
+ <link>http://www.otternet.com/</link>
26
+ @@ -146,6 +147,7 @@
27
+ <pubDate>Sat, 07 Sep 2002 00:01:02 EDT</pubDate>
28
+ <category>dull</category>
29
+ <category>amazingly</category>
30
+ + <itunes:duration>1234567</itunes:duration>
31
+ <comments>http://www.example.com/news/comments/1.html</comments>
32
+ <enclosure url="http://www.example.com/mp3/advertisement.mp3" length="123987" type="audio/mpeg" />
33
+ <guid>4asd98dgf9a74@example.com</guid>
34
+ @@ -313,6 +315,7 @@
35
+ assert(i.itunes_duration == 1201, "Duration computed incorrectly")
36
+ i.itunes_duration = "3:52"
37
+ assert(i.itunes_duration == 232, "Duration computed incorrectly")
38
+ +
39
+ end
40
+
41
+ # Test a well-formed RSS2 feed with every element possible and more than
@@ -0,0 +1,13 @@
1
+ require 'test/unit'
2
+ require 'mtp'
3
+
4
+ class ContainerTest < Test::Unit::TestCase
5
+ def test_pack
6
+ c = MTP::Request.new
7
+ c.code = 1
8
+ c.transaction_id = 1
9
+ c.parameters << 0xffffffff
10
+ c.parameters << 0xcccccccc
11
+ assert_equal "\024\000\000\000\001\000\001\000\001\000\000\000\377\377\377\377\314\314\314\314", c.pack
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: rubymtp
5
+ version: !ruby/object:Gem::Version
6
+ version: "0.1"
7
+ date: 2007-02-15 00:00:00 +01:00
8
+ summary: Pure ruby MTP implementation and utilities
9
+ require_paths:
10
+ - lib
11
+ email: dam@cosinux.org
12
+ homepage: http://blog.cosinux.org/
13
+ rubyforge_project:
14
+ description: Pure Ruby MTP implementation and utilities
15
+ autorequire: mtp
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Damien Merenne
31
+ files:
32
+ - README
33
+ - COPYING
34
+ - ChangeLog
35
+ - patches/ruby-mp3info-0.5.diff
36
+ - patches/syndication-0.6.1.diff
37
+ - bin/podcast
38
+ - bin/mtpfs
39
+ - lib/mtp
40
+ - lib/mtp.rb
41
+ - lib/mtp/container.rb
42
+ - lib/mtp/device.rb
43
+ - lib/mtp/storage.rb
44
+ - lib/mtp/protocol.rb
45
+ - lib/mtp/track.rb
46
+ - lib/mtp/object.rb
47
+ - lib/mtp/datacode.rb
48
+ - lib/mtp/association.rb
49
+ - lib/mtp/properties.rb
50
+ - lib/mtp/datatypes.rb
51
+ - lib/mtp/playlist.rb
52
+ - lib/mtp/podcast.rb
53
+ - lib/mtp/fuse.rb
54
+ test_files:
55
+ - test/container_test.rb
56
+ rdoc_options: []
57
+
58
+ extra_rdoc_files:
59
+ - README
60
+ - COPYING
61
+ - ChangeLog
62
+ executables:
63
+ - podcast
64
+ - mtpfs
65
+ extensions: []
66
+
67
+ requirements: []
68
+
69
+ dependencies:
70
+ - !ruby/object:Gem::Dependency
71
+ name: ruby-mp3info
72
+ version_requirement:
73
+ version_requirements: !ruby/object:Gem::Version::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0.5"
78
+ version:
79
+ - !ruby/object:Gem::Dependency
80
+ name: facets
81
+ version_requirement:
82
+ version_requirements: !ruby/object:Gem::Version::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 1.8.20
87
+ version: