profanity_fe 0.5.1 → 0.5.2
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.
- checksums.yaml +4 -4
- data/bin/profanity +10 -8
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97af6fe1df54a2d55f849299159630cb8911bb0df3658d4b1af34bbb6ecf9329
|
|
4
|
+
data.tar.gz: 04e9da3dfeb52f92318c65e7e6fc68a9d68586ddeda1f2c001a0f72e6c242cea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4055c4d9c3e573fd3134e85591b2554116d98046dab463107789b3cc69991c6c3195baf72d454f3769c12ca1e9f02d944cd595e8a9a1b110545aee84438f8e5
|
|
7
|
+
data.tar.gz: 571be20fc7574c4e77eb0a48fe1bb44ff5a163ab444fd74ff47a4a47d2a8ef1136157cfdf018b2bc81539865afa476b84f4b39ac3e9befffdb4a6d725d9044f5
|
data/bin/profanity
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# encoding: US-ASCII
|
|
3
3
|
=begin
|
|
4
4
|
|
|
5
|
-
ProfanityFE v0.5.
|
|
5
|
+
ProfanityFE v0.5.2
|
|
6
6
|
Copyright (C) 2013 Matthew Lowe
|
|
7
7
|
|
|
8
8
|
This program is free software; you can redistribute it and/or modify
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
=end
|
|
25
25
|
|
|
26
|
-
$version = '0.5.
|
|
26
|
+
$version = '0.5.2'
|
|
27
27
|
|
|
28
28
|
require 'thread'
|
|
29
29
|
require 'socket'
|
|
@@ -569,9 +569,11 @@ setup_key = proc { |xml,binding|
|
|
|
569
569
|
if key =~ /^[0-9]+$/
|
|
570
570
|
key = key.to_i
|
|
571
571
|
elsif (key.class) == String and (key.length == 1)
|
|
572
|
-
|
|
573
|
-
|
|
572
|
+
key = key.ord
|
|
573
|
+
elsif key_name[key]
|
|
574
574
|
key = key_name[key]
|
|
575
|
+
else
|
|
576
|
+
key = nil # FIXME
|
|
575
577
|
end
|
|
576
578
|
if key
|
|
577
579
|
if macro = xml.attributes['macro']
|
|
@@ -1666,11 +1668,11 @@ begin
|
|
|
1666
1668
|
loop {
|
|
1667
1669
|
ch = command_window.getch
|
|
1668
1670
|
if key_combo
|
|
1669
|
-
if key_combo[ch].class == Proc
|
|
1670
|
-
key_combo[ch].call
|
|
1671
|
+
if key_combo[ch.ord].class == Proc
|
|
1672
|
+
key_combo[ch.ord].call
|
|
1671
1673
|
key_combo = nil
|
|
1672
|
-
elsif key_combo[ch].class == Hash
|
|
1673
|
-
key_combo = key_combo[ch]
|
|
1674
|
+
elsif key_combo[ch.ord].class == Hash
|
|
1675
|
+
key_combo = key_combo[ch.ord]
|
|
1674
1676
|
else
|
|
1675
1677
|
key_combo = nil
|
|
1676
1678
|
end
|