remote_table 0.2.18 → 0.2.19

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.18
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
- unless $?.success?
66
+ if raise_on_error and not $?.success?
67
67
  raise %{
68
68
  From the remote_table gem...
69
69
 
@@ -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.18"
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"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 18
9
- version: 0.2.18
8
+ - 19
9
+ version: 0.2.19
10
10
  platform: ruby
11
11
  authors:
12
12
  - Seamus Abshere