ride 0.3.1 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
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
- :write! /tmp/ride.temp
3
- call system("screen -p 1 -X stuff \"load " . '\"/tmp/ride.temp\"' . "\n\"")
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
@@ -1,7 +1,7 @@
1
1
  module Ride
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 3
4
+ MINOR = 4
5
5
  TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ride
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Vanderpoel