red-plasma 0.15.0 → 1.0.0

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
2
  SHA256:
3
- metadata.gz: 8bf100627e4c9a8448813ac9c6772a8b2981b92d53ebdc490b114e21ef0d728c
4
- data.tar.gz: 07fb82bf541b045ba9f8ae2f4db5fd5c4066bb737072d2cd4d15351ab5f1a209
3
+ metadata.gz: 4bf1dbd583b975d17c83305bd7e63f2363ed923393d345b9b9f522dcc73cfa4b
4
+ data.tar.gz: 8441d5810e9eedd18e997074e3aa045429f222d9b0ce53f23180260c9ef26031
5
5
  SHA512:
6
- metadata.gz: e09608dc061688fdd4db3c9bc3c7aaabb01b1f4a9b0c9cd93bddeca79c6a75a7e9e2b03b27c6968bf64e2368a370f32fa691fe089e12ed88c1bfba9d00088400
7
- data.tar.gz: ca4ab09677d6e88825a5b68735a616cf2ad9602741524731624558abbdb5d4f1fde39d5597e6592fee22bf697ab217a6866337b4f67b858b6c16176c1e1b5e15
6
+ metadata.gz: a456848be6f239df22469fd6152ce00699b7e9fa98f00419abba7f6046ef069b3e801aae13bd948064e3d4e46c23c142016f227b38c34227c4fd90f72a10d0df
7
+ data.tar.gz: 7e038c9b6e46c7e5e50168c4b960f3b547ed6acb59c539cba294db6ed3a53e4132029107cda8c864bdf45b5cad7d69c2d5fbabf12cfda4ff2ac47004cd462bad
data/Rakefile CHANGED
@@ -30,10 +30,12 @@ release_task.prerequisites.replace(["build", "release:rubygem_push"])
30
30
 
31
31
  desc "Run tests"
32
32
  task :test do
33
- cd("dependency-check") do
34
- ruby("-S", "rake")
33
+ cd(base_dir) do
34
+ cd("dependency-check") do
35
+ ruby("-S", "rake")
36
+ end
37
+ ruby("test/run-test.rb")
35
38
  end
36
- ruby("test/run-test.rb")
37
39
  end
38
40
 
39
41
  task default: :test
@@ -16,7 +16,7 @@
16
16
  # under the License.
17
17
 
18
18
  module Plasma
19
- VERSION = "0.15.0"
19
+ VERSION = "1.0.0"
20
20
 
21
21
  module Version
22
22
  numbers, TAG = VERSION.split("-")
@@ -21,4 +21,5 @@ require "tempfile"
21
21
 
22
22
  require "test-unit"
23
23
 
24
+ require_relative "helper/omittable"
24
25
  require_relative "helper/plasma-store"
@@ -0,0 +1,36 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ module Helper
19
+ module Omittable
20
+ def require_gi_bindings(major, minor, micro)
21
+ return if GLib.check_binding_version?(major, minor, micro)
22
+ message =
23
+ "Require gobject-introspection #{major}.#{minor}.#{micro} or later: " +
24
+ GLib::BINDING_VERSION.join(".")
25
+ omit(message)
26
+ end
27
+
28
+ def require_gi(major, minor, micro)
29
+ return if GObjectIntrospection::Version.or_later?(major, minor, micro)
30
+ message =
31
+ "Require GObject Introspection #{major}.#{minor}.#{micro} or later: " +
32
+ GObjectIntrospection::Version::STRING
33
+ omit(message)
34
+ end
35
+ end
36
+ end
@@ -18,7 +18,7 @@
18
18
  module Helper
19
19
  class PlasmaStore
20
20
  def initialize(options={})
21
- @path = `pkg-config --variable=executable plasma`.chomp
21
+ @path = `pkg-config --variable=plasma_store_server plasma`.chomp
22
22
  @memory_size = options[:memory_size] || 1024 * 1024
23
23
  @socket_file = Tempfile.new(["plasma-store", ".sock"])
24
24
  @socket_file.close
@@ -34,7 +34,14 @@ test_dir = base_dir + "test"
34
34
  arrow_lib_dir = arrow_base_dir + "lib"
35
35
  arrow_ext_dir = arrow_base_dir + "ext" + "arrow"
36
36
 
37
- $LOAD_PATH.unshift(arrow_ext_dir.to_s)
37
+ build_dir = ENV["BUILD_DIR"]
38
+ if build_dir
39
+ arrow_build_dir = Pathname.new(build_dir) + "red-arrow"
40
+ else
41
+ arrow_build_dir = arrow_ext_dir
42
+ end
43
+
44
+ $LOAD_PATH.unshift(arrow_build_dir.to_s)
38
45
  $LOAD_PATH.unshift(arrow_lib_dir.to_s)
39
46
  $LOAD_PATH.unshift(lib_dir.to_s)
40
47
 
@@ -16,8 +16,11 @@
16
16
  # under the License.
17
17
 
18
18
  class TestPlasmaClient < Test::Unit::TestCase
19
+ include Helper::Omittable
20
+
19
21
  def setup
20
22
  @store = nil
23
+ require_gi_bindings(3, 3, 9)
21
24
  @store = Helper::PlasmaStore.new
22
25
  @store.start
23
26
  @id = Plasma::ObjectID.new("Hello")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-plasma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apache Arrow Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-05 00:00:00.000000000 Z
11
+ date: 2020-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: red-arrow
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.15.0
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.15.0
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,6 +86,7 @@ files:
86
86
  - lib/plasma/version.rb
87
87
  - red-plasma.gemspec
88
88
  - test/helper.rb
89
+ - test/helper/omittable.rb
89
90
  - test/helper/plasma-store.rb
90
91
  - test/run-test.rb
91
92
  - test/test-plasma-client.rb
@@ -93,7 +94,7 @@ homepage: https://arrow.apache.org/
93
94
  licenses:
94
95
  - Apache-2.0
95
96
  metadata: {}
96
- post_install_message:
97
+ post_install_message:
97
98
  rdoc_options: []
98
99
  require_paths:
99
100
  - lib
@@ -108,13 +109,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0'
110
111
  requirements: []
111
- rubyforge_project:
112
- rubygems_version: 2.7.6.2
113
- signing_key:
112
+ rubygems_version: 3.1.2
113
+ signing_key:
114
114
  specification_version: 4
115
115
  summary: Red Plasma is the Ruby bindings of Plasma
116
116
  test_files:
117
- - test/helper.rb
118
117
  - test/run-test.rb
118
+ - test/helper.rb
119
119
  - test/test-plasma-client.rb
120
120
  - test/helper/plasma-store.rb
121
+ - test/helper/omittable.rb