libsecret 3.5.1 → 4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04b3a256d49ced8fed5f4394cfcd36aebea6f315cc7477b4d03779219758595d
4
- data.tar.gz: b822e85ca1f2a02d71d488ff98ce51f463d6c3404457dda87554076a00a8e34f
3
+ metadata.gz: 461cccbf807119d8def4c08eefd175da68258d62ef97efa50b2007a293e24d7f
4
+ data.tar.gz: 58c2793d02e0e6870a8e5b86fde3f5391fdc78d60a5796eede91cc3c85140265
5
5
  SHA512:
6
- metadata.gz: d2718d49dd025b4ae4308b3d6d83dd25f684d7894505945ffde435565485dece2ee5a97c6e36ac109e7ddb24b7c68ebb5e290f34763b203e0d0de3cda9fd5dea
7
- data.tar.gz: 1a1914e83245338a6432fc983acd491dcd3a4ddc899c8b16875bb0cca017e2a1dd61d119c3f1853387d2a48a55e81e38294d5484ab841d4a8533c5251ed82491
6
+ metadata.gz: 98f0586d0258367786cd95ddb2c14ad530a8c1efb25784f7fe35b388145d9f2d77e2e890b75e7514ee938a2cb0e91fb6b65f824922a5996cb6b635ce1aef10e7
7
+ data.tar.gz: 2e6ebfedade643c27140027fb8ad7117e36b27ad280d1caab343d954228da1ca00045ee29fea602f5778849f247ac559c5ca3774908d3e88f4b361899f00c03e
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2019-2022 Ruby-GNOME Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -14,8 +14,6 @@
14
14
  # License along with this library; if not, write to the Free Software
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
- require "English"
18
-
19
17
  module Secret
20
18
  class Loader < GObjectIntrospection::Loader
21
19
  private
@@ -27,6 +25,7 @@ module Secret
27
25
  end
28
26
 
29
27
  def require_libraries
28
+ require_relative "schema"
30
29
  end
31
30
  end
32
31
  end
@@ -0,0 +1,30 @@
1
+ # Copyright (C) 2022 Ruby-GNOME Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ module Secret
18
+ class Schema
19
+ alias_method :attributes_raw, :attributes
20
+ def attributes
21
+ attrs = {}
22
+ attributes_raw.each do |attribute|
23
+ name = attribute.name
24
+ break if name.nil?
25
+ attrs[name] = attribute.type
26
+ end
27
+ attrs
28
+ end
29
+ end
30
+ end
data/test/test-schema.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2019-2022 Ruby-GNOME Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -18,16 +18,18 @@ class TestSecretSchema < Test::Unit::TestCase
18
18
  test ".new" do
19
19
  schema = Secret::Schema.new("jp.osdn.ruby-gnome2.test",
20
20
  :none,
21
- {})
21
+ {"name" => Secret::SchemaAttributeType::STRING})
22
22
  assert_equal([
23
23
  "jp.osdn.ruby-gnome2.test",
24
24
  Secret::SchemaFlags::NONE,
25
- # {}, # TODO
25
+ {
26
+ "name" => Secret::SchemaAttributeType::STRING,
27
+ },
26
28
  ],
27
29
  [
28
30
  schema.name,
29
31
  schema.flags,
30
- # schema.attributes, # TODO
32
+ schema.attributes,
31
33
  ])
32
34
  end
33
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsecret
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gobject-introspection
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.5.1
19
+ version: 4.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: 3.5.1
26
+ version: 4.0.0
27
27
  description: Ruby/libsecret is a Ruby binding of libsecret.
28
28
  email: ruby-gnome2-devel-en@lists.sourceforge.net
29
29
  executables: []
@@ -37,6 +37,7 @@ files:
37
37
  - dependency-check/Rakefile
38
38
  - lib/libsecret.rb
39
39
  - lib/libsecret/loader.rb
40
+ - lib/libsecret/schema.rb
40
41
  - libsecret.gemspec
41
42
  - test/helper.rb
42
43
  - test/run-test.rb
@@ -46,7 +47,7 @@ licenses:
46
47
  - LGPL-2.1+
47
48
  metadata:
48
49
  msys2_mingw_dependencies: gegl
49
- post_install_message:
50
+ post_install_message:
50
51
  rdoc_options: []
51
52
  require_paths:
52
53
  - lib
@@ -62,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
63
  version: '0'
63
64
  requirements: []
64
65
  rubygems_version: 3.4.0.dev
65
- signing_key:
66
+ signing_key:
66
67
  specification_version: 4
67
68
  summary: Ruby/libsecret is a Ruby binding of libsecret.
68
69
  test_files: []