remote_table 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/remote_table.rb +2 -2
- data/lib/remote_table/file.rb +1 -1
- data/remote_table.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.19
|
data/lib/remote_table.rb
CHANGED
@@ -60,10 +60,10 @@ class RemoteTable
|
|
60
60
|
protected
|
61
61
|
|
62
62
|
# TODO this should probably live somewhere else
|
63
|
-
def self.backtick_with_reporting(cmd)
|
63
|
+
def self.backtick_with_reporting(cmd, raise_on_error = true)
|
64
64
|
cmd = cmd.gsub /\s+/m, ' '
|
65
65
|
output = `#{cmd}`
|
66
|
-
|
66
|
+
if raise_on_error and not $?.success?
|
67
67
|
raise %{
|
68
68
|
From the remote_table gem...
|
69
69
|
|
data/lib/remote_table/file.rb
CHANGED
@@ -65,7 +65,7 @@ class RemoteTable
|
|
65
65
|
|
66
66
|
def convert_file_to_utf8!
|
67
67
|
return if encoding == 'UTF-8' or encoding == 'UTF8'
|
68
|
-
RemoteTable.backtick_with_reporting "iconv -c -f #{encoding} -t UTF-8 #{path} > #{path}.tmp"
|
68
|
+
RemoteTable.backtick_with_reporting "iconv -c -f #{encoding} -t UTF-8 #{path} > #{path}.tmp", false
|
69
69
|
FileUtils.mv "#{path}.tmp", path
|
70
70
|
end
|
71
71
|
|
data/remote_table.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{remote_table}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.19"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Seamus Abshere", "Andy Rossmeissl"]
|