libsecret 3.5.0 → 4.0.1

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: b6bce0b6d6ea65fcc8508ee0bde9999375b8c8320c898bb1a556278be6e773dd
4
- data.tar.gz: 0ccf6a5983671a7f4f24cdf4402cb7be3c65767da6c1bfbec0f67ac553d07ec2
3
+ metadata.gz: f0f499486bc1383f048298a5c8ad03a02407ccdd37e19116c2c9b7dbbd4c2a42
4
+ data.tar.gz: b6721208ffc62153b7866e51a4de33e51005ae0732eec70ae70e50c6f7b013e7
5
5
  SHA512:
6
- metadata.gz: 695eb3675618befd4bdc915b8da0b49a6dfad991367276cf455c040dc0a9b542b064739a4aa6b9418a4e6c78b09d4900819cd8d130415954adee0172e35ff0aa
7
- data.tar.gz: 75aa250fba61aa53b115617e042a15381b3d09dd267a01dc91976b8c3edf59f96c27fe1f68239ae15caaefbf376704ddfd0ad5fe95d5e150368619aeb9cf3971
6
+ metadata.gz: 209165e1f5c1994dbdf0a24f2761065cbe95b89c7a9daf2fa8093966377d014e03fb433160e56be0acf9a59bda9018dfe2169e3eeeb73b05a10a43c1cbf55c4f
7
+ data.tar.gz: 1f69d25d90ce00b7f332169137baf1765e145e8a51fa4317c1dd19c9d01c0e3dbb7a59b568ded5a1a5084d8d156675f6829af53b21c58474e0b8d52badc2bc3b
@@ -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.0
4
+ version: 4.0.1
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-11 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.0
19
+ version: 4.0.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: 3.5.0
26
+ version: 4.0.1
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: []