monotone 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f94efb6a8b759ce636a849b534473725ba6bd552
4
- data.tar.gz: 94103c25ac83314cae468674dc755da022f476be
3
+ metadata.gz: 9b17998e8ed2206c7da1682ca1657ae793be2582
4
+ data.tar.gz: 4bb7501684dc52e39963613ccb53597f8588d763
5
5
  SHA512:
6
- metadata.gz: 59a0cfe92d83f98a00cbfa91c4ae344e15607a288643f70178e2dbfeec9aa680ae5c1165f6fe77c97cc29cb9b82615bba60cb7a0af36a52182b3e9e92e9651fc
7
- data.tar.gz: 511b98c2425d0212f293eebc2b6b7b2850a254d7c3575205163f72b07b494da2521c4ed15fa42b3a9c2c434128ac9f11cb5af5ce9f1c0af060e78e650e7f435d
6
+ metadata.gz: dfb140fc1cf6098c3890681192b29ba95a160e8577c106edfa364e3c4c5c4dcc7d350367e2c185dffcc11712bd00f1658384c7f7e0fccf42933daefaee47e9fa
7
+ data.tar.gz: ef638b02b20d84064dae05d245af6d9e7b42b72b5cce9ec2277523373fc35ab9f90b996c0ce478cf64c7b4e260b1cdef2d31fb2815d57116e84d91b7db561ac8
@@ -23,7 +23,7 @@ module Monotone
23
23
 
24
24
  def set( name , value )
25
25
  file(name) do |f|
26
- File.write(f, value.to_s)
26
+ File.open(f, 'w') {|f| f.write(value.to_s) }
27
27
  end
28
28
  value
29
29
  end
@@ -34,7 +34,7 @@ module Monotone
34
34
  synchronize do
35
35
  file = File.join(root_dir, name).tap do |file|
36
36
  unless File.file?(file)
37
- File.write(file, '-1')
37
+ write(file, '-1')
38
38
  end
39
39
  end
40
40
  block.yield(file)
@@ -1,3 +1,3 @@
1
1
  module Monotone
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monotone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Shea