remote_table 0.2.20 → 0.2.21
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 +1 -1
- data/lib/remote_table/file.rb +1 -1
- data/remote_table.gemspec +2 -2
- data/test/remote_table_test.rb +4 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.21
|
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"
|
69
69
|
FileUtils.mv "#{path}.tmp", path
|
70
70
|
end
|
71
71
|
|
data/remote_table.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
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.21"
|
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"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-06}
|
13
13
|
s.description = %q{Remotely open and parse Excel XLS, ODS, CSV and fixed-width tables.}
|
14
14
|
s.email = %q{seamus@abshere.net}
|
15
15
|
s.extra_rdoc_files = [
|
data/test/remote_table_test.rb
CHANGED
@@ -128,12 +128,9 @@ class RemoteTableTest < Test::Unit::TestCase
|
|
128
128
|
end
|
129
129
|
|
130
130
|
if ENV['ALL'] == 'true' or ENV['NEW'] == 'true'
|
131
|
-
end
|
132
|
-
|
133
|
-
if ENV['ALL'] == 'true' or ENV['FAST'] == 'true'
|
134
131
|
should "be able to apply errata files" do
|
135
132
|
t = RemoteTable.new :url => "http://www.faa.gov/air_traffic/publications/atpubs/CNT/5-2-G.htm",
|
136
|
-
:encoding => '
|
133
|
+
:encoding => 'windows-1252',
|
137
134
|
:row_xpath => '//table/tr[2]/td/table/tr',
|
138
135
|
:column_xpath => 'td',
|
139
136
|
:errata => Errata.new(:table => RemoteTable.new(:url => 'http://spreadsheets.google.com/pub?key=tObVAGyqOkCBtGid0tJUZrw'),
|
@@ -143,7 +140,9 @@ class RemoteTableTest < Test::Unit::TestCase
|
|
143
140
|
assert_equal 'GRUMMAN', g1['Manufacturer']
|
144
141
|
assert_equal 'G159 Gulfstream I (TC4 Academe, VC4)', g1['Model']
|
145
142
|
end
|
146
|
-
|
143
|
+
end
|
144
|
+
|
145
|
+
if ENV['ALL'] == 'true' or ENV['FAST'] == 'true'
|
147
146
|
# this will die with an error about libcurl if your curl doesn't support ssl
|
148
147
|
should "connect using HTTPS if available" do
|
149
148
|
t = RemoteTable.new(:url => 'https://spreadsheets.google.com/pub?key=t5HM1KbaRngmTUbntg8JwPA')
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 21
|
9
|
+
version: 0.2.21
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Seamus Abshere
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-06 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|