lockfile 2.1.0 → 2.1.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.
- checksums.yaml +15 -0
- data/README +1 -1
- data/lib/lockfile.rb +5 -1
- data/lockfile.gemspec +5 -3
- data/rakefile +25 -39
- metadata +8 -9
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZmUyZGM0ZmNlYzJhYzlmYjhhOWY1Mjc1ODc0MzUxMGRhOTEzMTY3ZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDczNDdiOWU3MzZmYjBjYjc4ZThmYjY2OGIwMzk4Njk4MGZhMTBhYQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzU3MGVlOWRlMDY3OTM0OTliYzQ4ZTY1MTUwM2MwYTdmYmI5NjJlODRjZmFj
|
10
|
+
NzAzMDI1ZTA3MWFlYzdiNjE2ZTg3ZGNhY2MyN2I0OWZhNGQ2YmEyNzdiZTNi
|
11
|
+
YjUyOWJhMGJkMzY3M2FmNGFiNzczNjg4ODQ0MDA2YjYzM2I3NTQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OTA1NjM2MWY4YTZlOWY1ZTRlYjJkOTliYTUzYzZkNzg1ZWYzMTFhZDRiMGIy
|
14
|
+
ZmM1NDc0OWJkYzY4OTA5ZmRkYzE4ZTU2MWM2OGMxNjk1N2QyZWVlNjgxZGNm
|
15
|
+
ZjhiZmRlZTc3NmIzOGFkOGMxMmI5NjVmNjQ5ODhmOTM3MjExZGI=
|
data/README
CHANGED
@@ -5,7 +5,7 @@ URLS
|
|
5
5
|
|
6
6
|
SYNOPSIS
|
7
7
|
|
8
|
-
lib/lockfile.rb : a ruby library for creating NFS safe lockfiles
|
8
|
+
lib/lockfile.rb : a ruby library for creating perfect and NFS safe lockfiles
|
9
9
|
|
10
10
|
bin/rlock : ruby command line tool which uses this library to create lockfiles
|
11
11
|
and to run arbitrary commands while holding them.
|
data/lib/lockfile.rb
CHANGED
@@ -6,10 +6,14 @@ unless(defined?($__lockfile__) or defined?(Lockfile))
|
|
6
6
|
|
7
7
|
class Lockfile
|
8
8
|
|
9
|
-
VERSION = '2.1.
|
9
|
+
VERSION = '2.1.1'
|
10
10
|
def Lockfile.version() Lockfile::VERSION end
|
11
11
|
def version() Lockfile::VERSION end
|
12
12
|
|
13
|
+
def Lockfile.description
|
14
|
+
'a ruby library for creating perfect and NFS safe lockfiles'
|
15
|
+
end
|
16
|
+
|
13
17
|
class LockError < StandardError; end
|
14
18
|
class StolenLockError < LockError; end
|
15
19
|
class StackingLockError < LockError; end
|
data/lockfile.gemspec
CHANGED
@@ -3,10 +3,11 @@
|
|
3
3
|
|
4
4
|
Gem::Specification::new do |spec|
|
5
5
|
spec.name = "lockfile"
|
6
|
-
spec.version = "2.1.
|
6
|
+
spec.version = "2.1.1"
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
8
8
|
spec.summary = "lockfile"
|
9
|
-
spec.description = "
|
9
|
+
spec.description = "a ruby library for creating perfect and NFS safe lockfiles"
|
10
|
+
spec.license = "same as ruby's"
|
10
11
|
|
11
12
|
spec.files =
|
12
13
|
["README",
|
@@ -33,7 +34,8 @@ Gem::Specification::new do |spec|
|
|
33
34
|
|
34
35
|
spec.test_files = nil
|
35
36
|
|
36
|
-
|
37
|
+
### spec.add_dependency 'lib', '>= version'
|
38
|
+
#### spec.add_dependency 'map'
|
37
39
|
|
38
40
|
spec.extensions.push(*[])
|
39
41
|
|
data/rakefile
CHANGED
@@ -3,6 +3,9 @@ This.author = "Ara T. Howard"
|
|
3
3
|
This.email = "ara.t.howard@gmail.com"
|
4
4
|
This.homepage = "https://github.com/ahoward/#{ This.lib }"
|
5
5
|
|
6
|
+
task :license do
|
7
|
+
open('LICENSE', 'w'){|fd| fd.puts "same as ruby's"}
|
8
|
+
end
|
6
9
|
|
7
10
|
task :default do
|
8
11
|
puts((Rake::Task.tasks.map{|task| task.name.gsub(/::/,':')} - ['default']).sort)
|
@@ -29,7 +32,7 @@ def run_tests!(which = nil)
|
|
29
32
|
|
30
33
|
test_rbs.each_with_index do |test_rb, index|
|
31
34
|
testno = index + 1
|
32
|
-
command = "#{ This.ruby } -I ./lib -I ./test/lib #{ test_rb }"
|
35
|
+
command = "#{ This.ruby } -w -I ./lib -I ./test/lib #{ test_rb }"
|
33
36
|
|
34
37
|
puts
|
35
38
|
say(div, :color => :cyan, :bold => true)
|
@@ -60,7 +63,7 @@ end
|
|
60
63
|
task :gemspec do
|
61
64
|
ignore_extensions = ['git', 'svn', 'tmp', /sw./, 'bak', 'gem']
|
62
65
|
ignore_directories = ['pkg']
|
63
|
-
ignore_files = ['test/log'
|
66
|
+
ignore_files = ['test/log']
|
64
67
|
|
65
68
|
shiteless =
|
66
69
|
lambda do |list|
|
@@ -87,9 +90,10 @@ task :gemspec do
|
|
87
90
|
files = shiteless[Dir::glob("**/**")]
|
88
91
|
executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)}
|
89
92
|
#has_rdoc = true #File.exist?('doc')
|
90
|
-
test_files =
|
93
|
+
test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
|
91
94
|
summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
|
92
95
|
description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
|
96
|
+
license = object.respond_to?(:license) ? object.license : "same as ruby's"
|
93
97
|
|
94
98
|
if This.extensions.nil?
|
95
99
|
This.extensions = []
|
@@ -100,51 +104,39 @@ task :gemspec do
|
|
100
104
|
end
|
101
105
|
extensions = [extensions].flatten.compact
|
102
106
|
|
103
|
-
# TODO
|
104
|
-
if This.dependencies.nil?
|
105
|
-
dependencies = []
|
106
|
-
else
|
107
|
-
case This.dependencies
|
108
|
-
when Hash
|
109
|
-
dependencies = This.dependencies.values
|
110
|
-
when Array
|
111
|
-
dependencies = This.dependencies
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
107
|
template =
|
116
108
|
if test(?e, 'gemspec.erb')
|
117
109
|
Template{ IO.read('gemspec.erb') }
|
118
110
|
else
|
119
111
|
Template {
|
120
112
|
<<-__
|
121
|
-
##
|
113
|
+
## #{ lib }.gemspec
|
122
114
|
#
|
123
115
|
|
124
116
|
Gem::Specification::new do |spec|
|
125
|
-
spec.name =
|
126
|
-
spec.version =
|
117
|
+
spec.name = #{ lib.inspect }
|
118
|
+
spec.version = #{ version.inspect }
|
127
119
|
spec.platform = Gem::Platform::RUBY
|
128
|
-
spec.summary =
|
129
|
-
spec.description =
|
120
|
+
spec.summary = #{ lib.inspect }
|
121
|
+
spec.description = #{ description.inspect }
|
122
|
+
spec.license = #{ license.inspect }
|
130
123
|
|
131
|
-
spec.files =\n
|
132
|
-
spec.executables =
|
124
|
+
spec.files =\n#{ files.sort.pretty_inspect }
|
125
|
+
spec.executables = #{ executables.inspect }
|
133
126
|
|
134
127
|
spec.require_path = "lib"
|
135
128
|
|
136
|
-
spec.test_files =
|
129
|
+
spec.test_files = #{ test_files.inspect }
|
137
130
|
|
138
|
-
|
139
|
-
|
140
|
-
<% end %>
|
131
|
+
### spec.add_dependency 'lib', '>= version'
|
132
|
+
#### spec.add_dependency 'map'
|
141
133
|
|
142
|
-
spec.extensions.push(
|
134
|
+
spec.extensions.push(*#{ extensions.inspect })
|
143
135
|
|
144
|
-
spec.rubyforge_project =
|
145
|
-
spec.author =
|
146
|
-
spec.email =
|
147
|
-
spec.homepage =
|
136
|
+
spec.rubyforge_project = #{ This.rubyforge_project.inspect }
|
137
|
+
spec.author = #{ This.author.inspect }
|
138
|
+
spec.email = #{ This.email.inspect }
|
139
|
+
spec.homepage = #{ This.homepage.inspect }
|
148
140
|
end
|
149
141
|
__
|
150
142
|
}
|
@@ -188,8 +180,8 @@ task :readme do
|
|
188
180
|
end
|
189
181
|
|
190
182
|
template =
|
191
|
-
if test(?e, '
|
192
|
-
Template{ IO.read('
|
183
|
+
if test(?e, 'README.erb')
|
184
|
+
Template{ IO.read('README.erb') }
|
193
185
|
else
|
194
186
|
Template {
|
195
187
|
<<-__
|
@@ -280,12 +272,6 @@ BEGIN {
|
|
280
272
|
end
|
281
273
|
This.version = version
|
282
274
|
|
283
|
-
# see if dependencies are export by the module
|
284
|
-
#
|
285
|
-
if This.object.respond_to?(:dependencies)
|
286
|
-
This.dependencies = This.object.dependencies
|
287
|
-
end
|
288
|
-
|
289
275
|
# we need to know the name of the lib an it's version
|
290
276
|
#
|
291
277
|
abort('no lib') unless This.lib
|
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ara T. Howard
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-02-15 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description:
|
13
|
+
description: a ruby library for creating perfect and NFS safe lockfiles
|
15
14
|
email: ara.t.howard@gmail.com
|
16
15
|
executables:
|
17
16
|
- rlock
|
@@ -32,27 +31,27 @@ files:
|
|
32
31
|
- samples/nfsstore.rb
|
33
32
|
- samples/out
|
34
33
|
homepage: https://github.com/ahoward/lockfile
|
35
|
-
licenses:
|
34
|
+
licenses:
|
35
|
+
- same as ruby's
|
36
|
+
metadata: {}
|
36
37
|
post_install_message:
|
37
38
|
rdoc_options: []
|
38
39
|
require_paths:
|
39
40
|
- lib
|
40
41
|
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
47
|
requirements:
|
49
48
|
- - ! '>='
|
50
49
|
- !ruby/object:Gem::Version
|
51
50
|
version: '0'
|
52
51
|
requirements: []
|
53
52
|
rubyforge_project: codeforpeople
|
54
|
-
rubygems_version:
|
53
|
+
rubygems_version: 2.0.3
|
55
54
|
signing_key:
|
56
|
-
specification_version:
|
55
|
+
specification_version: 4
|
57
56
|
summary: lockfile
|
58
57
|
test_files: []
|