ride 0.3.1 → 0.4.1
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
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
== 0.4.1 2008-10-14
|
2
|
+
|
3
|
+
* 2 major enhancements:
|
4
|
+
* Modified std_err_hooks.rb to know when the file loaded came from an <F12> in vim
|
5
|
+
(loading buffer into irb). If so, it will just switch back to the screen window
|
6
|
+
with the original file open, and move the cursor to the erroring line
|
7
|
+
* Writing the file in /tmp/ now keeps SCREEN window number and full path intact (though coded)
|
8
|
+
|
9
|
+
== 0.3.1 2008-10-13
|
10
|
+
|
11
|
+
* 2 major enhancements:
|
12
|
+
* Added std_err_hooks.rb so that when on a console session, any errors encountered
|
13
|
+
open up the files which errored in vim, with the cursor on the line which triggered
|
14
|
+
the Exception
|
15
|
+
* Tested on newgem, merb, and rails. Full working (with vim-only)
|
16
|
+
|
17
|
+
== 0.2.1 2008-10-13
|
18
|
+
|
19
|
+
* 4 major enhancements:
|
20
|
+
* Added <F12> keybinding in vim to load current vim buffer in irb and switch to it
|
21
|
+
* Moved vim files to proper directories
|
22
|
+
* Made a new ride-console script to make sure the debuuger (irb, window 1) opens
|
23
|
+
properly for non-rails/non-newgem apps (works on merb!)
|
24
|
+
* Added .irbrc
|
25
|
+
|
1
26
|
== 0.0.1 2008-08-19
|
2
27
|
|
3
28
|
* 1 major enhancement:
|
@@ -1,6 +1,9 @@
|
|
1
1
|
fun! LoadRubyTmp()
|
2
|
-
:
|
3
|
-
|
2
|
+
let b:fname = substitute(expand("%"), "/", "{slash}", "g")
|
3
|
+
let b:filename = "/tmp/ride." . $STY . "->" . $WINDOW . "->" . b:fname
|
4
|
+
" echo b:filename
|
5
|
+
execute "write " . b:filename
|
6
|
+
call system("screen -p 1 -X stuff \"load " . '\"' . b:filename . '\"' . "\n\"")
|
4
7
|
call system("screen -X select 1")
|
5
8
|
endfun
|
6
9
|
nmap <F12> :call LoadRubyTmp()<CR>
|
@@ -1,3 +1,28 @@
|
|
1
|
+
== 0.4.1 2008-10-14
|
2
|
+
|
3
|
+
* 2 major enhancements:
|
4
|
+
* Modified std_err_hooks.rb to know when the file loaded came from an <F12> in vim
|
5
|
+
(loading buffer into irb). If so, it will just switch back to the screen window
|
6
|
+
with the original file open, and move the cursor to the erroring line
|
7
|
+
* Writing the file in /tmp/ now keeps SCREEN window number and full path intact (though coded)
|
8
|
+
|
9
|
+
== 0.3.1 2008-10-13
|
10
|
+
|
11
|
+
* 2 major enhancements:
|
12
|
+
* Added std_err_hooks.rb so that when on a console session, any errors encountered
|
13
|
+
open up the files which errored in vim, with the cursor on the line which triggered
|
14
|
+
the Exception
|
15
|
+
* Tested on newgem, merb, and rails. Full working (with vim-only)
|
16
|
+
|
17
|
+
== 0.2.1 2008-10-13
|
18
|
+
|
19
|
+
* 4 major enhancements:
|
20
|
+
* Added <F12> keybinding in vim to load current vim buffer in irb and switch to it
|
21
|
+
* Moved vim files to proper directories
|
22
|
+
* Made a new ride-console script to make sure the debuuger (irb, window 1) opens
|
23
|
+
properly for non-rails/non-newgem apps (works on merb!)
|
24
|
+
* Added .irbrc
|
25
|
+
|
1
26
|
== 0.0.1 2008-08-19
|
2
27
|
|
3
28
|
* 1 major enhancement:
|
data/lib/ride/version.rb
CHANGED
data/lib/std_err_hooks.rb
CHANGED
@@ -16,14 +16,23 @@ class StandardError
|
|
16
16
|
file, line_number, rest = line.split(":")
|
17
17
|
[file, line_number]
|
18
18
|
end.uniq
|
19
|
-
s = "screen vim -p"
|
20
19
|
file, line = good_lines.shift
|
20
|
+
if file.match("->")
|
21
|
+
window = file.split("->")[1]
|
22
|
+
%x{screen -X select #{window}}
|
23
|
+
%x{screen -p #{window} -X stuff ":#{line}\n"}
|
24
|
+
return
|
25
|
+
end
|
26
|
+
s = "screen vim -p"
|
21
27
|
s << " +#{line} #{file}"
|
28
|
+
# for handling multiple levels back, disabled for now
|
29
|
+
=begin
|
22
30
|
good_lines.each do |l|
|
23
31
|
file, line = l
|
24
32
|
s << " -c tabnext -c #{line} #{file} "
|
25
33
|
end
|
26
34
|
s << " -c tabnext " if good_lines.size > 0
|
35
|
+
=end
|
27
36
|
%x{screen -X #{s}}
|
28
37
|
end
|
29
38
|
end
|