schlueter-rushmate 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.0.5 / 2008-08-13
2
+ * removed tm_ from most methods
3
+
1
4
  == 0.0.4 / 2008-08-13
2
5
  * added reasonable README
3
6
  * cleaned up api
data/README CHANGED
@@ -20,10 +20,10 @@ require 'rubygems'
20
20
  require 'rushmate'
21
21
  Rushmate::Command.new {
22
22
  # find ruby files with the current word in textmate
23
- found_files = tm_project_directory["**/#{tm_current_word.downcase}.rb"]
23
+ found_files = project_directory["**/#{current_word.downcase}.rb"]
24
24
  if found_files.empty?
25
25
  # if you can't find any files show a tool tip
26
- exit.show_tool_tip("can't find #{tm_current_word.downcase}.rb in project")
26
+ exit.show_tool_tip("can't find #{current_word.downcase}.rb in project")
27
27
  else
28
28
  # go ahead and switch to the found file(s)
29
29
  found_files.mate
@@ -1,6 +1,10 @@
1
1
  module Rushmate
2
2
  module TextmateHelper
3
- def tm_current_word
3
+ def current_line
4
+ ENV["TM_CURRENT_LINE"]
5
+ end
6
+
7
+ def current_word
4
8
  ENV['TM_CURRENT_WORD']
5
9
  end
6
10
 
@@ -16,12 +20,23 @@ module Rushmate
16
20
  ENV["TM_FILENAME"]
17
21
  end
18
22
 
19
- def tm_project_directory
23
+ def project_directory?
24
+ ENV['TM_PROJECT_DIRECTORY']
25
+ end
26
+
27
+ def project_directory
20
28
  root[ENV['TM_PROJECT_DIRECTORY'] + "/"]
21
29
  end
22
30
 
23
- def tm_current_line
24
- ENV["TM_CURRENT_LINE"]
31
+ def selected_text
32
+ ENV["TM_SELECTED_TEXT"]
25
33
  end
34
+
35
+
36
+ alias :tm_current_line :current_line
37
+ alias :tm_current_word :current_word
38
+ alias :tm_project_directory? :project_directory?
39
+ alias :tm_project_directory :project_directory
40
+ alias :tm_selected_text :selected_text
26
41
  end
27
42
  end
data/rushmate.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rushmate"
3
- s.version = "0.0.4"
3
+ s.version = "0.0.5"
4
4
  s.email = "schlueter@gmail.com"
5
5
  s.homepage = "http://github.com/schlueter/rushmate"
6
6
  s.description = "Textmate to Rush bridge"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schlueter-rushmate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Schlueter