public this repo is viewable by everyone
Fork of drnic/ruby-on-rails-tmbundle
Description: Ruby on Rails TextMate bundle [master branch is svn trunk; patches to drnicwilliams@gmail.com]
Homepage: http://macromates.com
Clone URL: git://github.com/Infininight/ruby-on-rails-tmbundle.git
Remove refresh_project_drawer in favor of global rescan_project library 
method.
Infininight (author)
2 months ago
commit  c1160ccd8fd575a698a44d7b4a7094a1a7c973d8
tree    920c6eeed6657a0f348871e7186beeef8429dc7a
parent  4e2fe3ade86e6bbd8b4c47482a6e81dc8d85ff59
...
36
37
38
39
 
40
41
42
...
36
37
38
 
39
40
41
42
0
@@ -36,7 +36,7 @@ if TextMate.selected_text
0
     end
0
 
0
     file = File.open(partial, "w") { |f| f.write(TextMate.selected_text) }
0
- TextMate.refresh_project_drawer
0
+ TextMate.rescan_project
0
 
0
     # Return the new render :partial line
0
     print "<%= render :partial => '#{partial_name}' %>\n"
...
49
50
51
52
 
53
54
55
...
49
50
51
 
52
53
54
55
0
@@ -49,7 +49,7 @@ if choice = TextMate.choose("Generate:", Generator.names.map { |name| Inflector.
0
 
0
     output = ruby(command)
0
     $logger.debug "Output: #{output}"
0
- TextMate.refresh_project_drawer
0
+ TextMate.rescan_project
0
     files = files_from_generator_output(output)
0
     files.each { |f| TextMate.open(File.join(rails_root, f)) }
0
     TextMate.textbox("Done generating #{Generator.generators[choice].name}", output, :title => "Done")
...
53
54
55
56
 
57
...
53
54
55
 
56
57
0
@@ -53,5 +53,5 @@ RUBY
0
 FileUtils.mkdir_p migration_dir
0
 new_migration_filename = File.join(migration_dir, number + "_" + underscored + ".rb")
0
 File.open(new_migration_filename, "w") { |f| f.write generated_code }
0
-TextMate.refresh_project_drawer
0
+TextMate.rescan_project
0
 TextMate.open(new_migration_filename, 2, 8)
...
42
43
44
45
 
46
47
48
...
42
43
44
 
45
46
47
48
0
@@ -42,7 +42,7 @@ end
0
 RUBY
0
       rails_path.append generated_code
0
     end
0
- TextMate.refresh_project_drawer
0
+ TextMate.rescan_project
0
   end
0
 
0
   TextMate.open rails_path
...
21
22
23
24
25
26
27
28
29
30
31
...
21
22
23
 
 
 
 
 
24
25
26
0
@@ -21,11 +21,6 @@ module TextMate
0
       open_url "txmt://open?" + options.join("&")
0
     end
0
 
0
- # Switching away from and then back to TextMate will automatically cause it to refresh the project drawer
0
- def refresh_project_drawer
0
- `osascript -e 'tell application "Dock" to activate'; osascript -e 'tell application "TextMate" to activate'`
0
- end
0
-
0
     # Always return something, or nil, for selected_text
0
     def selected_text
0
       env(:selected_text)
...
38
39
40
41
42
43
44
45
46
...
38
39
40
 
 
 
41
42
43
0
@@ -38,9 +38,6 @@ module TextMate
0
       "open \"#{url}\""
0
     end
0
 
0
- def refresh_project_drawer
0
- end
0
-
0
     def env(var)
0
       TextMate.class_eval("@@#{var}")
0
     end

Comments

    No one has commented yet.