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 +7 -0
- data/bin/rct-complete +1 -1
- data/bin/rct-doc +1 -1
- data/bin/rct-meth-args +1 -1
- data/bin/xmpfilter +1 -1
- data/lib/rcodetools/options.rb +1 -1
- data/lib/rcodetools/xmpfilter.rb +5 -1
- data/rcodetools.el +3 -1
- data/rcodetools.elc +0 -0
- metadata +2 -2
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
data/bin/rct-doc
CHANGED
data/bin/rct-meth-args
CHANGED
data/bin/xmpfilter
CHANGED
data/lib/rcodetools/options.rb
CHANGED
@@ -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",
|
data/lib/rcodetools/xmpfilter.rb
CHANGED
@@ -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.
|
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)
|
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.
|
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-
|
12
|
+
date: 2009-04-09 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|