csvkit 0.0.1 → 0.0.2

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/csvkit.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["matt@route66.sytes.net"]
11
11
  gem.description = %q{Rack middleware to convert a <table> into a csv}
12
12
  gem.summary = %q{Inspired by PDFKit, allows a html page (with a <table>) to be converted to a csv file.}
13
- gem.homepage = ""
13
+ gem.homepage = "https://github.com/fourseven/csvkit"
14
14
 
15
15
  gem.add_dependency "nokogiri"
16
16
 
data/lib/csvkit/csvkit.rb CHANGED
@@ -19,7 +19,7 @@ class CSVKit
19
19
 
20
20
  doc.xpath('//table//tr').each do |row|
21
21
  row.xpath('td').each do |cell|
22
- result += '"' + cell.text.gsub("\n", ' ').gsub('"', '\"').gsub(/(\s){2,}/m, '\1').gsub(/\,\$/, '') + "\", "
22
+ result += '"' + cell.text.gsub("\n", ' ').gsub('"', '\"').gsub(/(\s){2,}/m, '\1').gsub(/[\,\$]/, '') + "\", "
23
23
  end
24
24
  result += "\n"
25
25
  end
@@ -1,3 +1,3 @@
1
1
  class CSVKit
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csvkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -46,7 +46,7 @@ files:
46
46
  - lib/csvkit/version.rb
47
47
  - test/lib/csvkit/version_test.rb
48
48
  - test/test_helper.rb
49
- homepage: ''
49
+ homepage: https://github.com/fourseven/csvkit
50
50
  licenses: []
51
51
  post_install_message:
52
52
  rdoc_options: []