rufus-cloche 0.1.21 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -7,7 +7,12 @@ many thanks to Brian Lopez for yajl-ruby
7
7
 
8
8
  == authors
9
9
 
10
- John Mettraux http://github.com/jmettraux
10
+ John Mettraux - http://github.com/jmettraux
11
+
12
+
13
+ == contributors
14
+
15
+ Mario Camou - JRuby flock fix
11
16
 
12
17
 
13
18
  == feedback
@@ -30,7 +30,7 @@ module Rufus
30
30
  #
31
31
  class Cloche
32
32
 
33
- VERSION = '0.1.21'
33
+ VERSION = '1.0.0'
34
34
  end
35
35
  end
36
36
 
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
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
- load 'lib/rufus/cloche/version.rb'
3
+ require File.join(File.dirname(__FILE__), 'lib/rufus/cloche/version')
4
+ # bundler wants absolute path
4
5
 
5
6
 
6
7
  Gem::Specification.new do |s|
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: 49
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
- - 0
8
7
  - 1
9
- - 21
10
- version: 0.1.21
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-04-19 00:00:00 +09:00
18
+ date: 2011-05-25 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency