Skip to content
Browse files

add contributor notices, move some requires around, add Platform depe…

…ndency, 0.2.0!
  • Loading branch information...
1 parent 7d22efd commit 84b5bae228da8c6e5dfc898f5cb0f7a7848a1027 @bleything bleything committed Oct 29, 2008
Showing with 37 additions and 6 deletions.
  1. +5 −0 README
  2. +15 −3 lib/midiator.rb
  3. +5 −3 lib/midiator/interface.rb
  4. +4 −0 lib/midiator/notes.rb
  5. +2 −0 misc/rake/packaging.rb
  6. +6 −0 spec/interface_spec.rb
View
5 README
@@ -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
View
18 lib/midiator.rb
@@ -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'
View
8 lib/midiator/interface.rb
@@ -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
@@ -32,6 +33,7 @@ def autodetect_driver
when :linux
:alsa
end
+
self.use(driver)
end
View
4 lib/midiator/notes.rb
@@ -7,6 +7,10 @@
#
# * Ben Bleything <ben@bleything.net>
#
+# == Contributors
+#
+# * Xavier Shay
+#
# == Copyright
#
# Copyright (c) 2008 Ben Bleything
View
2 misc/rake/packaging.rb
@@ -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|
View
6 spec/interface_spec.rb
@@ -6,6 +6,10 @@
#
# * Ben Bleything <ben@bleything.net>
#
+# == Contributors
+#
+# * Giles Bowkett
+#
# == Copyright
#
# Copyright (c) 2008 Ben Bleything
@@ -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

0 comments on commit 84b5bae

Please sign in to comment.
Something went wrong with that request. Please try again.