gtk2keypress123 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -2
- data.tar.gz.sig +3 -3
- data/lib/gtk2keypress123.rb +9 -3
- metadata +3 -4
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 774230b7fbed4c37af4e3d6659df6f526d62093344bd96c6b24cfdc9515bb1fb
|
4
|
+
data.tar.gz: b76a2c478a7b0f4b54ca05b0bb45965cf4ab1b69b8d4288a5bfdff437f7418d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5e8f1237dcc94a678b694d602e1df50c72bc07ebeab1d4a0aba8914881c5786cc7d27896fcf1a1b933268689daafdc90028b210e6e91a1a471c9f3a73981ca5
|
7
|
+
data.tar.gz: d5b244cbb4d19a5055aeccfb28874a47ce5786e7f47c3aa472677cc6c4e7b74f4979a471d557ccd9fbd4ced1438670ab3e26b7ecd932d6899a79702c7e785b6c
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
q}��BB-
|
1
|
+
Z��������
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
@Z7Z���H\&o�ݬ���(E�Be��V��&��C�kC�I����e��S�e�+��I����P0��OIR���W��=X�b����A��7\��{�� ��[�!UX
|
2
|
+
�z:C�wj���=�X)I�m �s�ߕ�Uca1#'��x���w*�I��U�ñ�/C�NE?��2��;mH'cv
|
3
|
+
[�m#�j�4oc��$He�PsJ��?���~=t�,|%YA`�lB8�������� uUm�خ��.m�p�u�
|
data/lib/gtk2keypress123.rb
CHANGED
@@ -8,7 +8,8 @@ require 'dynarex'
|
|
8
8
|
|
9
9
|
|
10
10
|
class Gtk2KeyPress123 < Gtk2KeyPress
|
11
|
-
|
11
|
+
using ColouredText
|
12
|
+
|
12
13
|
def initialize(timeout: 0.8, notifier: nil, exit_on_success: false,
|
13
14
|
keywords: nil, terminator: 'qq', debug: false)
|
14
15
|
|
@@ -30,7 +31,7 @@ class Gtk2KeyPress123 < Gtk2KeyPress
|
|
30
31
|
end
|
31
32
|
|
32
33
|
puts '@h: ' + @h.inspect if @debug
|
33
|
-
|
34
|
+
|
34
35
|
@buffer = []
|
35
36
|
@timeout, @notifier, @exit = timeout, notifier, exit_on_success
|
36
37
|
|
@@ -65,12 +66,16 @@ class Gtk2KeyPress123 < Gtk2KeyPress
|
|
65
66
|
|
66
67
|
if @buffer.length > 0 then
|
67
68
|
|
69
|
+
puts ('buffer: ' + @buffer.inspect).debug if @debug
|
68
70
|
destroy(nil) if @h and @terminator == @buffer.join
|
69
71
|
|
70
72
|
if @h and @notifier then
|
71
73
|
s = @buffer.all? {|x| x.length < 2} ? '' : ', '
|
74
|
+
puts ('@h: ' + @h.inspect).debug if @debug
|
72
75
|
fqm = @h[@buffer.join(s)]
|
73
|
-
|
76
|
+
puts ('fqm: ' + fqm.strip.inspect).debug if @debug
|
77
|
+
@notifier.notice fqm.strip if fqm
|
78
|
+
#sleep 0.4
|
74
79
|
end
|
75
80
|
|
76
81
|
@buffer = []
|
@@ -98,3 +103,4 @@ class Gtk2KeyPress123 < Gtk2KeyPress
|
|
98
103
|
|
99
104
|
|
100
105
|
end
|
106
|
+
|
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.2
|
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:
|
33
|
+
date: 2019-02-09 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: gtk2
|
@@ -118,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.7.6
|
121
|
+
rubygems_version: 3.0.2
|
123
122
|
signing_key:
|
124
123
|
specification_version: 4
|
125
124
|
summary: A minimal GTK2 app which captures 1 or more key presses which can trigger
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
"O{vr
|
2
|
+
W�N�K�M@����r �3�N1�1��X=D��W~=hS=�SyiR�w��-UU`u�0�m^8(m���C��as�DF���Kf�1&D�i��0!ԫ�%�u��_��_x�U���s�����촼��%���>n6��q^d��n&�0����ޭ$
|