keybinder 0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +24 -0
- data/README.md +56 -0
- data/Rakefile +6 -0
- data/keybinder.gemspec +25 -0
- data/lib/keybinder/version.rb +16 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: faa7792524360a53037dc8273ee358ebc2768688
|
4
|
+
data.tar.gz: 4c0221cc4bd442e1eecd1a78dc0a1aa7a82fcc24
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1fc7de06d5f3c5e5933b17570b2114080d34db49b0d6a09411b4434bc44bc3ca4707443b48f36cd39ba49a1296daf25fad43c2f3b38e6a54c49ce418c5d91209
|
7
|
+
data.tar.gz: fa8dbb8b29b2d19f713af19b8ed729af047080d3987926f13ad5e59705a5bc641fe7a065ab25a7976de8680125057736ef9b7ed41934d902bc4aeb271112f766
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
Copyright (c) 2017 John Lane
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
24
|
+
http://www.opensource.org/licenses/mit-license.php
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# Keybinder
|
2
|
+
|
3
|
+
This provides Ruby [FFI][1] bindings for the Gtk [Keybinder-3.0][2] library.
|
4
|
+
|
5
|
+
RubyGems: https://rubygems.org/gems/keybinder
|
6
|
+
Github: https://github.com/johnlane/keybinder
|
7
|
+
|
8
|
+
THIS VERSION IS A NON-FUNCTIONAL PLACEHOLDER!
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'keybinder'
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Or install it yourself as:
|
23
|
+
|
24
|
+
$ gem install keybinder
|
25
|
+
|
26
|
+
Then
|
27
|
+
|
28
|
+
require 'keybinder'
|
29
|
+
|
30
|
+
The `libkeybinder-3.0.so` library must be installed in the system's library
|
31
|
+
search path (typically in the `/usr/lib` directory). It is not included in
|
32
|
+
this package. See [its documentation][2].
|
33
|
+
|
34
|
+
## Tests
|
35
|
+
|
36
|
+
A very limited test is provided as `test_keybinder.rb`. To run the test:
|
37
|
+
|
38
|
+
$ rake
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
MIT License: see the `LICENSE.txt` file.
|
43
|
+
|
44
|
+
The `libkeybinder` library is licensed as described in its [COPYING][3] file.
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
1. Fork it ( https://github.com/johnlane/keybinder )
|
49
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
51
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
52
|
+
5. Create a new Pull Request
|
53
|
+
|
54
|
+
[1]:https://github.com/ffi/ffi "Foreign Function Interface"
|
55
|
+
[2]:https://lazka.github.io/pgi-docs/#Keybinder-3.0
|
56
|
+
[3]:https://github.com/kupferlauncher/keybinder/blob/master/COPYING
|
data/Rakefile
ADDED
data/keybinder.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'keybinder/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "keybinder"
|
8
|
+
spec.version = Keybinder::VERSION
|
9
|
+
spec.authors = ["John Lane"]
|
10
|
+
spec.email = ["john@lane.uk.net"]
|
11
|
+
spec.summary = Keybinder::SUMMARY
|
12
|
+
spec.description = Keybinder::DESCRIPTION
|
13
|
+
spec.homepage = "https://github.com/johnlane/keybinder"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
|
24
|
+
spec.add_dependency "ffi", '~> 1.9', '>= 1.9.6'
|
25
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Keybinder
|
2
|
+
VERSION = "0.0"
|
3
|
+
|
4
|
+
SUMMARY = "Keybinder - Register global key bindings for GTK+ applications"
|
5
|
+
|
6
|
+
DESCRIPTION = <<-EOS
|
7
|
+
|
8
|
+
Keybinder is a library for registering global keyboard shortcuts to be
|
9
|
+
used by GTK-based applications under the X Window System.
|
10
|
+
|
11
|
+
Keybinder is documented at http://lazka.github.io/pgi-docs/Keybinder-3.0
|
12
|
+
https://github.com/engla/keybinder
|
13
|
+
|
14
|
+
EOS
|
15
|
+
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: keybinder
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- John Lane
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: ffi
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.9'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 1.9.6
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '1.9'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.9.6
|
61
|
+
description: |2+
|
62
|
+
|
63
|
+
Keybinder is a library for registering global keyboard shortcuts to be
|
64
|
+
used by GTK-based applications under the X Window System.
|
65
|
+
|
66
|
+
Keybinder is documented at http://lazka.github.io/pgi-docs/Keybinder-3.0
|
67
|
+
https://github.com/engla/keybinder
|
68
|
+
|
69
|
+
email:
|
70
|
+
- john@lane.uk.net
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files: []
|
74
|
+
files:
|
75
|
+
- ".gitignore"
|
76
|
+
- Gemfile
|
77
|
+
- LICENSE.txt
|
78
|
+
- README.md
|
79
|
+
- Rakefile
|
80
|
+
- keybinder.gemspec
|
81
|
+
- lib/keybinder/version.rb
|
82
|
+
homepage: https://github.com/johnlane/keybinder
|
83
|
+
licenses:
|
84
|
+
- MIT
|
85
|
+
metadata: {}
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
requirements: []
|
101
|
+
rubyforge_project:
|
102
|
+
rubygems_version: 2.5.2
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: Keybinder - Register global key bindings for GTK+ applications
|
106
|
+
test_files: []
|