with_lock 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.ruby-gemset +1 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +9 -1
- data/README.md +1 -3
- data/Rakefile +18 -1
- data/config/with_lock.local.yml +1 -1
- data/lib/with_lock/version.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- data/with_lock.gemspec +3 -2
- metadata +24 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36e30ee8c1335bde533c80bb345851ac74a89023
|
4
|
+
data.tar.gz: 19bd78cf3bf977a110caa04892c33c754b603072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6747452e1694bd5ae16905d6fef015bc5c1c1b724736f65c0453118fcff710e638ad1539a4b708342d637b1d465de2bf1e983701f3a939bbe9a8db052aeaa660
|
7
|
+
data.tar.gz: e72e9ab7f5c565ddc09c48c8bb47d0ce931e1ba07aff745c5d83ee1626c4cb1e6b9ba08f529ecbdf8d36c7b5bd86807386796ce0b8feed86c92af1ffa9ffd122
|
data/.gitignore
CHANGED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
with_lock
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
with_lock (0.
|
4
|
+
with_lock (0.1.1)
|
5
5
|
daemons
|
6
6
|
|
7
7
|
GEM
|
@@ -9,6 +9,8 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
daemons (1.1.9)
|
11
11
|
diff-lcs (1.1.3)
|
12
|
+
docile (1.1.5)
|
13
|
+
multi_json (1.10.1)
|
12
14
|
rspec (2.8.0)
|
13
15
|
rspec-core (~> 2.8.0)
|
14
16
|
rspec-expectations (~> 2.8.0)
|
@@ -17,10 +19,16 @@ GEM
|
|
17
19
|
rspec-expectations (2.8.0)
|
18
20
|
diff-lcs (~> 1.1.2)
|
19
21
|
rspec-mocks (2.8.0)
|
22
|
+
simplecov (0.9.1)
|
23
|
+
docile (~> 1.1.0)
|
24
|
+
multi_json (~> 1.0)
|
25
|
+
simplecov-html (~> 0.8.0)
|
26
|
+
simplecov-html (0.8.0)
|
20
27
|
|
21
28
|
PLATFORMS
|
22
29
|
ruby
|
23
30
|
|
24
31
|
DEPENDENCIES
|
25
32
|
rspec
|
33
|
+
simplecov
|
26
34
|
with_lock!
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Add to your Gemfile and run the `bundle` command to install it.
|
|
10
10
|
gem "with_lock"
|
11
11
|
```
|
12
12
|
|
13
|
-
**Tested under Ruby 1.9.3
|
13
|
+
**Tested under Ruby 1.9.3-p545 and 2.1.3**
|
14
14
|
|
15
15
|
Add script and config files to your project(from console):
|
16
16
|
```ruby
|
@@ -28,8 +28,6 @@ Start/Stop the service from ruby
|
|
28
28
|
WithLock::Server.start_service
|
29
29
|
WithLock::Server.stop_service
|
30
30
|
```
|
31
|
-
Start/Stop service from
|
32
|
-
|
33
31
|
## Usage
|
34
32
|
A "with_lock()" function is provided globally to wrap with_lock sections of code.
|
35
33
|
|
data/Rakefile
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require 'simplecov'
|
2
3
|
|
3
4
|
require 'rspec/core/rake_task'
|
4
5
|
desc 'Run the specs'
|
@@ -6,4 +7,20 @@ RSpec::Core::RakeTask.new do |r|
|
|
6
7
|
r.verbose = false
|
7
8
|
end
|
8
9
|
|
9
|
-
|
10
|
+
#desc "Run all examples with RCov"
|
11
|
+
#RSpec::Core::RakeTask.new('examples_with_rcov') do |t|
|
12
|
+
# #t.spec_files = FileList['spec/**/*.rb']
|
13
|
+
# t.rcov = true
|
14
|
+
# #t.rcov_opts = ['--exclude', 'spec']
|
15
|
+
#end
|
16
|
+
#
|
17
|
+
#begin
|
18
|
+
# require 'spec/rake/verify_rcov'
|
19
|
+
# RCov::VerifyTask.new(:verify_rcov => 'spec:rcov') do |t|
|
20
|
+
# t.threshold = 100.0
|
21
|
+
# t.index_html = 'coverage/index.html'
|
22
|
+
# end
|
23
|
+
#rescue LoadError => e
|
24
|
+
#end
|
25
|
+
|
26
|
+
task :default => :spec
|
data/config/with_lock.local.yml
CHANGED
data/lib/with_lock/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/with_lock.gemspec
CHANGED
@@ -6,6 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "with_lock"
|
7
7
|
s.version = WithLock::VERSION
|
8
8
|
s.authors = ["Christopher Louis Hauboldt"]
|
9
|
+
s.licenses = ['MIT']
|
9
10
|
s.email = ["chris@hauboldt.us"]
|
10
11
|
s.homepage = "https://github.com/chrisboy333/with_lock"
|
11
12
|
s.summary = %q{Implements named mutexes for ruby applications.}
|
@@ -18,6 +19,6 @@ Gem::Specification.new do |s|
|
|
18
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
20
|
s.require_paths = ["lib"]
|
20
21
|
|
21
|
-
s.add_development_dependency "rspec"
|
22
|
-
s.add_dependency "daemons"
|
22
|
+
s.add_development_dependency "rspec", ">2.8", "~>2.8.0"
|
23
|
+
s.add_dependency "daemons", ">1.1", "~>1.1.9"
|
23
24
|
end
|
metadata
CHANGED
@@ -1,43 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: with_lock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Louis Hauboldt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.8'
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.8.0
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.8'
|
30
|
+
- - "~>"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.8.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: daemons
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '1.1'
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.1.9
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.1'
|
50
|
+
- - "~>"
|
39
51
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
52
|
+
version: 1.1.9
|
41
53
|
description: Implements named mutexes for ruby applications by creating a resource
|
42
54
|
server to query for locks.
|
43
55
|
email:
|
@@ -67,7 +79,8 @@ files:
|
|
67
79
|
- spec/with_lock_spec.rb
|
68
80
|
- with_lock.gemspec
|
69
81
|
homepage: https://github.com/chrisboy333/with_lock
|
70
|
-
licenses:
|
82
|
+
licenses:
|
83
|
+
- MIT
|
71
84
|
metadata: {}
|
72
85
|
post_install_message:
|
73
86
|
rdoc_options: []
|