sndfile 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ before_install:
3
+ - sudo apt-get update -qq
4
+ - sudo apt-get install -qq libffi-dev libffi-ruby libgsl0-dev libsndfile1-dev
5
+ rvm:
6
+ - 1.8.7
7
+ - 1.9.3
8
+ notifications:
9
+ recipients:
10
+ - ronen@barzel.org
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  Libsndfile for Ruby
2
2
  -------------
3
+ [![Build Status](https://travis-ci.org/ronen/sndfile.png)](https://travis-ci.org/ronen/sndfile)
4
+ [![Dependency Status](https://gemnasium.com/ronen/sndfile.png)](https://gemnasium.com/ronen/sndfile)
3
5
 
4
6
  *sndfile* provides a fast and easy way to read, process, and write audio
5
7
  file data. It wraps the [libsndfile](http://www.mega-nerd.com/libsndfile/)
@@ -40,12 +42,18 @@ Here's a simple example, that reads an arbitrary source file and produces a WAV
40
42
 
41
43
  See the [RDOC](http://rubydoc.info/gems/sndfile) for more info.
42
44
 
45
+ Compatibility
46
+ =============
47
+
48
+ Currently works with ruby 1.8.7 and 1.9.3
49
+
43
50
 
44
51
  History
45
52
  =======
46
53
 
47
54
  Release notes:
48
55
 
56
+ * 0.2.0 - support ruby 1.8.7. thanks to [youpy](https://github.com/youpy)
49
57
  * 0.1.3 - Back to ruby-gsl-ng: memory leaks fixed
50
58
  * 0.1.2 - Use ruby-gsl-ngx to avoid memory leaks
51
59
  * 0.1.1 - Clean up vestigial includes in integration test
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env rake
2
+
3
+ task :default => :spec
4
+
2
5
  require "bundler/gem_tasks"
3
6
  require 'rdoc/task'
4
7
  Rake::RDocTask.new do |rdoc|
@@ -8,7 +8,7 @@ module Sndfile # :nodoc: all
8
8
  :SF_ERR_UNRECOGNISED_FORMAT, 1,
9
9
  :SF_ERR_SYSTEM, 2,
10
10
  :SF_ERR_MALFORMED_FILE, 3,
11
- :SF_ERR_UNSUPPORTED_ENCODING, 4,
11
+ :SF_ERR_UNSUPPORTED_ENCODING, 4
12
12
  )
13
13
 
14
14
 
@@ -16,7 +16,7 @@ module Sndfile # :nodoc: all
16
16
  FileMode = enum(
17
17
  :READ, 0x10,
18
18
  :WRITE, 0x20,
19
- :RDWR, 0x30,
19
+ :RDWR, 0x30
20
20
  )
21
21
 
22
22
  # Major formats.
@@ -46,7 +46,7 @@ module Sndfile # :nodoc: all
46
46
  :WVE, 0x190000, # Psion WVE format
47
47
  :OGG, 0x200000, # Xiph OGG container
48
48
  :MPC2K, 0x210000, # Akai MPC 2000 sampler
49
- :RF64, 0x220000, # RF64 WAV file
49
+ :RF64, 0x220000 # RF64 WAV file
50
50
  )
51
51
 
52
52
  # Subtypes from here on.
@@ -82,7 +82,7 @@ module Sndfile # :nodoc: all
82
82
  :DPCM_8, 0x0050, # 8 bit differential PCM (XI only)
83
83
  :DPCM_16, 0x0051, # 16 bit differential PCM (XI only)
84
84
 
85
- :VORBIS, 0x0060, # Xiph Vorbis encoding.
85
+ :VORBIS, 0x0060 # Xiph Vorbis encoding.
86
86
  )
87
87
 
88
88
  # Endian-ness options.
@@ -91,7 +91,7 @@ module Sndfile # :nodoc: all
91
91
  :FILE, 0x00000000, # Default file endian-ness.
92
92
  :LITTLE, 0x10000000, # Force little endian-ness.
93
93
  :BIG, 0x20000000, # Force big endian-ness.
94
- :CPU, 0x30000000, # Force CPU endian-ness.
94
+ :CPU, 0x30000000 # Force CPU endian-ness.
95
95
  )
96
96
 
97
97
  # Command numbers for sf_command
@@ -42,7 +42,7 @@ module Sndfile
42
42
  :encoding => { :valid => Enums::Encoding.symbols, :default => :PCM_16 },
43
43
  :endian => { :valid => Enums::Endian.symbols, :default => :FILE },
44
44
  :samplerate => 44100,
45
- :channels => 2,
45
+ :channels => 2
46
46
  )
47
47
 
48
48
  @path = path
@@ -1,3 +1,3 @@
1
1
  module Sndfile
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency("hash_keyword_args")
21
21
 
22
22
  gem.add_development_dependency 'rake'
23
+ gem.add_development_dependency 'rdoc'
23
24
  gem.add_development_dependency 'rspec'
24
25
  gem.add_development_dependency 'simplecov'
25
26
  gem.add_development_dependency 'simplecov-gem-adapter'
@@ -18,7 +18,7 @@ end
18
18
  INPUTS_DIR = Pathname.new(__FILE__) + "../inputs"
19
19
  REFS_DIR = Pathname.new(__FILE__) + "../refs"
20
20
  OUTPUTS_DIR = Pathname.new(__FILE__) + "../outputs"
21
- Dir.mkdir(OUTPUTS_DIR) unless Dir.exist? OUTPUTS_DIR
21
+ Dir.mkdir(OUTPUTS_DIR) unless File.directory? OUTPUTS_DIR
22
22
 
23
23
  def in_path(name)
24
24
  INPUTS_DIR + name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sndfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
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-12-05 00:00:00.000000000 Z
12
+ date: 2013-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rdoc
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  - !ruby/object:Gem::Dependency
79
95
  name: rspec
80
96
  requirement: !ruby/object:Gem::Requirement
@@ -132,6 +148,7 @@ extensions: []
132
148
  extra_rdoc_files: []
133
149
  files:
134
150
  - .gitignore
151
+ - .travis.yml
135
152
  - Gemfile
136
153
  - README.md
137
154
  - Rakefile