unimidi 0.1.8-i686-linux → 0.1.9-i686-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/unimidi +2 -2
  2. data/lib/unimidi.rb +2 -2
  3. metadata +1 -1
data/bin/unimidi CHANGED
@@ -5,6 +5,6 @@ require 'unimidi'
5
5
 
6
6
  opts = ARGV.length > 1 ? ARGV.slice(1, ARGV.length-1) : {}
7
7
 
8
- command = ARGV.first.to_sym rescue raise "no command specified"
8
+ raise "No command specified" if ARGV.first.nil?
9
9
 
10
- UniMIDI.command(command, opts)
10
+ UniMIDI.command(ARGV.first.to_sym, opts)
data/lib/unimidi.rb CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  module UniMIDI
8
8
 
9
- VERSION = "0.1.8"
9
+ VERSION = "0.1.9"
10
10
 
11
11
  end
12
12
 
@@ -25,7 +25,7 @@ module UniMIDI
25
25
  require 'pp'
26
26
  pp Device::all
27
27
  else
28
- $stderr.puts "Command #{command.to_s} not found"
28
+ raise "Command #{command.to_s} not found"
29
29
  end
30
30
  end
31
31
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: unimidi
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.8
5
+ version: 0.1.9
6
6
  platform: i686-linux
7
7
  authors:
8
8
  - Ari Russo