red-plasma 0.15.0 → 1.0.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.
- checksums.yaml +4 -4
- data/Rakefile +5 -3
- data/lib/plasma/version.rb +1 -1
- data/test/helper.rb +1 -0
- data/test/helper/omittable.rb +36 -0
- data/test/helper/plasma-store.rb +1 -1
- data/test/run-test.rb +8 -1
- data/test/test-plasma-client.rb +3 -0
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bf1dbd583b975d17c83305bd7e63f2363ed923393d345b9b9f522dcc73cfa4b
|
4
|
+
data.tar.gz: 8441d5810e9eedd18e997074e3aa045429f222d9b0ce53f23180260c9ef26031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
34
|
-
|
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
|
data/lib/plasma/version.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -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
|
data/test/helper/plasma-store.rb
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
module Helper
|
19
19
|
class PlasmaStore
|
20
20
|
def initialize(options={})
|
21
|
-
@path = `pkg-config --variable=
|
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
|
data/test/run-test.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/test/test-plasma-client.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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.
|
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
|
-
|
112
|
-
|
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
|