gir_ffi-gnome_keyring 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Changelog.md +4 -0
- data/README.md +24 -1
- data/test/unit/gir_ffi-gnome_keyring_test.rb +6 -6
- metadata +14 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 55865a38fc051b2b72b995d919ecb713d166a147
|
4
|
+
data.tar.gz: c80e6312c01fca0d40b4218f67e5bb3e13eddff3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5b9d4c80056472cf014525b08b0d2a23da33f1e4ebadcfe34aed7d5c78724ff39b59f29a65ba964d22364e6fa0ec2dc9a479b9b5417c115e19a6d5d75e0aa7bb
|
7
|
+
data.tar.gz: 13103d0ce3af2e2133b93829e4cdd6a4f1fecee74d1547f8723a202aa742ef3e6da1d292a6bdb7ff436b34e9cb173d992f0a585f50a258007ed81386e90ac2cf
|
data/Changelog.md
CHANGED
data/README.md
CHANGED
@@ -2,13 +2,36 @@
|
|
2
2
|
|
3
3
|
GirFFI-based bindings for GnomeKeyring
|
4
4
|
|
5
|
-
[![Build Status](https://secure.travis-ci.org/mvz/gir_ffi-gnome_keyring.png)](http://travis-ci.org/mvz/
|
5
|
+
[![Build Status](https://secure.travis-ci.org/mvz/gir_ffi-gnome_keyring.png)](http://travis-ci.org/mvz/gir_ffi-gnome_keyring)
|
6
6
|
|
7
7
|
## Features
|
8
8
|
|
9
9
|
* Auto-generated bindings using GObject introspection.
|
10
10
|
* Adds overrides for introspection data bugs.
|
11
11
|
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
require 'gir_ffi-gnome_keyring'
|
15
|
+
|
16
|
+
attrs = GnomeKeyring::AttributeList.new
|
17
|
+
attrs.append_string "attribute-name", "string value"
|
18
|
+
attrs.append_uint32 "other name", 42
|
19
|
+
|
20
|
+
result_code, item_id = GnomeKeyring.item_create_sync nil,
|
21
|
+
:generic_secret, "foobar", attrs, "foobar's secret", false
|
22
|
+
|
23
|
+
p [result_code, item_id]
|
24
|
+
|
25
|
+
if result_code == :ok
|
26
|
+
code, info = GnomeKeyring.item_get_info_sync nil, item_id
|
27
|
+
if code == :ok
|
28
|
+
puts "Item: #{info.get_display_name} of type #{info.get_type}"
|
29
|
+
end
|
30
|
+
GnomeKeyring.item_delete_sync nil, item_id
|
31
|
+
code, info = GnomeKeyring.item_get_info_sync nil, item_id
|
32
|
+
p [code, info]
|
33
|
+
end
|
34
|
+
|
12
35
|
## Install
|
13
36
|
|
14
37
|
gem install gir_ffi-gnome_keyring
|
@@ -21,14 +21,14 @@ describe GnomeKeyring do
|
|
21
21
|
describe ".item_create_sync" do
|
22
22
|
it "calls Lib.gnome_keyring_item_create_sync with the correct values" do
|
23
23
|
body = lambda { |keyring, type, display_name, attributes, secret, update_if_exists, item_id|
|
24
|
-
|
24
|
+
keyring.to_utf8.must_equal "foo"
|
25
25
|
type.must_equal :generic_secret
|
26
|
-
|
26
|
+
display_name.to_utf8.must_equal "bar"
|
27
27
|
attributes.must_be_instance_of GnomeKeyring::AttributeList
|
28
|
-
|
28
|
+
secret.to_utf8.must_equal "secret-name"
|
29
29
|
update_if_exists.must_equal false
|
30
30
|
|
31
|
-
item_id.
|
31
|
+
item_id.put_int32 0, 42
|
32
32
|
:ok
|
33
33
|
}
|
34
34
|
|
@@ -48,7 +48,7 @@ describe GnomeKeyring do
|
|
48
48
|
describe ".item_get_attributes_sync" do
|
49
49
|
it "calls Lib.gnome_keyring_item_get_attributes_sync with the correct values" do
|
50
50
|
body = lambda { |keyring, id, attributes|
|
51
|
-
|
51
|
+
keyring.to_utf8.must_equal "foo"
|
52
52
|
id.must_equal 42
|
53
53
|
attributes.must_be_instance_of GirFFI::InOutPointer
|
54
54
|
:ok
|
@@ -65,7 +65,7 @@ describe GnomeKeyring do
|
|
65
65
|
describe ".item_set_attributes_sync" do
|
66
66
|
it "calls Lib.gnome_keyring_item_set_attributes_sync with the correct values" do
|
67
67
|
body = lambda { |keyring, id, attributes|
|
68
|
-
|
68
|
+
keyring.to_utf8.must_equal "foo"
|
69
69
|
id.must_equal 42
|
70
70
|
attributes.must_be_instance_of GnomeKeyring::AttributeList
|
71
71
|
:ok
|
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gir_ffi-gnome_keyring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matijs van Zuijlen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: gir_ffi
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
19
|
+
version: 0.7.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
26
|
+
version: 0.7.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: minitest
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,20 +41,18 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 10.1
|
47
|
+
version: '10.1'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 10.1
|
62
|
-
description:
|
54
|
+
version: '10.1'
|
55
|
+
description: Bindings for GnomeKeyring generated by GirFFI, with overrides.
|
63
56
|
email:
|
64
57
|
- matijs@matijs.net
|
65
58
|
executables: []
|
@@ -83,7 +76,9 @@ files:
|
|
83
76
|
- README.md
|
84
77
|
- Rakefile
|
85
78
|
homepage: http://www.github.com/mvz/gir_ffi-gnome_keyring
|
86
|
-
licenses:
|
79
|
+
licenses:
|
80
|
+
- LGPL-2.1
|
81
|
+
metadata: {}
|
87
82
|
post_install_message:
|
88
83
|
rdoc_options:
|
89
84
|
- --main
|
@@ -91,22 +86,20 @@ rdoc_options:
|
|
91
86
|
require_paths:
|
92
87
|
- lib
|
93
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
89
|
requirements:
|
96
|
-
- -
|
90
|
+
- - '>='
|
97
91
|
- !ruby/object:Gem::Version
|
98
92
|
version: '0'
|
99
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
94
|
requirements:
|
102
|
-
- -
|
95
|
+
- - '>='
|
103
96
|
- !ruby/object:Gem::Version
|
104
97
|
version: '0'
|
105
98
|
requirements: []
|
106
99
|
rubyforge_project:
|
107
|
-
rubygems_version:
|
100
|
+
rubygems_version: 2.0.14
|
108
101
|
signing_key:
|
109
|
-
specification_version:
|
102
|
+
specification_version: 4
|
110
103
|
summary: GirFFI-based binding to GnomeKeyring
|
111
104
|
test_files:
|
112
105
|
- test/test_helper.rb
|