schlueter-textmate_rush 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +2 -0
- data/Manifest.txt +7 -0
- data/README +3 -0
- data/lib/textmate_rush.rb +5 -0
- data/lib/textmate_rush/command.rb +23 -0
- data/lib/textmate_rush/textmate_helper.rb +23 -0
- data/textmate_rush.gemspec +34 -0
- metadata +70 -0
data/History.txt
ADDED
data/Manifest.txt
ADDED
data/README
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
module TextmateRush
|
2
|
+
class Command
|
3
|
+
include TextmateHelper
|
4
|
+
attr_accessor :shell
|
5
|
+
def initialize()
|
6
|
+
self.shell = Rush::Shell.new
|
7
|
+
end
|
8
|
+
|
9
|
+
def run(&block)
|
10
|
+
self.instance_eval(&block)
|
11
|
+
end
|
12
|
+
|
13
|
+
def execute(thing)
|
14
|
+
shell.execute(thing)
|
15
|
+
$last_res
|
16
|
+
end
|
17
|
+
|
18
|
+
def method_missing(sym, *args, &block)
|
19
|
+
execute sym.to_s
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module TextmateRush
|
2
|
+
module TextmateHelper
|
3
|
+
def tm_current_word
|
4
|
+
ENV['TM_CURRENT_WORD']
|
5
|
+
end
|
6
|
+
|
7
|
+
def tm_directory
|
8
|
+
root[ENV['TM_DIRECTORY'] + "/"]
|
9
|
+
end
|
10
|
+
|
11
|
+
def tm_file
|
12
|
+
root[ENV['TM_FILEPATH']]
|
13
|
+
end
|
14
|
+
|
15
|
+
def tm_filename
|
16
|
+
ENV["TM_FILENAME"]
|
17
|
+
end
|
18
|
+
|
19
|
+
def tm_project_directory
|
20
|
+
root[ENV['TM_PROJECT_DIRECTORY'] + "/"]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "textmate_rush"
|
3
|
+
s.version = "0.0.2"
|
4
|
+
s.email = "schlueter@gmail.com"
|
5
|
+
s.homepage = "http://github.com/schlueter/textmate_rush"
|
6
|
+
s.description = "Textmate to Rush bridge"
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.date = %q{2008-08-13}
|
9
|
+
s.require_paths = ["lib"]
|
10
|
+
s.rubygems_version = %q{1.2.0}
|
11
|
+
s.summary = "Textmate to Rush bridge"
|
12
|
+
s.authors = ["Nicholas Schlueter"]
|
13
|
+
s.files = [
|
14
|
+
"History.txt",
|
15
|
+
"Manifest.txt",
|
16
|
+
"README",
|
17
|
+
"textmate_rush.gemspec",
|
18
|
+
"lib/textmate_rush.rb",
|
19
|
+
"lib/textmate_rush/command.rb",
|
20
|
+
"lib/textmate_rush/textmate_helper.rb"
|
21
|
+
]
|
22
|
+
|
23
|
+
s.has_rdoc = true
|
24
|
+
s.rdoc_options = ["--main", "README"]
|
25
|
+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README"]
|
26
|
+
s.add_dependency(%q<rush>, [">= 0.4"])
|
27
|
+
|
28
|
+
if s.respond_to? :specification_version then
|
29
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
30
|
+
s.specification_version = 2
|
31
|
+
|
32
|
+
else
|
33
|
+
end
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: schlueter-textmate_rush
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nicholas Schlueter
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-08-13 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rush
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0.4"
|
23
|
+
version:
|
24
|
+
description: Textmate to Rush bridge
|
25
|
+
email: schlueter@gmail.com
|
26
|
+
executables: []
|
27
|
+
|
28
|
+
extensions: []
|
29
|
+
|
30
|
+
extra_rdoc_files:
|
31
|
+
- History.txt
|
32
|
+
- Manifest.txt
|
33
|
+
- README
|
34
|
+
files:
|
35
|
+
- History.txt
|
36
|
+
- Manifest.txt
|
37
|
+
- README
|
38
|
+
- textmate_rush.gemspec
|
39
|
+
- lib/textmate_rush.rb
|
40
|
+
- lib/textmate_rush/command.rb
|
41
|
+
- lib/textmate_rush/textmate_helper.rb
|
42
|
+
has_rdoc: true
|
43
|
+
homepage: http://github.com/schlueter/textmate_rush
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options:
|
46
|
+
- --main
|
47
|
+
- README
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: "0"
|
55
|
+
version:
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: "0"
|
61
|
+
version:
|
62
|
+
requirements: []
|
63
|
+
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 1.2.0
|
66
|
+
signing_key:
|
67
|
+
specification_version: 2
|
68
|
+
summary: Textmate to Rush bridge
|
69
|
+
test_files: []
|
70
|
+
|