gir_ffi-gnome_keyring 0.0.6 → 0.0.11

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
- SHA1:
3
- metadata.gz: c3048f24273bbc8edba0c65169092ee6584d3f00
4
- data.tar.gz: 87c50014c4c13b592112aedeab97f7354fbac557
2
+ SHA256:
3
+ metadata.gz: a2782206538ac1eb64c63986dafb7bf1776acd87adb76d2a94088fccb61dd8a1
4
+ data.tar.gz: 2959c2985546be0ccf7593a472202691a08cc6eecf142dc72f6f2ec352992e34
5
5
  SHA512:
6
- metadata.gz: c12fc2555407e363f4318bca376abaa2bcdad645f50fcc4a16692049173ce1e023fe960c0e1b472cd537bed59f16b5ad5a0ec30d7781d378097e12adf4d1ee31
7
- data.tar.gz: dc12b9fc5ddc5a40fc84968ac42716f3b19827f8af490dc3fb31aabf017655909e0a478beaa75ac7cc2ded55c3e9b7b337244d2abd0299419477833a34c00472
6
+ metadata.gz: 47bf1f4b8baba10c99924c2203cf7079db1ffc0e7053192c23bdff1499834d0d5bc5d4cdb1f27d95c100e8d82d777ef656298dba55b1847b14aa3171c72bfc32
7
+ data.tar.gz: 76c272b01bd98603ad687cfcfd3099d2bb65e77947915f5398e4a729f4683e7df83531d19de15173b22a41f42956c91b3d5a8bd2a25ba5274b407ff49d7f3294
@@ -1,10 +1,34 @@
1
- # Change log
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ * Drop support for Ruby 2.2 and 2.3
6
+ * Depend on GirFFI 0.15.1
7
+
8
+ ## 0.0.10 / 2018-09-08
9
+
10
+ * Drop support for Ruby 2.1
11
+ * Depend on GirFFI 0.13.0
12
+
13
+ ## 0.0.9 / 2018-05-22
14
+
15
+ * Restore support for Ruby 2.1 and 2.2
16
+
17
+ ## 0.0.8 / 2018-03-24
18
+
19
+ * Depend on GirFFI 0.12.0
20
+ * Require CRuby 2.3 or above
21
+
22
+ ## 0.0.7 / 2017-09-22
23
+
24
+ * Depend on GirFFI 0.11.0
25
+ * Require CRuby 2.1 or above
2
26
 
3
27
  ## 0.0.6 / 2016-03-23
4
28
 
5
29
  * Depend on GirFFI 0.10.0
6
30
  * Update overrides to work with GirFFI's changed API
7
- * Avoid using g_boxed_free to free Attribute
31
+ * Avoid using `g_boxed_free` to free Attribute
8
32
 
9
33
  ## 0.0.5 / 2016-01-21
10
34
 
@@ -21,7 +45,7 @@
21
45
  ## 0.0.2 / 2013-08-03
22
46
 
23
47
  * Depend on GirFFI 0.6.6
24
- * Remove override for AttributeList#index
48
+ * Remove override for `AttributeList#index`
25
49
 
26
50
  ## 0.0.1 / 2013-08-03
27
51
 
data/README.md CHANGED
@@ -46,7 +46,7 @@ GirFFI-based bindings for GnomeKeyring
46
46
 
47
47
  ## License
48
48
 
49
- Copyright © 2013–2016 [Matijs van Zuijlen](http://www.matijs.net)
49
+ Copyright © 2013–2016, 2018 [Matijs van Zuijlen](http://www.matijs.net)
50
50
 
51
51
  GirFFI-GnomeKeyring is free software, distributed under the terms of the GNU
52
52
  Lesser General Public License, version 2.1 or later. See the file COPYING.LIB
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_helper'
2
4
  require 'rake/clean'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'gir_ffi'
2
4
 
3
5
  GirFFI.setup 'GnomeKeyring'
@@ -6,11 +8,12 @@ require 'gir_ffi-gnome_keyring/attribute'
6
8
  require 'gir_ffi-gnome_keyring/attribute_list'
7
9
  require 'gir_ffi-gnome_keyring/found'
8
10
 
11
+ # Overrides for GnomeKeyring singleton methods
9
12
  module GnomeKeyring
10
- setup_method :find_items_sync
11
- setup_method :item_create_sync
12
- setup_method :item_get_attributes_sync
13
- setup_method :item_set_attributes_sync
13
+ setup_method! :find_items_sync
14
+ setup_method! :item_create_sync
15
+ setup_method! :item_get_attributes_sync
16
+ setup_method! :item_set_attributes_sync
14
17
 
15
18
  class << self
16
19
  remove_method :find_items_sync
@@ -20,39 +23,37 @@ module GnomeKeyring
20
23
  end
21
24
 
22
25
  def self.find_items_sync(type, attributes)
23
- _v2 = GnomeKeyring::AttributeList.from(attributes)
24
- _v3 = FFI::MemoryPointer.new :pointer
25
- _v4 = GnomeKeyring::Lib.gnome_keyring_find_items_sync(type, _v2, _v3)
26
- _v5 = GLib::List.wrap(GnomeKeyring::Found, _v3.get_pointer(0))
27
- return [_v4, _v5]
26
+ v2 = GnomeKeyring::AttributeList.from(attributes)
27
+ v3 = FFI::MemoryPointer.new :pointer
28
+ v4 = GnomeKeyring::Lib.gnome_keyring_find_items_sync(type, v2, v3)
29
+ v5 = GLib::List.wrap(GnomeKeyring::Found, v3.get_pointer(0))
30
+ [v4, v5]
28
31
  end
29
32
 
30
33
  def self.item_create_sync(keyring, type, display_name, attributes, secret,
31
34
  update_if_exists)
32
- _v1 = GirFFI::InPointer.from_utf8(keyring)
33
- _v3 = GirFFI::InPointer.from_utf8(display_name)
34
- _v4 = GnomeKeyring::AttributeList.from(attributes)
35
- _v5 = GirFFI::InPointer.from_utf8(secret)
36
- _v7 = FFI::MemoryPointer.new :uint32
37
- _v8 = GnomeKeyring::Lib.gnome_keyring_item_create_sync(_v1, type, _v3, _v4,
38
- _v5,
39
- update_if_exists,
40
- _v7)
41
- _v9 = _v7.get_uint32(0)
42
- return [_v8, _v9]
35
+ v1 = GirFFI::InPointer.from_utf8(keyring)
36
+ v3 = GirFFI::InPointer.from_utf8(display_name)
37
+ v4 = GnomeKeyring::AttributeList.from(attributes)
38
+ v5 = GirFFI::InPointer.from_utf8(secret)
39
+ v7 = FFI::MemoryPointer.new :uint32
40
+ v8 = GnomeKeyring::Lib.gnome_keyring_item_create_sync(v1, type, v3, v4, v5,
41
+ update_if_exists, v7)
42
+ v9 = v7.get_uint32(0)
43
+ [v8, v9]
43
44
  end
44
45
 
45
46
  def self.item_get_attributes_sync(keyring, id)
46
- _v1 = GirFFI::InPointer.from_utf8(keyring)
47
- _v3 = FFI::MemoryPointer.new :pointer
48
- _v4 = GnomeKeyring::Lib.gnome_keyring_item_get_attributes_sync(_v1, id, _v3)
49
- attributes = GnomeKeyring::AttributeList.wrap(_v3.get_pointer(0))
50
- return [_v4, attributes]
47
+ v1 = GirFFI::InPointer.from_utf8(keyring)
48
+ v3 = FFI::MemoryPointer.new :pointer
49
+ v4 = GnomeKeyring::Lib.gnome_keyring_item_get_attributes_sync(v1, id, v3)
50
+ attributes = GnomeKeyring::AttributeList.wrap(v3.get_pointer(0))
51
+ [v4, attributes]
51
52
  end
52
53
 
53
54
  def self.item_set_attributes_sync(keyring, id, attributes)
54
- _v1 = GirFFI::InPointer.from_utf8(keyring)
55
- _v3 = GnomeKeyring::AttributeList.from(attributes)
56
- GnomeKeyring::Lib.gnome_keyring_item_set_attributes_sync(_v1, id, _v3)
55
+ v1 = GirFFI::InPointer.from_utf8(keyring)
56
+ v3 = GnomeKeyring::AttributeList.from(attributes)
57
+ GnomeKeyring::Lib.gnome_keyring_item_set_attributes_sync(v1, id, v3)
57
58
  end
58
59
  end
@@ -1,17 +1,19 @@
1
- module GnomeKeyring
2
- load_class :Attribute
1
+ # frozen_string_literal: true
3
2
 
3
+ GnomeKeyring.load_class :Attribute
4
+ module GnomeKeyring
5
+ # Overrides for GnomeKeyringAttribute
4
6
  class Attribute
5
- setup_method 'list_new'
6
- setup_method 'list_append_string'
7
- setup_method 'list_append_uint32'
7
+ setup_method! 'list_new'
8
+ setup_method! 'list_append_string'
9
+ setup_method! 'list_append_uint32'
8
10
 
9
11
  private_class_method :list_new,
10
- :list_append_string,
11
- :list_append_uint32,
12
- :list_copy,
13
- :list_free,
14
- :list_to_glist
12
+ :list_append_string,
13
+ :list_append_uint32,
14
+ :list_copy,
15
+ :list_free,
16
+ :list_to_glist
15
17
 
16
18
  def make_finalizer
17
19
  # Don't make a finalizer; Use FFI's regular free of the pointer instead.
@@ -1,33 +1,36 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'gir_ffi-gnome_keyring/attribute'
2
4
 
3
5
  module GnomeKeyring
6
+ # GLib::Array alias used when returning lists of GnomeKeyringAttribute.
4
7
  class AttributeList < GLib::Array
5
8
  def self.new
6
9
  ptr = GnomeKeyring::Lib.gnome_keyring_attribute_list_new
7
10
  wrap(ptr)
8
11
  end
9
12
 
10
- def self.wrap ptr
13
+ def self.wrap(ptr)
11
14
  super GnomeKeyring::Attribute, ptr
12
15
  end
13
16
 
14
- def self.from it
15
- case it
16
- when self then it
17
- when FFI::Pointer then wrap it
18
- else self.new.tap {|arr| arr.append_vals it }
17
+ def self.from(object)
18
+ case object
19
+ when self then object
20
+ when FFI::Pointer then wrap object
21
+ else new.tap { |arr| arr.append_vals object }
19
22
  end
20
23
  end
21
24
 
22
- def append_string name, value
23
- _v2 = GirFFI::InPointer.from(:utf8, name)
24
- _v3 = GirFFI::InPointer.from(:utf8, value)
25
- GnomeKeyring::Lib.gnome_keyring_attribute_list_append_string self, _v2, _v3
25
+ def append_string(name, value)
26
+ v2 = GirFFI::InPointer.from(:utf8, name)
27
+ v3 = GirFFI::InPointer.from(:utf8, value)
28
+ GnomeKeyring::Lib.gnome_keyring_attribute_list_append_string self, v2, v3
26
29
  end
27
30
 
28
- def append_uint32 name, value
29
- _v2 = GirFFI::InPointer.from(:utf8, name)
30
- GnomeKeyring::Lib.gnome_keyring_attribute_list_append_uint32 self, _v2, value
31
+ def append_uint32(name, value)
32
+ v2 = GirFFI::InPointer.from(:utf8, name)
33
+ GnomeKeyring::Lib.gnome_keyring_attribute_list_append_uint32 self, v2, value
31
34
  end
32
35
 
33
36
  private
@@ -1,20 +1,21 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'gir_ffi-gnome_keyring/attribute_list'
2
4
 
3
- module GnomeKeyring
4
- load_class :Found
5
+ GnomeKeyring.load_class :Found
5
6
 
7
+ module GnomeKeyring
8
+ # Overrides for GnomeKeyringFound
6
9
  class Found
7
10
  remove_method :attributes
8
11
  remove_method :attributes=
9
12
 
10
13
  def attributes
11
- struct = GnomeKeyring::Found::Struct.new(@struct.to_ptr)
12
- GnomeKeyring::AttributeList.wrap(struct[:attributes])
14
+ GnomeKeyring::AttributeList.wrap(@struct[:attributes])
13
15
  end
14
16
 
15
17
  def attributes=(value)
16
- struct = GnomeKeyring::Found::Struct.new(@struct.to_ptr)
17
- struct[:attributes] = GnomeKeyring::AttributeList.from(value)
18
+ @struct[:attributes] = GnomeKeyring::AttributeList.from(value)
18
19
  end
19
20
  end
20
21
  end
@@ -1,19 +1,20 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rake/testtask'
2
4
 
3
5
  namespace :test do
4
-
5
6
  Rake::TestTask.new(:unit) do |t|
6
7
  t.libs = ['lib']
7
8
  t.test_files = FileList['test/unit/**/*_test.rb']
8
- t.ruby_opts += ["-w -Itest"]
9
+ t.ruby_opts += ['-w -Itest']
9
10
  end
10
11
 
11
12
  Rake::TestTask.new(:integration) do |t|
12
13
  t.libs = ['lib']
13
14
  t.test_files = FileList['test/integration/*_test.rb']
14
- t.ruby_opts += ["-w -Itest"]
15
+ t.ruby_opts += ['-w -Itest']
15
16
  end
16
17
  end
17
18
 
18
19
  desc 'Run unit and integration tests'
19
- task :test => ['test:unit', 'test:integration']
20
+ task test: ['test:unit', 'test:integration']
@@ -1,9 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'yard'
3
5
 
4
6
  YARD::Rake::YardocTask.new do |t|
5
7
  t.files = ['lib/**/*.rb']
6
- t.options = ['--private', '--protected', '--readme', 'README.md']
8
+ t.options = ['--private', '--protected', '--readme', 'README.md']
7
9
  end
8
10
  rescue LoadError
11
+ nil # Do nothing
9
12
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'minitest/autorun'
2
4
 
3
5
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
@@ -1,38 +1,40 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  describe GnomeKeyring::AttributeList do
4
- it "descends from GLib::Array" do
6
+ it 'descends from GLib::Array' do
5
7
  GnomeKeyring::AttributeList.ancestors.must_include GLib::Array
6
8
  end
7
9
 
8
- describe ".new" do
9
- it "takes no arguments" do
10
+ describe '.new' do
11
+ it 'takes no arguments' do
10
12
  GnomeKeyring::AttributeList.new
11
13
  pass
12
14
  end
13
15
  end
14
16
 
15
- describe ".wrap" do
16
- it "wraps its argument in an AttributeList object" do
17
+ describe '.wrap' do
18
+ it 'wraps its argument in an AttributeList object' do
17
19
  orig = GnomeKeyring::AttributeList.new
18
20
  copy = GnomeKeyring::AttributeList.wrap(orig.to_ptr)
19
21
  copy.to_ptr.must_equal orig.to_ptr
20
22
  end
21
23
  end
22
24
 
23
- describe ".from" do
25
+ describe '.from' do
24
26
  it "wraps its argument's pointer in an AttributeList object" do
25
27
  orig = GnomeKeyring::AttributeList.new
26
28
  copy = GnomeKeyring::AttributeList.from(orig)
27
29
  copy.to_ptr.must_equal orig.to_ptr
28
30
  end
29
31
 
30
- it "wraps an empty array" do
32
+ it 'wraps an empty array' do
31
33
  attr = GnomeKeyring::AttributeList.from([])
32
34
  attr.to_a.must_equal []
33
35
  end
34
36
 
35
- it "wraps an array of Attribute" do
37
+ it 'wraps an array of Attribute' do
36
38
  att = GnomeKeyring::Attribute.new
37
39
  att.name = 'foo'
38
40
  attr = GnomeKeyring::AttributeList.from([att])
@@ -42,8 +44,8 @@ describe GnomeKeyring::AttributeList do
42
44
  end
43
45
  end
44
46
 
45
- describe "#append_string" do
46
- it "appends a string attribute" do
47
+ describe '#append_string' do
48
+ it 'appends a string attribute' do
47
49
  list = GnomeKeyring::AttributeList.new
48
50
  list.append_string 'foo', 'bar'
49
51
  attr = list.index(0)
@@ -53,8 +55,8 @@ describe GnomeKeyring::AttributeList do
53
55
  end
54
56
  end
55
57
 
56
- describe "#append_uint32" do
57
- it "appends a uint32 attribute" do
58
+ describe '#append_uint32' do
59
+ it 'appends a uint32 attribute' do
58
60
  list = GnomeKeyring::AttributeList.new
59
61
  list.append_uint32 'baz', 42
60
62
  attr = list.index(0)
@@ -1,38 +1,40 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  describe GnomeKeyring::Attribute do
4
- describe ".list_new" do
5
- it "is private" do
6
+ describe '.list_new' do
7
+ it 'is private' do
6
8
  proc { GnomeKeyring::Attribute.list_new }.must_raise NoMethodError
7
9
  end
8
10
  end
9
11
 
10
- describe ".list_append_string" do
11
- it "is private" do
12
+ describe '.list_append_string' do
13
+ it 'is private' do
12
14
  proc { GnomeKeyring::Attribute.list_append_string }.must_raise NoMethodError
13
15
  end
14
16
  end
15
17
 
16
- describe ".list_append_uint32" do
17
- it "is private" do
18
+ describe '.list_append_uint32' do
19
+ it 'is private' do
18
20
  proc { GnomeKeyring::Attribute.list_append_uint32 }.must_raise NoMethodError
19
21
  end
20
22
  end
21
23
 
22
- describe ".list_copy" do
23
- it "is private" do
24
+ describe '.list_copy' do
25
+ it 'is private' do
24
26
  proc { GnomeKeyring::Attribute.list_copy }.must_raise NoMethodError
25
27
  end
26
28
  end
27
29
 
28
- describe ".list_free" do
29
- it "is private" do
30
+ describe '.list_free' do
31
+ it 'is private' do
30
32
  proc { GnomeKeyring::Attribute.list_free }.must_raise NoMethodError
31
33
  end
32
34
  end
33
35
 
34
- describe ".list_to_glist" do
35
- it "is private" do
36
+ describe '.list_to_glist' do
37
+ it 'is private' do
36
38
  proc { GnomeKeyring::Attribute.list_to_glist }.must_raise NoMethodError
37
39
  end
38
40
  end
@@ -1,15 +1,17 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  describe GnomeKeyring::Found do
4
6
  let(:instance) { GnomeKeyring::Found.new }
5
7
 
6
- describe "#attributes" do
7
- it "returns nil by default" do
8
+ describe '#attributes' do
9
+ it 'returns nil by default' do
8
10
  attrs = instance.attributes
9
11
  attrs.must_be_nil
10
12
  end
11
13
 
12
- it "returns an assigned AttributeList" do
14
+ it 'returns an assigned AttributeList' do
13
15
  attrs = GnomeKeyring::AttributeList.new
14
16
  struct = GnomeKeyring::Found::Struct.new(instance.to_ptr)
15
17
  struct[:attributes] = attrs.to_ptr
@@ -20,8 +22,8 @@ describe GnomeKeyring::Found do
20
22
  end
21
23
  end
22
24
 
23
- describe "#attributes=" do
24
- it "assigns its argument to the correct struct member" do
25
+ describe '#attributes=' do
26
+ it 'assigns its argument to the correct struct member' do
25
27
  attrs = GnomeKeyring::AttributeList.new
26
28
  instance.attributes = attrs
27
29
  struct = GnomeKeyring::Found::Struct.new(instance.to_ptr)
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  describe GnomeKeyring do
4
- describe ".find_items_sync" do
5
- it "calls Lib.gnome_keyring_find_items_sync with the correct values" do
6
+ describe '.find_items_sync' do
7
+ it 'calls Lib.gnome_keyring_find_items_sync with the correct values' do
6
8
  body = lambda { |type, attrs, listptr|
7
9
  type.must_equal :generic_secret
8
10
  attrs.must_be_instance_of GnomeKeyring::AttributeList
@@ -18,61 +20,62 @@ describe GnomeKeyring do
18
20
  end
19
21
  end
20
22
 
21
- describe ".item_create_sync" do
22
- it "calls Lib.gnome_keyring_item_create_sync with the correct values" do
23
- body = lambda { |keyring, type, display_name, attributes, secret, update_if_exists, item_id|
24
- keyring.to_utf8.must_equal "foo"
25
- type.must_equal :generic_secret
26
- display_name.to_utf8.must_equal "bar"
27
- attributes.must_be_instance_of GnomeKeyring::AttributeList
28
- secret.to_utf8.must_equal "secret-name"
29
- update_if_exists.must_equal false
23
+ describe '.item_create_sync' do
24
+ it 'calls Lib.gnome_keyring_item_create_sync with the correct values' do
25
+ body =
26
+ lambda { |keyring, type, display_name, attributes, secret, update_if_exists, item_id|
27
+ keyring.to_utf8.must_equal 'foo'
28
+ type.must_equal :generic_secret
29
+ display_name.to_utf8.must_equal 'bar'
30
+ attributes.must_be_instance_of GnomeKeyring::AttributeList
31
+ secret.to_utf8.must_equal 'secret-name'
32
+ update_if_exists.must_equal false
30
33
 
31
- item_id.put_int32 0, 42
32
- :ok
33
- }
34
+ item_id.put_int32 0, 42
35
+ :ok
36
+ }
34
37
 
35
38
  GnomeKeyring::Lib.stub :gnome_keyring_item_create_sync, body do
36
- code, id = GnomeKeyring.item_create_sync("foo",
37
- :generic_secret,
38
- "bar",
39
- [],
40
- "secret-name",
41
- false)
39
+ code, id = GnomeKeyring.item_create_sync('foo',
40
+ :generic_secret,
41
+ 'bar',
42
+ [],
43
+ 'secret-name',
44
+ false)
42
45
  code.must_equal :ok
43
46
  id.must_equal 42
44
47
  end
45
48
  end
46
49
  end
47
50
 
48
- describe ".item_get_attributes_sync" do
49
- it "calls Lib.gnome_keyring_item_get_attributes_sync with the correct values" do
51
+ describe '.item_get_attributes_sync' do
52
+ it 'calls Lib.gnome_keyring_item_get_attributes_sync with the correct values' do
50
53
  body = lambda { |keyring, id, attributes|
51
- keyring.to_utf8.must_equal "foo"
54
+ keyring.to_utf8.must_equal 'foo'
52
55
  id.must_equal 42
53
56
  attributes.must_be_instance_of FFI::MemoryPointer
54
57
  :ok
55
58
  }
56
59
 
57
60
  GnomeKeyring::Lib.stub :gnome_keyring_item_get_attributes_sync, body do
58
- code, list = GnomeKeyring.item_get_attributes_sync "foo", 42
61
+ code, list = GnomeKeyring.item_get_attributes_sync 'foo', 42
59
62
  code.must_equal :ok
60
63
  list.must_be_nil
61
64
  end
62
65
  end
63
66
  end
64
67
 
65
- describe ".item_set_attributes_sync" do
66
- it "calls Lib.gnome_keyring_item_set_attributes_sync with the correct values" do
68
+ describe '.item_set_attributes_sync' do
69
+ it 'calls Lib.gnome_keyring_item_set_attributes_sync with the correct values' do
67
70
  body = lambda { |keyring, id, attributes|
68
- keyring.to_utf8.must_equal "foo"
71
+ keyring.to_utf8.must_equal 'foo'
69
72
  id.must_equal 42
70
73
  attributes.must_be_instance_of GnomeKeyring::AttributeList
71
74
  :ok
72
75
  }
73
76
 
74
77
  GnomeKeyring::Lib.stub :gnome_keyring_item_set_attributes_sync, body do
75
- result = GnomeKeyring.item_set_attributes_sync "foo", 42, []
78
+ result = GnomeKeyring.item_set_attributes_sync 'foo', 42, []
76
79
  result.must_equal :ok
77
80
  end
78
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gir_ffi-gnome_keyring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.11
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: 2016-03-23 00:00:00.000000000 Z
11
+ date: 2020-06-30 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.10.0
19
+ version: 0.15.1
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.10.0
26
+ version: 0.15.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '11.1'
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: '11.1'
54
+ version: '13.0'
55
55
  description: Bindings for GnomeKeyring generated by GirFFI, with overrides.
56
56
  email:
57
57
  - matijs@matijs.net
@@ -77,7 +77,7 @@ files:
77
77
  - test/unit/gir_ffi-gnome_keyring_test.rb
78
78
  homepage: http://www.github.com/mvz/gir_ffi-gnome_keyring
79
79
  licenses:
80
- - LGPL-2.1
80
+ - LGPL-2.1+
81
81
  metadata: {}
82
82
  post_install_message:
83
83
  rdoc_options:
@@ -89,15 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: '0'
92
+ version: 2.4.0
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubyforge_project:
100
- rubygems_version: 2.5.1
99
+ rubygems_version: 3.1.2
101
100
  signing_key:
102
101
  specification_version: 4
103
102
  summary: GirFFI-based binding to GnomeKeyring