ruby-ogg 0.0.3 → 0.0.4

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.
@@ -1,3 +1,3 @@
1
1
  module Ogg
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -12,9 +12,8 @@ Gem::Specification.new do |spec|
12
12
  spec.description = spec.summary
13
13
  spec.homepage = "https://github.com/anibali/ruby-ogg"
14
14
 
15
- spec.files = `git ls-files`.split($/)
15
+ spec.files = `git ls-files`.split($/).reject {|s| s.start_with? "test"}
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
17
  spec.require_paths = ["lib"]
19
18
 
20
19
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ogg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -91,9 +91,6 @@ files:
91
91
  - lib/ruby-ogg/version.rb
92
92
  - lib/vorbis.rb
93
93
  - ruby-ogg.gemspec
94
- - test/sudo_modprobe.ogg
95
- - test/tc_ogg.rb
96
- - test/tc_vorbis.rb
97
94
  homepage: https://github.com/anibali/ruby-ogg
98
95
  licenses: []
99
96
  post_install_message:
@@ -119,8 +116,5 @@ signing_key:
119
116
  specification_version: 3
120
117
  summary: A pure Ruby library for reading Ogg bitstreams, with a bundled Vorbis metadata
121
118
  reader.
122
- test_files:
123
- - test/sudo_modprobe.ogg
124
- - test/tc_ogg.rb
125
- - test/tc_vorbis.rb
119
+ test_files: []
126
120
  has_rdoc:
Binary file
@@ -1,41 +0,0 @@
1
- require 'test/unit'
2
-
3
- require 'rubygems'
4
- require 'ogg'
5
-
6
- class OggTest < Test::Unit::TestCase
7
- def setup
8
- @test_dir = File.dirname(File.expand_path(__FILE__))
9
- end
10
-
11
- def test_read_page
12
- dec = Ogg::Decoder.new(open(File.join(@test_dir, "sudo_modprobe.ogg")),
13
- :verify_checksum => true)
14
- # First page
15
- page = dec.read_page
16
- assert_equal 0, page.page_sequence_number
17
- assert_equal 0, page.granule_position
18
- assert_equal 30, page.data.size
19
- assert_equal "\1vorbis", page.data[0..6]
20
- # Second page
21
- page = dec.read_page
22
- assert_equal 1, page.page_sequence_number
23
- assert_equal 18446744073709551615, page.granule_position
24
- assert_equal 4335, page.data.size
25
- assert_equal "\3vorbis", page.data[0..6]
26
- end
27
-
28
- def test_read_packet
29
- dec = Ogg::Decoder.new(open(File.join(@test_dir, "sudo_modprobe.ogg")),
30
- :verify_checksum => true)
31
- # First packet
32
- packet = dec.read_packet
33
- assert_equal 30, packet.size
34
- assert_equal "\1vorbis", packet[0..6]
35
- # Second packet
36
- packet = dec.read_packet
37
- assert_equal 173685, packet.size
38
- assert_equal "\3vorbis", packet[0..6]
39
- end
40
- end
41
-
@@ -1,21 +0,0 @@
1
- require 'test/unit'
2
-
3
- require 'rubygems'
4
- require 'vorbis'
5
-
6
- class VorbisTest < Test::Unit::TestCase
7
- def setup
8
- @test_dir = File.dirname(File.expand_path(__FILE__))
9
- end
10
-
11
- def test_info_sudo_modprobe
12
- Vorbis::Info.open(File.join(@test_dir, "sudo_modprobe.ogg")) do |info|
13
- assert_equal ['http://linuxoutlaws.com'], info.comments['LICENSE']
14
- assert_equal ['Sudo Modprobe (The Linux Outlaws Theme)'], info.comments['tItLe']
15
- assert_equal ['The Linux Outlaws'], info.comments[:artist]
16
- assert_equal(192000, info.nominal_bitrate)
17
- assert_equal(44100, info.sample_rate)
18
- end
19
- end
20
- end
21
-