Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
add contributor notices, move some requires around, add Platform depe…
Browse files Browse the repository at this point in the history
…ndency, 0.2.0!
  • Loading branch information
bleything committed Oct 29, 2008
1 parent 7d22efd commit 84b5bae
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 6 deletions.
5 changes: 5 additions & 0 deletions README
Expand Up @@ -33,6 +33,11 @@ all of this crap out for myself. Apress also deserves some credit; they
released all the source in their book under the MIT license. That's a big
deal and you should buy their books.

Props also go to the folks who have contributed patches. In alphabetical order:

* Giles Bowkett
* Xavier Shay

== License

Distributed under the terms of the MIT license. See the LICENSE file for
Expand Down
18 changes: 15 additions & 3 deletions lib/midiator.rb
Expand Up @@ -13,12 +13,24 @@
# This code released under the terms of the MIT license.
#

require 'string_extensions'

module MIDIator
VERSION = "0.1.1"
VERSION = "0.2.0"
end

#####################################################################
### E X T E R N A L D E P E N D E N C I E S
#####################################################################
require 'rubygems'
require 'platform'

#####################################################################
### C O R E L I B R A R Y E X T E N S I O N S
#####################################################################
require 'string_extensions'

#####################################################################
### M I D I A T O R C O R E
#####################################################################
require 'midiator/driver'
require 'midiator/driver_registry'
require 'midiator/exceptions'
Expand Down
8 changes: 5 additions & 3 deletions lib/midiator/interface.rb
Expand Up @@ -7,16 +7,17 @@
#
# * Ben Bleything <ben@bleything.net>
#
# == Contributors
#
# * Giles Bowkett
#
# == Copyright
#
# Copyright (c) 2008 Ben Bleything
#
# This code released under the terms of the MIT license.
#

require 'rubygems'
require 'platform'

require 'midiator'

class MIDIator::Interface
Expand All @@ -32,6 +33,7 @@ def autodetect_driver
when :linux
:alsa
end

self.use(driver)
end

Expand Down
4 changes: 4 additions & 0 deletions lib/midiator/notes.rb
Expand Up @@ -7,6 +7,10 @@
#
# * Ben Bleything <ben@bleything.net>
#
# == Contributors
#
# * Xavier Shay
#
# == Copyright
#
# Copyright (c) 2008 Ben Bleything
Expand Down
2 changes: 2 additions & 0 deletions misc/rake/packaging.rb
Expand Up @@ -39,6 +39,8 @@
collect {|f| f.relative_path_from(BASE_DIR).to_s }
gem.test_files = SPEC_FILES.
collect {|f| f.relative_path_from(BASE_DIR).to_s }

gem.add_dependency 'Platform', [">= 0.4.0"]
end

Rake::GemPackageTask.new( gemspec ) do |task|
Expand Down
6 changes: 6 additions & 0 deletions spec/interface_spec.rb
Expand Up @@ -6,6 +6,10 @@
#
# * Ben Bleything <ben@bleything.net>
#
# == Contributors
#
# * Giles Bowkett
#
# == Copyright
#
# Copyright (c) 2008 Ben Bleything
Expand All @@ -27,13 +31,15 @@
before( :all ) do
# remember platform so we can reset it later
@ruby_platform = Platform::IMPL

# suppress warnings (http://www.ruby-forum.com/topic/127608)
$-v = nil
end

after( :all ) do
# reset platform to whatever is correct for our platform
Platform::IMPL = @ruby_platform

# restore warnings (http://www.ruby-forum.com/topic/127608)
$-v = false
end
Expand Down

0 comments on commit 84b5bae

Please sign in to comment.