Sha256: a426e02a46bb5231c33470e138cf396b2a81620866ff64287ca464283773bd97
Contents?: true
Size: 1.07 KB
Versions: 7
Compression:
Stored size: 1.07 KB
Contents
task :default => :spec require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = '--backtrace --color' end task :run do file = 'spec/temp.txt' File.open(file, 'w'){|f|f.write("12345\n1234\n#{'abcdefg'*20}\n123")} exec "./bin/ruco #{file}" end task :try do require 'curses' Curses.setpos(0,0) Curses.addstr("xxxxxxxx\nyyyyyyy"); Curses.getch end task :key do require 'curses' Curses.noecho Curses.raw Curses.stdscr.keypad(true) count = 0 loop do count = (count + 1) % 20 key = Curses.getch break if key == ?\C-c Curses.setpos(count,0) Curses.addstr("#{key.inspect} "); end end begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = 'ruco' gem.summary = "Commandline editor written in ruby" gem.email = "michael@grosser.it" gem.homepage = "http://github.com/grosser/#{gem.name}" gem.authors = ["Michael Grosser"] end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler" end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
ruco-0.0.8 | Rakefile |
ruco-0.0.7 | Rakefile |
ruco-0.0.6 | Rakefile |
ruco-0.0.5 | Rakefile |
ruco-0.0.4 | Rakefile |
ruco-0.0.2 | Rakefile |
ruco-0.0.1 | Rakefile |