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 +4 -4
- data/lib/monotone.rb +2 -2
- data/lib/monotone/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b17998e8ed2206c7da1682ca1657ae793be2582
|
4
|
+
data.tar.gz: 4bb7501684dc52e39963613ccb53597f8588d763
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfb140fc1cf6098c3890681192b29ba95a160e8577c106edfa364e3c4c5c4dcc7d350367e2c185dffcc11712bd00f1658384c7f7e0fccf42933daefaee47e9fa
|
7
|
+
data.tar.gz: ef638b02b20d84064dae05d245af6d9e7b42b72b5cce9ec2277523373fc35ab9f90b996c0ce478cf64c7b4e260b1cdef2d31fb2815d57116e84d91b7db561ac8
|
data/lib/monotone.rb
CHANGED
@@ -23,7 +23,7 @@ module Monotone
|
|
23
23
|
|
24
24
|
def set( name , value )
|
25
25
|
file(name) do |f|
|
26
|
-
File.
|
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
|
-
|
37
|
+
write(file, '-1')
|
38
38
|
end
|
39
39
|
end
|
40
40
|
block.yield(file)
|
data/lib/monotone/version.rb
CHANGED