officer 0.3.0 → 0.3.1
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.
- data/README.markdown +10 -7
- data/VERSION +1 -1
- data/officer.gemspec +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -5,21 +5,23 @@ It is implemented using Ruby and Eventmachine. Inspiration comes from [elock](ht
|
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
8
|
-
gem install gemcutter
|
9
|
-
gem install officer
|
8
|
+
sudo gem install gemcutter
|
9
|
+
sudo gem install officer
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
sudo officer --help
|
14
|
+
sudo officer start
|
15
|
+
|
16
|
+
- The server listens on 0.0.0.0:11500 by default. In the future this should be configurable.
|
17
|
+
- All debugging output goes to stdout for now. Use 'sudo officer run' to see it.
|
16
18
|
|
17
19
|
## Ruby Client
|
18
20
|
|
19
21
|
require 'rubygems'
|
20
22
|
require 'officer'
|
21
23
|
|
22
|
-
### Create a client object (
|
24
|
+
### Create a client object (defaults to localhost:11500)
|
23
25
|
|
24
26
|
client = Officer::Client.new :host => 'localhost', :port => 11500
|
25
27
|
|
@@ -47,10 +49,11 @@ All debugging output goes to stdout for now.
|
|
47
49
|
|
48
50
|
## Planned Features
|
49
51
|
|
50
|
-
- Option to abort a lock request if there is already a certain number of clients waiting for the lock.
|
51
52
|
- Lock statistics.
|
52
53
|
- Retrieve the complete list of locks.
|
53
54
|
- Retrieve the list of locks for the current connection.
|
55
|
+
- Client: Option to abort a lock request if there is already a certain number of clients waiting for the lock.
|
56
|
+
- Server: Make IP and port configurable.
|
54
57
|
|
55
58
|
## Copyright
|
56
59
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/officer.gemspec
CHANGED