csvkit 0.0.4 → 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 212a5611a1aa2fe68aaa73c90963704eeeed1309
4
+ data.tar.gz: f07f47cc1b563d8deee9cedc5d08c5566a3e2753
5
+ SHA512:
6
+ metadata.gz: 1ac262ebea41eed517c85a7e85ff2484ebe13e081c12a9a9744c3d0a88fda2ffb3fbbd859974a9ac2799514be20fe5d3b45c45539a168b1422c9591db99d40b7
7
+ data.tar.gz: c716fb487fef79748bfa92e4e86232dadd4751a8d9623fdcc8f76f3610de2f42bb0967137d6e1440220e0fa63f60adcca8fcebe30ae9c7afb3cbf0117846a316
@@ -31,9 +31,8 @@ class CSVKit
31
31
 
32
32
  raise "command failed" if tsv_str.to_s.strip.empty?
33
33
 
34
- write_content = Iconv.conv("utf-16le", "utf-8", "\xEF\xBB\xBF")
35
- write_content += Iconv.conv("utf-16le", "utf-8", tsv_str)
36
- write_content
34
+ write_content = "\xEF\xBB\xBF".encode!(Encoding::UTF_16LE, Encoding::UTF_8, invalid: :replace, undef: :replace, replace: '')
35
+ write_content += tsv_str.encode!(Encoding::UTF_16LE, Encoding::UTF_8, invalid: :replace, undef: :replace, replace: '')
37
36
  return write_content
38
37
  end
39
38
 
@@ -1,3 +1,3 @@
1
1
  class CSVKit
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csvkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mathew Hartley
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-21 00:00:00.000000000 Z
11
+ date: 2013-04-09 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: Rack middleware to convert a <table> into a csv
@@ -48,27 +45,26 @@ files:
48
45
  - test/test_helper.rb
49
46
  homepage: https://github.com/fourseven/csvkit
50
47
  licenses: []
48
+ metadata: {}
51
49
  post_install_message:
52
50
  rdoc_options: []
53
51
  require_paths:
54
52
  - lib
55
53
  required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
54
  requirements:
58
- - - ! '>='
55
+ - - '>='
59
56
  - !ruby/object:Gem::Version
60
57
  version: '0'
61
58
  required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
59
  requirements:
64
- - - ! '>='
60
+ - - '>='
65
61
  - !ruby/object:Gem::Version
66
62
  version: '0'
67
63
  requirements: []
68
64
  rubyforge_project:
69
- rubygems_version: 1.8.24
65
+ rubygems_version: 2.0.0
70
66
  signing_key:
71
- specification_version: 3
67
+ specification_version: 4
72
68
  summary: Inspired by PDFKit, allows a html page (with a <table>) to be converted to
73
69
  a csv file.
74
70
  test_files: