Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jimm/patchmaster
base: 9e13152394
...
head fork: jimm/patchmaster
compare: 70670ff3eb
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 15 additions and 12 deletions.
  1. +2 −0  .gitignore
  2. +6 −5 Rakefile
  3. +7 −7 lib/patchmaster/app/main.rb
View
2  .gitignore
@@ -1 +1,3 @@
.rbenv-version
+html
+pkg
View
11 Rakefile
@@ -6,6 +6,7 @@ require 'rubygems/package_task'
HERE = File.dirname(__FILE__)
PROJECT_NAME = 'patchmaster'
+VERSION = '0.0.0'
task :default => [:package]
@@ -24,7 +25,7 @@ end
spec = Gem::Specification.new do |s|
s.name = PROJECT_NAME
- s.version = '0.0.0'
+ s.version = VERSION
s.date = '2012-04-09'
s.summary = "Realtime MIDI setup configuration and MIDI filtering"
s.description = <<EOS
@@ -44,13 +45,13 @@ end
# Creates a :package task (also named :gem). Also useful are :clobber_package
# and :repackage.
-Gem::PackageTask.new(spec) do |pkg|
- pkg.need_zip = true
- pkg.need_tar = true
+Gem::PackageTask.new(spec) do |package|
end
+desc "Publish the gem to RubyGems.org"
task :publish => [:rdoc, :package] do
- system "gem push"
+ system "gem push pkg/#{PROJECT_NAME}-#{VERSION}.gem"
end
+desc "Clean up rdoc and packages"
task :clean => [:clobber_rdoc, :clobber_package]
View
14 lib/patchmaster/app/main.rb
@@ -40,13 +40,13 @@ def run
ch = getch
message("ch = #{ch}") if $DEBUG
case ch
- when ?j, Patch::DOWN
+ when ?j, Key::DOWN
@pm.next_patch
- when ?k, Patch::UP
+ when ?k, Key::UP
@pm.prev_patch
- when ?n, Patch::LEFT
+ when ?n, Key::LEFT
@pm.next_song
- when ?p, Patch::RIGHT
+ when ?p, Key::RIGHT
@pm.prev_song
when ?g
name = PromptWindow.new('Go To Song', 'Go to song:').gets
@@ -54,7 +54,7 @@ def run
when ?t
name = PromptWindow.new('Go To Song List', 'Go to Song List:').gets
@pm.goto_song_list(name)
- when Patch::F1
+ when Key::F1
help
when 27 # escape
@pm.panic
@@ -95,8 +95,8 @@ def run
def config_curses
init_screen
cbreak # unbuffered input
- noecho # do not show typed patchs
- stdscr.patchpad(true) # enable arrow patchs
+ noecho # do not show typed keys
+ stdscr.keypad(true) # enable arrow keys
curs_set(0) # cursor: 0 = invisible, 1 = normal
end

No commit comments for this range

Something went wrong with that request. Please try again.