-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from arirusso/0.4.0
0.4.0
- Loading branch information
Showing
22 changed files
with
425 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
source "https://rubygems.org" | ||
# frozen_string_literal: true | ||
|
||
group :test do | ||
gem "mocha" | ||
gem "rake" | ||
gem "shoulda-context" | ||
end | ||
source 'https://rubygems.org' | ||
|
||
gem "ffi" | ||
gem 'ffi', '~> 1.15', '>= 1.15.5' | ||
gem 'rake', '~> 13.0', '>= 13.0.6', groups: %i[development test] | ||
gem 'rspec', '~> 3.11', '>= 3.11.0', groups: %i[test] | ||
gem 'rubocop', '~> 1.10', '>= 1.10.0', groups: %i[development test], require: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,4 @@ Otherwise | |
|
||
Apache 2.0, See the file LICENSE | ||
|
||
Copyright (c) 2010-2017 Ari Russo | ||
Copyright (c) 2010-2022 Ari Russo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
require "rake" | ||
require "rake/testtask" | ||
# frozen_string_literal: true | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << "test" | ||
t.test_files = FileList["test/**/*_test.rb"] | ||
t.verbose = true | ||
end | ||
begin | ||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => [:test] | ||
task default: :spec | ||
rescue LoadError | ||
# no rspec available | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
dir = File.dirname(File.expand_path(__FILE__)) | ||
$LOAD_PATH.unshift dir + "/../lib" | ||
$LOAD_PATH.unshift "#{dir}/../lib" | ||
|
||
# Lists all of the available MIDI devices | ||
|
||
require "alsa-rawmidi" | ||
require "pp" | ||
require 'alsa-rawmidi' | ||
require 'pp' | ||
|
||
pp AlsaRawMIDI::Device.all_by_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
# | ||
# alsa-rawmidi | ||
# ALSA Driver Interface | ||
# | ||
# (c) 2010-2014 Ari Russo | ||
# (c) 2010-2022 Ari Russo | ||
# Licensed under Apache 2.0 | ||
# https://github.com/arirusso/alsa-rawmidi | ||
# | ||
|
||
# libs | ||
require "ffi" | ||
require 'ffi' | ||
|
||
# modules | ||
require "alsa-rawmidi/api" | ||
require "alsa-rawmidi/device" | ||
require "alsa-rawmidi/version" | ||
require 'alsa-rawmidi/api' | ||
require 'alsa-rawmidi/device' | ||
require 'alsa-rawmidi/type_conversion' | ||
require 'alsa-rawmidi/version' | ||
|
||
# class | ||
require "alsa-rawmidi/input" | ||
require "alsa-rawmidi/output" | ||
require "alsa-rawmidi/soundcard" | ||
require 'alsa-rawmidi/input' | ||
require 'alsa-rawmidi/output' | ||
require 'alsa-rawmidi/soundcard' | ||
|
||
module AlsaRawMIDI | ||
|
||
end |
Oops, something went wrong.