oo7-rb 1.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.
data/lib/oo7.rb ADDED
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the Apache License, Version 2.0.
4
+ # Copyright, 2026, by General Intelligence Systems.
5
+
6
+ require_relative "oo7/version"
7
+
8
+ # The native extension, which is where every class in this module is defined.
9
+ #
10
+ # A precompiled platform gem carries one object per Ruby ABI, which rake-compiler puts under lib/oo7/3.3, 3.4 and so on. The source gem compiles one object and installs it beside the library, which is also where `rake compile` puts it.
11
+ begin
12
+ require_relative "oo7/#{RUBY_VERSION[/\d+\.\d+/]}/oo7"
13
+ rescue LoadError
14
+ require_relative "oo7/oo7"
15
+ end
16
+
17
+ # Ruby bindings for oo7, the Rust Secret Service and keyring implementation.
18
+ #
19
+ # The crate speaks the freedesktop Secret Service D-Bus protocol itself and does its own crypto, so a caller here never loads libsecret, gnome-keyring's client library or libgcr.
20
+ #
21
+ # Every method is synchronous. The crate's API is async throughout; the extension drives it on a Tokio runtime of its own and blocks the calling thread, which is what a Ruby caller expects. The GVL is held while it waits, so a call that may prompt belongs on a Ruby thread rather than on a GTK main loop.
22
+ module Oo7
23
+ end
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oo7-rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nathan Kidd
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-01 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: gem_kit
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '0.2'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '0.2'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rb_sys
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.9'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.9'
40
+ - !ruby/object:Gem::Dependency
41
+ name: rake-compiler
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.3'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.3'
54
+ - !ruby/object:Gem::Dependency
55
+ name: lefthook
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.2'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.2'
68
+ description: The freedesktop Secret Service for Ruby, over the oo7 crate. Keyrings,
69
+ items, attribute search, lock and unlock -- speaking the D-Bus protocol directly,
70
+ with its own crypto, so neither libsecret nor libgcr is in the picture.
71
+ email:
72
+ - nathankidd@hey.com
73
+ executables: []
74
+ extensions:
75
+ - ext/oo7/extconf.rb
76
+ extra_rdoc_files: []
77
+ files:
78
+ - CHANGELOG.md
79
+ - Cargo.lock
80
+ - Cargo.toml
81
+ - LICENSE
82
+ - NOTICE
83
+ - README.md
84
+ - ext/oo7/Cargo.toml
85
+ - ext/oo7/extconf.rb
86
+ - ext/oo7/src/lib.rs
87
+ - lib/oo7-rb.rb
88
+ - lib/oo7.rb
89
+ - lib/oo7/version.rb
90
+ - lib/oo7/version.rb.erb
91
+ homepage: https://github.com/n-at-han-k/oo7-rb
92
+ licenses:
93
+ - Apache-2.0
94
+ metadata:
95
+ source_code_uri: https://github.com/n-at-han-k/oo7-rb
96
+ documentation_uri: https://n-at-han-k.github.io/oo7-rb/
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '3.3'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubygems_version: 3.7.2
112
+ specification_version: 4
113
+ summary: Ruby bindings for oo7, the Rust Secret Service and keyring implementation.
114
+ test_files: []