epitools 0.5.49 → 0.5.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/epitools/autoloads.rb +0 -1
- data/lib/epitools/core_ext/string.rb +2 -2
- data/lib/epitools/path.rb +4 -4
- data/lib/epitools/wm.rb +15 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 441d02e0372d8c97303950bdf5d570c9dfa49e2d
|
4
|
+
data.tar.gz: 5ddfa720d5d750ab2ddcef66470d1bc7813d8f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f6f9b60fc8fc735cbbc6afeaead00f06f52e9fd3dd2959107ff8a5c33997ff0a30f21e61bb99b59e68a699a527584dee90ba9733159f9cbe6aa923185aa5d55
|
7
|
+
data.tar.gz: abdf754b0f3e4e6ac454d5bad73c3993fbb3921cb652caece084b208d7be31afe2db14e80d72353558814c65c17c7a02d3b3989bbbd3ab14526bb4b3fb28f56e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.50
|
data/lib/epitools/autoloads.rb
CHANGED
@@ -227,7 +227,7 @@ class String
|
|
227
227
|
# Decode a mime64/base64 encoded string
|
228
228
|
#
|
229
229
|
def from_base64
|
230
|
-
|
230
|
+
unpack("m").first
|
231
231
|
end
|
232
232
|
alias_method :decode64, :from_base64
|
233
233
|
|
@@ -235,7 +235,7 @@ class String
|
|
235
235
|
# Encode into a mime64/base64 string
|
236
236
|
#
|
237
237
|
def to_base64
|
238
|
-
|
238
|
+
[self].pack("m")
|
239
239
|
end
|
240
240
|
alias_method :base64, :to_base64
|
241
241
|
alias_method :encode64, :to_base64
|
data/lib/epitools/path.rb
CHANGED
@@ -442,16 +442,16 @@ class Path
|
|
442
442
|
# # file: Scissor_Sisters_-_Invisible_Light.flv
|
443
443
|
# user.m.options="-c"
|
444
444
|
|
445
|
-
cmd = [
|
445
|
+
cmd = %w[getfattr -d -m - -e base64] + [path]
|
446
446
|
|
447
447
|
attrs = {}
|
448
448
|
|
449
449
|
IO.popen(cmd, "rb", :err=>[:child, :out]) do |io|
|
450
450
|
io.each_line do |line|
|
451
|
-
if line =~ /^([^=]+)=
|
451
|
+
if line =~ /^([^=]+)=0s(.+)/
|
452
452
|
key = $1
|
453
|
-
value =
|
454
|
-
value = value.encode("UTF-8", "UTF-8") # set
|
453
|
+
value = $2.from_base64 # unpack base64 string
|
454
|
+
value = value.encode("UTF-8", "UTF-8") # set string's encoding to UTF-8
|
455
455
|
|
456
456
|
attrs[key] = value
|
457
457
|
end
|
data/lib/epitools/wm.rb
CHANGED
@@ -361,6 +361,21 @@ module WM
|
|
361
361
|
end
|
362
362
|
end
|
363
363
|
|
364
|
+
def xdotool_keys(keys)
|
365
|
+
# --window windowid
|
366
|
+
# Send keystrokes to a specific window id. See "SENDEVENT NOTES" below. The default, if no
|
367
|
+
# window is given, depends on the window stack. If the window stack is empty the current
|
368
|
+
# window is typed at using XTEST. Otherwise, the default is "%1" (see "WINDOW STACK").
|
369
|
+
|
370
|
+
# --delay milliseconds
|
371
|
+
# Delay between keystrokes. Default is 12ms.
|
372
|
+
|
373
|
+
# --clearmodifiers
|
374
|
+
# Clear modifiers before sending keystrokes. See CLEARMODIFIERS below.
|
375
|
+
# xdotool key k1 k2 k3
|
376
|
+
# xdotool type string
|
377
|
+
end
|
378
|
+
|
364
379
|
def xse(keys)
|
365
380
|
temp = Tempfile.new("xse")
|
366
381
|
events = keys_to_events(keys)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epitools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- epitron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -130,3 +130,4 @@ signing_key:
|
|
130
130
|
specification_version: 3
|
131
131
|
summary: Not utils... METILS!
|
132
132
|
test_files: []
|
133
|
+
has_rdoc:
|