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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69f5efccd46a6ca3b28f78eefdbfaa83404873482c062626e463ec5405f02afe
4
- data.tar.gz: 368baf9ba6be031b1960bd4f6bf35caced15b4a465eb786595aff6b03852bac3
3
+ metadata.gz: 774230b7fbed4c37af4e3d6659df6f526d62093344bd96c6b24cfdc9515bb1fb
4
+ data.tar.gz: b76a2c478a7b0f4b54ca05b0bb45965cf4ab1b69b8d4288a5bfdff437f7418d3
5
5
  SHA512:
6
- metadata.gz: 60d803d5c1ce1e4ec7a9fdf7e110fdf4e8ed3efa679469d684af20278cd1ab08dc9b3686c5b09501923e4985118712ec553e65b1ea2121b06852355334b151df
7
- data.tar.gz: 272b0b0ff27aa2ffcd957141e1f1836c9905f73a960399adaf9044fa12efc4c558b08fb77ea434672175ac88b2fa993cdc1ddee70b4389e04548f787f6a5d42d
6
+ metadata.gz: c5e8f1237dcc94a678b694d602e1df50c72bc07ebeab1d4a0aba8914881c5786cc7d27896fcf1a1b933268689daafdc90028b210e6e91a1a471c9f3a73981ca5
7
+ data.tar.gz: d5b244cbb4d19a5055aeccfb28874a47ce5786e7f47c3aa472677cc6c4e7b74f4979a471d557ccd9fbd4ced1438670ab3e26b7ecd932d6899a79702c7e785b6c
@@ -1,2 +1 @@
1
- �C7�����������rO�� H�����%���W�ʜ�=�iʜ�S
2
- q}��BB-
1
+ Z��������
data.tar.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- {��!�噒l����#�KO������ Ze05[�8
2
- :�&d��iґG�>�����<`��ۋ�
3
- o�:��@���d�[����NmU��n_
1
+ @Z7Z���H\&o�ݬ���(EBe��V��&��CkC�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#�j4oc��$He�PsJ��?���~=t�,|%YA`�lB8�������� uUm�خ��.m�p�u�
@@ -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
- @notifier.notice fqm if fqm
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.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: 2018-10-15 00:00:00.000000000 Z
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
- rubyforge_project:
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
- g��<s�pk���g�)� )�+7�9A[�!��I�Mg��������k#N�C��ְ�r)2h�!�����KLR}��r�*���v�;):�˿�ӵ�#/'Sc
2
- �d���y�������Ҫ
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����ޭ$