Module: Castanaut
- Defined in:
- lib/castanaut.rb,
lib/castanaut/keys.rb,
lib/castanaut/main.rb,
lib/plugins/ishowu.rb,
lib/plugins/safari.rb,
lib/castanaut/movie.rb,
lib/castanaut/plugin.rb,
lib/plugins/ishowuhd.rb,
lib/plugins/keystack.rb,
lib/plugins/terminal.rb,
lib/plugins/textmate.rb,
lib/plugins/mousepose.rb,
lib/plugins/snapz_pro.rb,
lib/castanaut/exceptions.rb,
lib/castanaut/os/mac_os_x.rb,
lib/castanaut/os/mac_os_x_legacy.rb
Overview
modifications for iShowU HD 2009-04-23
Defined Under Namespace
Modules: Exceptions, OS, Plugin Classes: Main, Movie
Constant Summary collapse
- VERSION =
:stopdoc:
'1.1.2'- LIBPATH =
::File.(::File.dirname(__FILE__)) + ::File::SEPARATOR
- PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR
- FILE_RUNNING =
"/tmp/castanaut.running"- FILE_APPLESCRIPT =
"/tmp/castanaut.scpt"- Return =
"0x24"- Enter =
"0x4C"- Tab =
"0x30"- Space =
"0x31"- Backspace =
"0x33"- Esc =
"0x35"- Shift =
"0x38"- CapsLock =
"0x39"- Alt =
"0x3A"- Ctrl =
"0x3B"- Command =
"0x37"- LArrow =
"0x7B"- RArrow =
"0x7C"- DArrow =
"0x7D"- UArrow =
"0x7E"- Insert =
"0x72"- Home =
"0x73"- PageUp =
"0x74"- Delete =
"0x75"- End =
"0x77"- PageDown =
"0x79"- F1 =
"0x7A"- F2 =
"0x78"- F3 =
"0x63"- F4 =
"0x76"- F5 =
"0x60"- F6 =
"0x61"- F7 =
"0x62"- F8 =
"0x64"- F9 =
"0x65"- F10 =
"0x6D"- F11 =
"0x67"- F12 =
"0x6F"
Class Method Summary collapse
-
.libpath(*args) ⇒ Object
Returns the library path for the module.
-
.path(*args) ⇒ Object
Returns the lpath for the module.
-
.require_all_libs_relative_to(fname, dir = nil) ⇒ Object
Utility method used to rquire all files ending in .rb that lie in the directory below this file that has the same name as the filename passed in.
-
.version ⇒ Object
Returns the version string for the library.
Class Method Details
.libpath(*args) ⇒ Object
Returns the library path for the module. If any arguments are given, they will be joined to the end of the libray path using File.join.
31 32 33 |
# File 'lib/castanaut.rb', line 31 def self.libpath( *args ) args.empty? ? LIBPATH : ::File.join(LIBPATH, *args) end |
.path(*args) ⇒ Object
Returns the lpath for the module. If any arguments are given, they will be joined to the end of the path using File.join.
39 40 41 |
# File 'lib/castanaut.rb', line 39 def self.path( *args ) args.empty? ? PATH : ::File.join(PATH, *args) end |
.require_all_libs_relative_to(fname, dir = nil) ⇒ Object
Utility method used to rquire all files ending in .rb that lie in the directory below this file that has the same name as the filename passed in. Optionally, a specific directory name can be passed in such that the filename does not have to be equivalent to the directory.
48 49 50 51 52 53 54 |
# File 'lib/castanaut.rb', line 48 def self.require_all_libs_relative_to( fname, dir = nil ) dir ||= ::File.basename(fname, '.*') search_me = ::File.( ::File.join(::File.dirname(fname), dir, '**', '*.rb')) Dir.glob(search_me).sort.each {|rb| require rb} end |
.version ⇒ Object
Returns the version string for the library.
23 24 25 |
# File 'lib/castanaut.rb', line 23 def self.version VERSION end |