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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dda9dc51ecb09af106b546abe8f40afccb47e4c9cbb2188b3233bfa90a1d0a7d
4
- data.tar.gz: ae5f5942fa3d4e45d64f771e4cbdb3ab15f5838882b221dfc8bd5119bd91585a
3
+ metadata.gz: 6d89c5c55b154d5c1fceb57d808ce1a5b3b9d2fbc4a647e8fdf11c289315a5df
4
+ data.tar.gz: 7bca7230d86caf849f87e91dc0cace2813376cc8f064a2b07fdb690d6b34554b
5
5
  SHA512:
6
- metadata.gz: 927e0694ab21d193eb03dad1a359a0959d78c91cf03f888265053ffdc6437ec6e115f9d378bb4f40d3a475078e47c5384b7c8de0390b4756a6955f040cfd0eb8
7
- data.tar.gz: 9a74be43eae67ea5538db601a08228819c619381a7a3bb2fdf39eb6031bda68d6e51f1541491fe516fa74df500a0cd307c2223683f8b13eaab4a7166a0806326
6
+ metadata.gz: 673615da50a4ca1f9b480deddfc5b06c235acb21967164bf31e53c1abadb0a4d084b3e2cd0779e8c7539a3c10b09cd72609484c1b1c9acbc86fa4c446fd1436f
7
+ data.tar.gz: 23dab3910539e8d43c860334ead3ef35bca4dcfc835030e30390460edbeff1287f73e34b8ac8c023a84c3918c46756974522b8cf4cb69ab149e07449a0c9b8d4
data/Changelog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.14.0 / 2018-09-27
2
+
3
+ * Depend on GirFFI 0.14.0
4
+ * Drop support for Ruby 2.1
5
+
1
6
  ## 0.12.1 / 2018-07-09
2
7
 
3
8
  * Restore support for CRuby 2.1 and 2.2
@@ -2,14 +2,15 @@ require 'gir_ffi'
2
2
 
3
3
  GirFFI.setup :Tracker
4
4
 
5
- module Tracker
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 "get_string"
10
+ setup_instance_method! 'get_string'
10
11
 
11
- def get_string_with_hidden_length column
12
- result, _ = *get_string_without_hidden_length(column)
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 += ["-w"]
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 += ["-w"]
15
+ t.ruby_opts += ['-w']
16
16
  end
17
17
  end
18
18
 
19
19
  desc 'run unit and integration tests'
20
- task :test => ['test:unit', 'test:integration']
20
+ task test: ['test:unit', 'test:integration']
data/tasks/yardoc.rake CHANGED
@@ -1,9 +1,6 @@
1
- begin
2
- require 'yard'
1
+ require 'yard'
3
2
 
4
- YARD::Rake::YardocTask.new do |t|
5
- t.files = ['lib/**/*.rb']
6
- t.options = ['--private', '--protected', '--readme', 'README.md']
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 "Upon load" do
4
- describe "the Tracker module" do
5
- it "should exist" do
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 "#get_string" do
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 "returns just the string value" do
13
- @cursor.get_string(0).must_equal "Foo"
12
+ it 'returns just the string value' do
13
+ @cursor.get_string(0).must_equal 'Foo'
14
14
  end
15
15
 
16
- it "can safely be called twice" do
16
+ it 'can safely be called twice' do
17
17
  @cursor.get_string(0)
18
- @cursor.get_string(0).must_equal "Foo"
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.12.1
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-07-09 00:00:00.000000000 Z
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.12.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.12.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.1.0
102
+ version: 2.2.0
89
103
  required_rubygems_version: !ruby/object:Gem::Requirement
90
104
  requirements:
91
105
  - - ">="