rufus-cloche 0.1.21 → 1.0.0
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/CHANGELOG.txt +6 -0
- data/CREDITS.txt +6 -1
- data/lib/rufus/cloche/version.rb +1 -1
- data/lib/rufus/cloche.rb +1 -4
- data/rufus-cloche.gemspec +2 -1
- metadata +5 -5
data/CHANGELOG.txt
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
= rufus-cloche CHANGELOG.txt
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
== rufus-cloche - 1.0.0 released 2011/05/25
|
|
6
|
+
|
|
7
|
+
- fix for flock and JRuby (Thanks Mario Camou)
|
|
8
|
+
http://jira.codehaus.org/browse/JRUBY-5627
|
|
9
|
+
|
|
10
|
+
|
|
5
11
|
== rufus-cloche - 0.1.21 release 2011/04/19
|
|
6
12
|
|
|
7
13
|
- removed the require 'json' / 'yajl' in the lib itself (Thanks Torsten)
|
data/CREDITS.txt
CHANGED
data/lib/rufus/cloche/version.rb
CHANGED
data/lib/rufus/cloche.rb
CHANGED
|
@@ -53,9 +53,6 @@ module Rufus
|
|
|
53
53
|
#
|
|
54
54
|
# On the Windows platform, :nolock is set to true automatically.
|
|
55
55
|
#
|
|
56
|
-
# With JRuby 1.4.0, :nolock=true seems necessary on Ubuntu. While
|
|
57
|
-
# flock seems to work on MacOSX Snow Leopard.
|
|
58
|
-
#
|
|
59
56
|
def initialize (opts={})
|
|
60
57
|
|
|
61
58
|
@dir = File.expand_path(opts[:dir] || 'cloche')
|
|
@@ -304,7 +301,7 @@ module Rufus
|
|
|
304
301
|
FileUtils.touch(fn) unless File.exist?(fn)
|
|
305
302
|
end
|
|
306
303
|
|
|
307
|
-
file = File.new(fn) rescue nil
|
|
304
|
+
file = File.new(fn, 'r+') rescue nil
|
|
308
305
|
|
|
309
306
|
return false if file.nil?
|
|
310
307
|
|
data/rufus-cloche.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rufus-cloche
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
|
-
- 0
|
|
8
7
|
- 1
|
|
9
|
-
-
|
|
10
|
-
|
|
8
|
+
- 0
|
|
9
|
+
- 0
|
|
10
|
+
version: 1.0.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- John Mettraux
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-05-25 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|