socketlock 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/Rakefile +0 -16
- data/lib/socketlock.rb +1 -16
- metadata +4 -4
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,18 +1,3 @@
|
|
1
|
-
#
|
2
|
-
# License:: Apache License, Version 2.0
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
1
|
|
17
2
|
require File.dirname(__FILE__) + '/lib/socketlock'
|
18
3
|
|
@@ -20,7 +5,6 @@ require 'rubygems'
|
|
20
5
|
require 'rubygems/package_task'
|
21
6
|
require 'rdoc/task'
|
22
7
|
require 'rake/clean'
|
23
|
-
# require './tasks/rspec.rb'
|
24
8
|
|
25
9
|
GEM_NAME = 'socketlock'
|
26
10
|
|
data/lib/socketlock.rb
CHANGED
@@ -1,18 +1,3 @@
|
|
1
|
-
#
|
2
|
-
# Apache License, Version 2.0
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
1
|
|
17
2
|
require 'timeout'
|
18
3
|
require 'monitor'
|
@@ -21,7 +6,7 @@ require 'uri'
|
|
21
6
|
|
22
7
|
class SocketLock
|
23
8
|
SOCKETLOCK_ROOT = File.dirname(File.expand_path(File.dirname(__FILE__)))
|
24
|
-
VERSION = '0.5.
|
9
|
+
VERSION = '0.5.9'
|
25
10
|
|
26
11
|
def initialize port, interface = '127.0.0.1', lock_timeout = 15 * 60
|
27
12
|
@port = port
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socketlock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02-
|
13
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: A gem for doing concurrency locks using a TCP port.
|
16
16
|
email:
|
@@ -40,7 +40,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
40
|
version: '0'
|
41
41
|
segments:
|
42
42
|
- 0
|
43
|
-
hash:
|
43
|
+
hash: 2795296364707238126
|
44
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
45
|
none: false
|
46
46
|
requirements:
|
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
49
|
version: '0'
|
50
50
|
segments:
|
51
51
|
- 0
|
52
|
-
hash:
|
52
|
+
hash: 2795296364707238126
|
53
53
|
requirements: []
|
54
54
|
rubyforge_project:
|
55
55
|
rubygems_version: 1.8.25
|