red-datasets-arrow 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7366d62379beccc060f19413b9a070e922b8d86a
4
- data.tar.gz: f2741a8c7a683e1d017c58cee2803be67d4b66f1
2
+ SHA256:
3
+ metadata.gz: ca91b18a3c0cccfdadaf81630a5d594d77b9d6283725d1975c75a882de91bd53
4
+ data.tar.gz: c3d965ca2a62f1a71c4aa0fb1f0c0baecb69e491bbca5bc36d2fc467b69fdee2
5
5
  SHA512:
6
- metadata.gz: e1cde042f3ef8100f96ce3fff0c8afdae208d7ced92fedca12ddd43834f01c89386b67e282d828d07fb380102e06352b5cbd3cc13469978e83a19714a853e9ce
7
- data.tar.gz: 3ff6576791a793a1b283a3919c524a9ca9c2ceb0f4c1fa62ca5e2e759d0a3649456a2e4cc88cfc498e7450927f1a83cd17d5da7f5df68d420226a61b24df0c16
6
+ metadata.gz: 8b46c2cf657a7933bacac1d09fb01c016605c1cdabf5751d9fd633df2895661f5b8c0716eb76127bd21261233a8f17fbc8b4323d26dd3f31bacbe5e9a83fbe54
7
+ data.tar.gz: 5084816d34f194c4f0da00e976eecf39328139caf756892fbac46c2e059260f5ff0a3480487c1e9fe692a1aa6c14ee1294c638bd00d77ce55ecafc2f90e5cc31
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 0.0.2 - 2018-03-27
4
+
5
+ ### Improvements
6
+
7
+ * Changed to use `Datasets::Table`.
8
+
3
9
  ## 0.0.1 - 2018-01-05
4
10
 
5
11
  Initial release!!!
@@ -7,15 +7,8 @@ module DatasetsArrow
7
7
  if data_path.exist?
8
8
  Arrow::Table.load(data_path)
9
9
  else
10
- columns = {}
11
- each do |record|
12
- record.to_h.each do |name, value|
13
- values = (columns[name] ||= [])
14
- values << value
15
- end
16
- end
17
10
  raw_table = {}
18
- columns.each do |name, values|
11
+ to_table.to_h.each do |name, values|
19
12
  raw_table[name] = Arrow::ArrayBuilder.build(values)
20
13
  end
21
14
  table = Arrow::Table.new(raw_table)
@@ -1,3 +1,3 @@
1
1
  module DatasetsArrow
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.test_files += Dir.glob("test/**/*")
36
36
 
37
37
  spec.add_runtime_dependency("red-arrow")
38
- spec.add_runtime_dependency("red-datasets")
38
+ spec.add_runtime_dependency("red-datasets", ">= 0.0.3")
39
39
 
40
40
  spec.add_development_dependency("bundler")
41
41
  spec.add_development_dependency("rake")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-datasets-arrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-05 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: red-arrow
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.0.3
34
34
  type: :runtime
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: '0'
40
+ version: 0.0.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.5.2.2
155
+ rubygems_version: 2.7.6
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Red Datasets Arrow adds [Apache Arrow](http://arrow.apache.org/) object export