gir_ffi-tracker 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +7 -0
- data/Rakefile +6 -4
- data/lib/ffi-tracker.rb +3 -1
- data/lib/gir_ffi-tracker.rb +4 -2
- data/tasks/test.rake +13 -11
- data/tasks/yardoc.rake +5 -3
- data/test/integration/load_test.rb +6 -4
- data/test/test_helper.rb +5 -3
- data/test/unit/tracker_sparql_cursor_test.rb +8 -6
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d65518d080e177346105bf9c2f5d547cd5d00a57c528d5c621981fded3f46d7
|
4
|
+
data.tar.gz: 189bc840bf3e6a5a1bb216359b9e3fedb550505df173edffee3e71c3b18cd1ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f6ed0dce57c5372a1209b026d7a57a52f8921a1626171396b088ee0cc04430f0baf0c16a22cb7356a33c122cfe5a9b6d86ba3429049296a1bbe951d5bcfa33e
|
7
|
+
data.tar.gz: bdcf0044eb4b131ec0194372e63864b6eace4b79fda588c01d82fd880008b34e917ea88938cba2d101599b29e2a6018a0bbbfaee51c2ba79a212a25d04958c03
|
data/Changelog.md
CHANGED
data/Rakefile
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
require 'bundler/gem_tasks'
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
|
-
|
5
|
-
|
3
|
+
require "rake/clean"
|
4
|
+
require "bundler/gem_tasks"
|
5
|
+
|
6
|
+
import "tasks/test.rake"
|
7
|
+
import "tasks/yardoc.rake"
|
6
8
|
|
7
9
|
task default: :test
|
data/lib/ffi-tracker.rb
CHANGED
data/lib/gir_ffi-tracker.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "gir_ffi"
|
2
4
|
|
3
5
|
GirFFI.setup :Tracker
|
4
6
|
|
@@ -7,7 +9,7 @@ Tracker.load_class :SparqlCursor
|
|
7
9
|
module Tracker
|
8
10
|
# Overrides for Tracker::SparqlCursor
|
9
11
|
class SparqlCursor
|
10
|
-
setup_instance_method!
|
12
|
+
setup_instance_method! "get_string"
|
11
13
|
|
12
14
|
def get_string_with_hidden_length(column)
|
13
15
|
result, = *get_string_without_hidden_length(column)
|
data/tasks/test.rake
CHANGED
@@ -1,20 +1,22 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rake/testtask"
|
2
4
|
|
3
5
|
namespace :test do
|
4
|
-
desc
|
6
|
+
desc "run unit tests"
|
5
7
|
Rake::TestTask.new(:unit) do |t|
|
6
|
-
t.libs = [
|
7
|
-
t.test_files = FileList[
|
8
|
-
t.ruby_opts += [
|
8
|
+
t.libs = ["lib"]
|
9
|
+
t.test_files = FileList["test/unit/*_test.rb"]
|
10
|
+
t.ruby_opts += ["-w"]
|
9
11
|
end
|
10
12
|
|
11
|
-
desc
|
13
|
+
desc "run integration tests"
|
12
14
|
Rake::TestTask.new(:integration) do |t|
|
13
|
-
t.libs = [
|
14
|
-
t.test_files = FileList[
|
15
|
-
t.ruby_opts += [
|
15
|
+
t.libs = ["lib"]
|
16
|
+
t.test_files = FileList["test/integration/*_test.rb"]
|
17
|
+
t.ruby_opts += ["-w"]
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
19
|
-
desc
|
20
|
-
task test: [
|
21
|
+
desc "run unit and integration tests"
|
22
|
+
task test: ["test:unit", "test:integration"]
|
data/tasks/yardoc.rake
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "yard"
|
2
4
|
|
3
5
|
YARD::Rake::YardocTask.new do |t|
|
4
|
-
t.files = [
|
5
|
-
t.options = [
|
6
|
+
t.files = ["lib/**/*.rb"]
|
7
|
+
t.options = ["--private", "--protected", "--readme", "README.md"]
|
6
8
|
end
|
@@ -1,8 +1,10 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require File.expand_path("../test_helper.rb", File.dirname(__FILE__))
|
4
|
+
|
5
|
+
describe "Upon load" do
|
6
|
+
describe "the Tracker module" do
|
7
|
+
it "should exist" do
|
6
8
|
Tracker
|
7
9
|
end
|
8
10
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "minitest/autorun"
|
4
4
|
|
5
|
-
|
5
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
6
|
+
|
7
|
+
require "gir_ffi-tracker"
|
@@ -1,7 +1,9 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path("../test_helper.rb", File.dirname(__FILE__))
|
2
4
|
|
3
5
|
describe Tracker::SparqlCursor do
|
4
|
-
describe
|
6
|
+
describe "#get_string" do
|
5
7
|
before do
|
6
8
|
conn = Tracker::SparqlConnection.get
|
7
9
|
@cursor = conn.query "SELECT 'Foo' { }", nil
|
@@ -9,13 +11,13 @@ describe Tracker::SparqlCursor do
|
|
9
11
|
@cursor.next nil
|
10
12
|
end
|
11
13
|
|
12
|
-
it
|
13
|
-
@cursor.get_string(0).must_equal
|
14
|
+
it "returns just the string value" do
|
15
|
+
_(@cursor.get_string(0)).must_equal "Foo"
|
14
16
|
end
|
15
17
|
|
16
|
-
it
|
18
|
+
it "can safely be called twice" do
|
17
19
|
@cursor.get_string(0)
|
18
|
-
@cursor.get_string(0).must_equal
|
20
|
+
_(@cursor.get_string(0)).must_equal "Foo"
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gir_ffi-tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gir_ffi
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.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: 0.15.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '5.
|
33
|
+
version: '5.12'
|
34
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: '5.
|
40
|
+
version: '5.12'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
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: '13.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: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,15 +99,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 2.
|
102
|
+
version: 2.4.0
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
|
-
|
110
|
-
rubygems_version: 2.7.6
|
109
|
+
rubygems_version: 3.0.6
|
111
110
|
signing_key:
|
112
111
|
specification_version: 4
|
113
112
|
summary: GirFFI-based binding to Tracker
|