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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31aba8c82626b4753d5c0d7276e5254843b7a89d
4
- data.tar.gz: 1d286ca44911af0d2488a0545b28efb5b2a70a51
3
+ metadata.gz: 441d02e0372d8c97303950bdf5d570c9dfa49e2d
4
+ data.tar.gz: 5ddfa720d5d750ab2ddcef66470d1bc7813d8f54
5
5
  SHA512:
6
- metadata.gz: 6944b8becb25834b10cff325645e7205b41ccf3101d5a2cde1bb7bc7802ecc72a6fe3a60bf918a157bdf1dbd4cbffaf7d52715e8bf3138b1ed9604337bfe4954
7
- data.tar.gz: db4e5771f84dcb040d33a9b2d13b8df61cf987040a512739240e74a0985a8f073310d667a9888e49ced2e7bcebdcfd78f861feef33a4636ee86c34a0fcb41bd2
6
+ metadata.gz: 2f6f9b60fc8fc735cbbc6afeaead00f06f52e9fd3dd2959107ff8a5c33997ff0a30f21e61bb99b59e68a699a527584dee90ba9733159f9cbe6aa923185aa5d55
7
+ data.tar.gz: abdf754b0f3e4e6ac454d5bad73c3993fbb3921cb652caece084b208d7be31afe2db14e80d72353558814c65c17c7a02d3b3989bbbd3ab14526bb4b3fb28f56e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.49
1
+ 0.5.50
@@ -3,7 +3,6 @@
3
3
  autoload :Set, 'set'
4
4
  autoload :URI, 'uri'
5
5
  autoload :CGI, 'cgi'
6
- autoload :Base64, 'base64'
7
6
  autoload :Zlib, 'zlib'
8
7
  autoload :FileUtils, 'fileutils'
9
8
  autoload :Tempfile, 'tempfile'
@@ -227,7 +227,7 @@ class String
227
227
  # Decode a mime64/base64 encoded string
228
228
  #
229
229
  def from_base64
230
- Base64.decode64 self
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
- Base64.encode64 self
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 = ["getfattr", "-d", "-e", "hex", path]
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 =~ /^([^=]+)=0x(.+)/
451
+ if line =~ /^([^=]+)=0s(.+)/
452
452
  key = $1
453
- value = [$2].pack("H*") # unpack hex string
454
- value = value.encode("UTF-8", "UTF-8") # set its encoding as UTF-8
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.49
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-03-06 00:00:00.000000000 Z
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: