rscsv 0.5.0 → 0.6.0.beta1
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.
- checksums.yaml +5 -5
- data/Cargo.lock +3 -3
- data/ext/Makefile +1 -1
- data/lib/rscsv/native.so +0 -0
- data/lib/rscsv/version.rb +1 -1
- metadata +17 -23
- data/.gitignore +0 -15
- data/.rspec +0 -2
- data/.travis.yml +0 -12
- data/bin/benchmark +0 -46
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/rscsv.gemspec +0 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: c003b0a25e60b577e0a44a086fc7b40f1519c9de
|
|
4
|
+
data.tar.gz: d43a47a87b50946955fb2dfa4dd5e5e3184ecc6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6f32f764d9ecb7d3583e10a6d8550baff42e5609c3985f90ef9b662625d6c1600649a4893183a4c92e5352bbe30e2a88ec5fa2232b8e0fdad10575c0d9cb12e
|
|
7
|
+
data.tar.gz: ce30738e8554e9e0ea04e90df035fa2bf339691ce8e4eb43eaf04eeb155a1867da1551f1d7ab76ee4af7b7db604f5384dd0ae855248335361b804c77474a2758
|
data/Cargo.lock
CHANGED
|
@@ -9,7 +9,7 @@ version = "1.0.0-beta.5"
|
|
|
9
9
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"csv-core 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
12
|
-
"serde 1.0.
|
|
12
|
+
"serde 1.0.34 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
13
13
|
]
|
|
14
14
|
|
|
15
15
|
[[package]]
|
|
@@ -61,7 +61,7 @@ dependencies = [
|
|
|
61
61
|
|
|
62
62
|
[[package]]
|
|
63
63
|
name = "serde"
|
|
64
|
-
version = "1.0.
|
|
64
|
+
version = "1.0.34"
|
|
65
65
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
66
|
|
|
67
67
|
[metadata]
|
|
@@ -72,4 +72,4 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
72
72
|
"checksum libc 0.2.39 (registry+https://github.com/rust-lang/crates.io-index)" = "f54263ad99207254cf58b5f701ecb432c717445ea2ee8af387334bdd1a03fdff"
|
|
73
73
|
"checksum libcruby-sys 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e8b0fb9beb529127d706dd12e26f961be3e527badb74a7b2e5d6b9d928fe6059"
|
|
74
74
|
"checksum memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d"
|
|
75
|
-
"checksum serde 1.0.
|
|
75
|
+
"checksum serde 1.0.34 (registry+https://github.com/rust-lang/crates.io-index)" = "0e100d00fb985a5bf16b857a436450e404fa613de3321b2e383947a93cbd75df"
|
data/ext/Makefile
CHANGED
data/lib/rscsv/native.so
ADDED
|
Binary file
|
data/lib/rscsv/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rscsv
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ville Lautanala
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: helix_runtime
|
|
@@ -25,33 +25,33 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 0.7.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
34
|
-
type: :
|
|
33
|
+
version: '1.14'
|
|
34
|
+
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "
|
|
38
|
+
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '1.14'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - "
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '10.0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
54
|
+
version: '10.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rspec
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -88,25 +88,19 @@ extensions:
|
|
|
88
88
|
- ext/extconf.rb
|
|
89
89
|
extra_rdoc_files: []
|
|
90
90
|
files:
|
|
91
|
-
- ".gitignore"
|
|
92
|
-
- ".rspec"
|
|
93
|
-
- ".travis.yml"
|
|
94
91
|
- Cargo.lock
|
|
95
92
|
- Cargo.toml
|
|
96
93
|
- Gemfile
|
|
97
94
|
- LICENSE.txt
|
|
98
95
|
- README.md
|
|
99
96
|
- Rakefile
|
|
100
|
-
- bin/benchmark
|
|
101
|
-
- bin/console
|
|
102
|
-
- bin/setup
|
|
103
97
|
- ext/Makefile
|
|
104
98
|
- ext/Rakefile
|
|
105
99
|
- ext/extconf.rb
|
|
106
100
|
- lib/rscsv.rb
|
|
101
|
+
- lib/rscsv/native.so
|
|
107
102
|
- lib/rscsv/version.rb
|
|
108
103
|
- lib/tasks/helix_runtime.rake
|
|
109
|
-
- rscsv.gemspec
|
|
110
104
|
- src/lib.rs
|
|
111
105
|
homepage: https://github.com/lautis/rscsv
|
|
112
106
|
licenses:
|
|
@@ -123,12 +117,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
123
117
|
version: '0'
|
|
124
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
119
|
requirements:
|
|
126
|
-
- - "
|
|
120
|
+
- - ">"
|
|
127
121
|
- !ruby/object:Gem::Version
|
|
128
|
-
version:
|
|
122
|
+
version: 1.3.1
|
|
129
123
|
requirements: []
|
|
130
124
|
rubyforge_project:
|
|
131
|
-
rubygems_version: 2.
|
|
125
|
+
rubygems_version: 2.6.14
|
|
132
126
|
signing_key:
|
|
133
127
|
specification_version: 4
|
|
134
128
|
summary: Rust-powered CSV
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
sudo: false
|
|
2
|
-
language: ruby
|
|
3
|
-
rvm:
|
|
4
|
-
- 2.5.0
|
|
5
|
-
- 2.4.3
|
|
6
|
-
- 2.3.6
|
|
7
|
-
before_install:
|
|
8
|
-
- gem install bundler -v 1.16.1
|
|
9
|
-
- if [ ! -e "$HOME/.cargo/bin" ]; then curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y; fi
|
|
10
|
-
- export PATH="$HOME/.cargo/bin:$PATH"
|
|
11
|
-
- rustup default stable
|
|
12
|
-
- rustc --version
|
data/bin/benchmark
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
$LOAD_PATH << File.dirname(__FILE__) + '/../lib'
|
|
4
|
-
|
|
5
|
-
require 'benchmark/ips'
|
|
6
|
-
require 'securerandom'
|
|
7
|
-
require 'rscsv'
|
|
8
|
-
require 'csv'
|
|
9
|
-
|
|
10
|
-
rows = (0...1000).map do
|
|
11
|
-
(0...10).map { SecureRandom.hex }
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
csv_string = CSV.generate do |csv|
|
|
15
|
-
rows.each { |row| csv << row }
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
Benchmark.ips do |x|
|
|
19
|
-
x.report('Ruby CSV') do |times|
|
|
20
|
-
times.times do
|
|
21
|
-
CSV.generate do |csv|
|
|
22
|
-
rows.each { |row| csv << row }
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
x.report('rscsv') do |times|
|
|
28
|
-
times.times { Rscsv::Writer.generate_lines(rows) }
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
x.compare!
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
Benchmark.ips do |x|
|
|
35
|
-
x.report('Ruby CSV') do |times|
|
|
36
|
-
times.times do
|
|
37
|
-
CSV.parse(csv_string)
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
x.report('rscsv') do |times|
|
|
42
|
-
times.times { Rscsv::Reader.parse(csv_string) }
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
x.compare!
|
|
46
|
-
end
|
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "rscsv"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/rscsv.gemspec
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
-
require 'rscsv/version'
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = 'rscsv'
|
|
7
|
-
spec.version = Rscsv::VERSION
|
|
8
|
-
spec.authors = ['Ville Lautanala']
|
|
9
|
-
spec.email = ['lautis@gmail.com']
|
|
10
|
-
|
|
11
|
-
spec.summary = 'Rust-powered CSV'
|
|
12
|
-
spec.description = 'Fast CSV using Rust extensions.'
|
|
13
|
-
spec.homepage = 'https://github.com/lautis/rscsv'
|
|
14
|
-
spec.license = 'MIT'
|
|
15
|
-
|
|
16
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
17
|
-
f.match(%r{^(test|spec|features)/})
|
|
18
|
-
end
|
|
19
|
-
spec.bindir = 'exe'
|
|
20
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
21
|
-
spec.require_paths = ['lib']
|
|
22
|
-
spec.extensions = Dir['ext/extconf.rb']
|
|
23
|
-
|
|
24
|
-
spec.add_dependency 'helix_runtime', '0.7.3'
|
|
25
|
-
spec.add_dependency 'rake', '>= 10.0'
|
|
26
|
-
spec.add_development_dependency 'bundler', '~> 1.14'
|
|
27
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
28
|
-
spec.add_development_dependency 'benchmark-ips', '~> 2.7'
|
|
29
|
-
end
|