gir_ffi-tracker 0.12.1 → 0.14.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 +5 -0
- data/lib/gir_ffi-tracker.rb +6 -5
- data/tasks/test.rake +3 -3
- data/tasks/yardoc.rake +4 -7
- data/test/integration/load_test.rb +3 -3
- data/test/unit/tracker_sparql_cursor_test.rb +5 -5
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d89c5c55b154d5c1fceb57d808ce1a5b3b9d2fbc4a647e8fdf11c289315a5df
|
4
|
+
data.tar.gz: 7bca7230d86caf849f87e91dc0cace2813376cc8f064a2b07fdb690d6b34554b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 673615da50a4ca1f9b480deddfc5b06c235acb21967164bf31e53c1abadb0a4d084b3e2cd0779e8c7539a3c10b09cd72609484c1b1c9acbc86fa4c446fd1436f
|
7
|
+
data.tar.gz: 23dab3910539e8d43c860334ead3ef35bca4dcfc835030e30390460edbeff1287f73e34b8ac8c023a84c3918c46756974522b8cf4cb69ab149e07449a0c9b8d4
|
data/Changelog.md
CHANGED
data/lib/gir_ffi-tracker.rb
CHANGED
@@ -2,14 +2,15 @@ require 'gir_ffi'
|
|
2
2
|
|
3
3
|
GirFFI.setup :Tracker
|
4
4
|
|
5
|
-
|
6
|
-
load_class :SparqlCursor
|
5
|
+
Tracker.load_class :SparqlCursor
|
7
6
|
|
7
|
+
module Tracker
|
8
|
+
# Overrides for Tracker::SparqlCursor
|
8
9
|
class SparqlCursor
|
9
|
-
setup_instance_method
|
10
|
+
setup_instance_method! 'get_string'
|
10
11
|
|
11
|
-
def get_string_with_hidden_length
|
12
|
-
result,
|
12
|
+
def get_string_with_hidden_length(column)
|
13
|
+
result, = *get_string_without_hidden_length(column)
|
13
14
|
result
|
14
15
|
end
|
15
16
|
|
data/tasks/test.rake
CHANGED
@@ -5,16 +5,16 @@ namespace :test do
|
|
5
5
|
Rake::TestTask.new(:unit) do |t|
|
6
6
|
t.libs = ['lib']
|
7
7
|
t.test_files = FileList['test/unit/*_test.rb']
|
8
|
-
t.ruby_opts += [
|
8
|
+
t.ruby_opts += ['-w']
|
9
9
|
end
|
10
10
|
|
11
11
|
desc 'run integration tests'
|
12
12
|
Rake::TestTask.new(:integration) do |t|
|
13
13
|
t.libs = ['lib']
|
14
14
|
t.test_files = FileList['test/integration/*_test.rb']
|
15
|
-
t.ruby_opts += [
|
15
|
+
t.ruby_opts += ['-w']
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
desc 'run unit and integration tests'
|
20
|
-
task :
|
20
|
+
task test: ['test:unit', 'test:integration']
|
data/tasks/yardoc.rake
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
require 'yard'
|
1
|
+
require 'yard'
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
end
|
8
|
-
rescue LoadError
|
3
|
+
YARD::Rake::YardocTask.new do |t|
|
4
|
+
t.files = ['lib/**/*.rb']
|
5
|
+
t.options = ['--private', '--protected', '--readme', 'README.md']
|
9
6
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require File.expand_path('../test_helper.rb', File.dirname(__FILE__))
|
2
2
|
|
3
|
-
describe
|
4
|
-
describe
|
5
|
-
it
|
3
|
+
describe 'Upon load' do
|
4
|
+
describe 'the Tracker module' do
|
5
|
+
it 'should exist' do
|
6
6
|
Tracker
|
7
7
|
end
|
8
8
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require File.expand_path('../test_helper.rb', File.dirname(__FILE__))
|
2
2
|
|
3
3
|
describe Tracker::SparqlCursor do
|
4
|
-
describe
|
4
|
+
describe '#get_string' do
|
5
5
|
before do
|
6
6
|
conn = Tracker::SparqlConnection.get
|
7
7
|
@cursor = conn.query "SELECT 'Foo' { }", nil
|
@@ -9,13 +9,13 @@ describe Tracker::SparqlCursor do
|
|
9
9
|
@cursor.next nil
|
10
10
|
end
|
11
11
|
|
12
|
-
it
|
13
|
-
@cursor.get_string(0).must_equal
|
12
|
+
it 'returns just the string value' do
|
13
|
+
@cursor.get_string(0).must_equal 'Foo'
|
14
14
|
end
|
15
15
|
|
16
|
-
it
|
16
|
+
it 'can safely be called twice' do
|
17
17
|
@cursor.get_string(0)
|
18
|
-
@cursor.get_string(0).must_equal
|
18
|
+
@cursor.get_string(0).must_equal 'Foo'
|
19
19
|
end
|
20
20
|
end
|
21
21
|
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.14.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: 2018-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gir_ffi
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.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.14.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '12.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.14
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.14
|
55
69
|
description: Bindings for Tracker generated by GirFFI, with overrides.
|
56
70
|
email:
|
57
71
|
- matijs@matijs.net
|
@@ -85,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
99
|
requirements:
|
86
100
|
- - ">="
|
87
101
|
- !ruby/object:Gem::Version
|
88
|
-
version: 2.
|
102
|
+
version: 2.2.0
|
89
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
104
|
requirements:
|
91
105
|
- - ">="
|