awesomer 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +5 -0
  2. data/lib/awesomer.rb +8 -3
  3. metadata +3 -3
@@ -1,3 +1,8 @@
1
+ === 1.0.2 / 2008-03-29
2
+
3
+ * Multiple arg support.
4
+ * Check if the awesome socket is alive.
5
+
1
6
  === 1.0.0 / 2008-02-10
2
7
 
3
8
  * First public release
@@ -26,7 +26,7 @@ require 'socket'
26
26
  # end
27
27
  #
28
28
  class Awesomer
29
- VERSION = '1.0.1'
29
+ VERSION = '1.0.2'
30
30
 
31
31
  attr_accessor :screen
32
32
  attr_accessor :socket
@@ -45,14 +45,19 @@ class Awesomer
45
45
 
46
46
  # We take all method calls as possible UICB functions.
47
47
  def method_missing(method, *args)
48
- send(method, args)
48
+ send(method, args.join(' '))
49
49
  end
50
50
 
51
51
  # Connect to the awesome window manager socket.
52
52
  def connect
53
53
  @socket = Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM, 0)
54
54
  path = File.join(ENV['HOME'], ".awesome_ctl.#@screen")
55
- @socket.connect(Socket.pack_sockaddr_un(path))
55
+ if File.exists? path
56
+ @socket.connect(Socket.pack_sockaddr_un(path))
57
+ else
58
+ sleep 1
59
+ connect
60
+ end
56
61
  end
57
62
 
58
63
  # Close connection to the awesome window manager socket.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesomer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eivind Uggedal
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-11 00:00:00 +01:00
12
+ date: 2008-03-29 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.5.0
22
+ version: 1.5.1
23
23
  version:
24
24
  description: Awesomer is a ruby library for interacting with the +awesome+ window manager. It replaces the +awesome-client+ distributed with the window manager.
25
25
  email: eu@redflavor.com