rcodetools 0.8.2.0 → 0.8.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -106,4 +106,11 @@ task :install do
106
106
  sh "sudo ruby setup.rb install"
107
107
  end
108
108
 
109
+ desc "release in rubyforge"
110
+ task :release => [:package] do
111
+ sh "rubyforge login"
112
+ sh "rubyforge add_release rcodetools rcodetools #{RCT_VERSION} pkg/rcodetools-#{RCT_VERSION}.0.tar.gz "
113
+ sh "rubyforge add_file rcodetools rcodetools #{RCT_VERSION} pkg/rcodetools-#{RCT_VERSION}.0.gem "
114
+ end
115
+
109
116
  # vim: set sw=2 ft=ruby:
data/bin/rct-complete CHANGED
@@ -1,4 +1,4 @@
1
- #! /pkgs/ruby18/bin/ruby18
1
+ #! /pkgs/ruby19/bin/ruby19
2
2
  require 'rcodetools/xmpfilter'
3
3
  require 'rcodetools/completion'
4
4
  require 'rcodetools/options'
data/bin/rct-doc CHANGED
@@ -1,4 +1,4 @@
1
- #! /pkgs/ruby18/bin/ruby18
1
+ #! /pkgs/ruby19/bin/ruby19
2
2
  require 'rcodetools/xmpfilter'
3
3
  require 'rcodetools/doc'
4
4
  require 'rcodetools/options'
data/bin/rct-meth-args CHANGED
@@ -1,4 +1,4 @@
1
- #! /pkgs/ruby18/bin/ruby18
1
+ #! /pkgs/ruby19/bin/ruby19
2
2
  # Copyright (c)
3
3
  # 2006-2007 Mauricio Fernandez <mfp@acm.org> http://eigenclass.org
4
4
  # 2006-2007 rubikitch <rubikitch@ruby-lang.org> http://www.rubyist.net/~rubikitch/
data/bin/xmpfilter CHANGED
@@ -1,4 +1,4 @@
1
- #! /pkgs/ruby18/bin/ruby18
1
+ #! /pkgs/ruby19/bin/ruby19
2
2
  require 'rcodetools/xmpfilter'
3
3
  require 'rcodetools/options'
4
4
 
@@ -13,7 +13,7 @@ module OptionHandler
13
13
  on("--line=LINE", "Current line number.") do |n|
14
14
  options[:lineno] = n.to_i
15
15
  end
16
- on("--column=COLUMN", "Current column number.") do |n|
16
+ on("--column=COLUMN", "Current column number in BYTE.") do |n|
17
17
  options[:column] = n.to_i
18
18
  end
19
19
  on("-t TEST", "--test=TEST",
@@ -3,6 +3,10 @@
3
3
  # rubikitch <rubikitch@ruby-lang.org>
4
4
  # Use and distribution subject to the terms of the Ruby license.
5
5
 
6
+ # This is needed regexps cannot match with invalid-encoding strings.
7
+ # xmpfilter is unaware of script encoding.
8
+ Encoding.default_external = "ASCII-8BIT" if RUBY_VERSION >= "1.9"
9
+
6
10
  ENV['HOME'] ||= "#{ENV['HOMEDRIVE']}#{ENV['HOMEPATH']}"
7
11
  require 'rcodetools/fork_config'
8
12
  require 'rcodetools/compat'
@@ -11,7 +15,7 @@ require 'tmpdir'
11
15
  module Rcodetools
12
16
 
13
17
  class XMPFilter
14
- VERSION = "0.8.2"
18
+ VERSION = "0.8.3"
15
19
 
16
20
  MARKER = "!XMP#{Time.new.to_i}_#{Process.pid}_#{rand(1000000)}!"
17
21
  XMP_RE = Regexp.new("^" + Regexp.escape(MARKER) + '\[([0-9]+)\] (=>|~>|==>) (.*)')
data/rcodetools.el CHANGED
@@ -155,7 +155,9 @@ See also `rct-interactive'."
155
155
  (rct-shell-command
156
156
  (format "%s %s %s --line=%d --column=%d %s"
157
157
  command opt (or rct-option-local "")
158
- (rct-current-line) (current-column)
158
+ (rct-current-line)
159
+ ;; specify column in BYTE
160
+ (string-bytes (buffer-substring (point-at-bol) (point)))
159
161
  (if rct-use-test-script (rct-test-script-option-string) ""))
160
162
  eval-buffer)
161
163
  (message "")
data/rcodetools.elc CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcodetools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2.0
4
+ version: 0.8.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubikitch and Mauricio Fernandez
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-03 00:00:00 +09:00
12
+ date: 2009-04-09 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15