gtk2keypress123 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/lib/gtk2keypress123.rb +11 -7
- data.tar.gz.sig +0 -0
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 69f5efccd46a6ca3b28f78eefdbfaa83404873482c062626e463ec5405f02afe
|
4
|
+
data.tar.gz: 368baf9ba6be031b1960bd4f6bf35caced15b4a465eb786595aff6b03852bac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60d803d5c1ce1e4ec7a9fdf7e110fdf4e8ed3efa679469d684af20278cd1ab08dc9b3686c5b09501923e4985118712ec553e65b1ea2121b06852355334b151df
|
7
|
+
data.tar.gz: 272b0b0ff27aa2ffcd957141e1f1836c9905f73a960399adaf9044fa12efc4c558b08fb77ea434672175ac88b2fa993cdc1ddee70b4389e04548f787f6a5d42d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/gtk2keypress123.rb
CHANGED
@@ -7,8 +7,7 @@ require 'gtk2keypress'
|
|
7
7
|
require 'dynarex'
|
8
8
|
|
9
9
|
|
10
|
-
|
11
|
-
class GtkKeyPress123 < Gtk2KeyPress
|
10
|
+
class Gtk2KeyPress123 < Gtk2KeyPress
|
12
11
|
|
13
12
|
def initialize(timeout: 0.8, notifier: nil, exit_on_success: false,
|
14
13
|
keywords: nil, terminator: 'qq', debug: false)
|
@@ -16,22 +15,28 @@ class GtkKeyPress123 < Gtk2KeyPress
|
|
16
15
|
@terminator, @debug = terminator, debug
|
17
16
|
|
18
17
|
@h = if keywords then
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
|
19
|
+
puts 'keywords : ' + keywords.inspect if @debug
|
20
|
+
|
21
|
+
obj, _ = RXFHelper.read keywords, debug: debug, auto: true
|
22
|
+
|
23
|
+
puts 'obj: ' + obj.inspect if @debug
|
24
|
+
|
22
25
|
if obj and obj.respond_to? :to_h then
|
23
26
|
obj.to_h
|
24
27
|
else
|
25
28
|
{}
|
26
29
|
end
|
27
30
|
end
|
31
|
+
|
32
|
+
puts '@h: ' + @h.inspect if @debug
|
28
33
|
|
29
34
|
@buffer = []
|
30
35
|
@timeout, @notifier, @exit = timeout, notifier, exit_on_success
|
31
36
|
|
32
37
|
window = Gtk::Window.new 'Gtk2KeyPress123'
|
33
38
|
|
34
|
-
window.add(Gtk::Label.new("Press 1 or more
|
39
|
+
window.add(Gtk::Label.new("Press 1 or more keys!"))
|
35
40
|
|
36
41
|
key = super(window)
|
37
42
|
window.set_default_size(300, 120).show_all
|
@@ -93,4 +98,3 @@ class GtkKeyPress123 < Gtk2KeyPress
|
|
93
98
|
|
94
99
|
|
95
100
|
end
|
96
|
-
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk2keypress123
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
POA9e2vRKMc+552RSt8TBGm2LDRih+iul+eRcDW6ZDeVy+AKOsL+ANsI/T1URGKH
|
31
31
|
as8=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-
|
33
|
+
date: 2018-10-15 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: gtk2
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version: '3.2'
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 3.2.
|
44
|
+
version: 3.2.9
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
version: '3.2'
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.2.
|
54
|
+
version: 3.2.9
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: gtk2keypress
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
version: '1.8'
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 1.8.
|
84
|
+
version: 1.8.5
|
85
85
|
type: :runtime
|
86
86
|
prerelease: false
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -91,7 +91,7 @@ dependencies:
|
|
91
91
|
version: '1.8'
|
92
92
|
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 1.8.
|
94
|
+
version: 1.8.5
|
95
95
|
description:
|
96
96
|
email: james@jamesrobertson.eu
|
97
97
|
executables: []
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.6
|
122
|
+
rubygems_version: 2.7.6
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: A minimal GTK2 app which captures 1 or more key presses which can trigger
|
metadata.gz.sig
CHANGED
Binary file
|