libsecret 3.5.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libsecret/loader.rb +2 -3
- data/lib/libsecret/schema.rb +30 -0
- data/test/test-schema.rb +6 -4
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 461cccbf807119d8def4c08eefd175da68258d62ef97efa50b2007a293e24d7f
|
4
|
+
data.tar.gz: 58c2793d02e0e6870a8e5b86fde3f5391fdc78d60a5796eede91cc3c85140265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f0586d0258367786cd95ddb2c14ad530a8c1efb25784f7fe35b388145d9f2d77e2e890b75e7514ee938a2cb0e91fb6b65f824922a5996cb6b635ce1aef10e7
|
7
|
+
data.tar.gz: 2e6ebfedade643c27140027fb8ad7117e36b27ad280d1caab343d954228da1ca00045ee29fea602f5778849f247ac559c5ca3774908d3e88f4b361899f00c03e
|
data/lib/libsecret/loader.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2019 Ruby-
|
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-
|
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
|
-
|
25
|
+
{
|
26
|
+
"name" => Secret::SchemaAttributeType::STRING,
|
27
|
+
},
|
26
28
|
],
|
27
29
|
[
|
28
30
|
schema.name,
|
29
31
|
schema.flags,
|
30
|
-
|
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:
|
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
|
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:
|
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:
|
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: []
|