monotone 0.0.1 → 0.0.2

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: 9b1e8905b4361d5e3c6594b88d41202a03e9233f
4
- data.tar.gz: 5f5a2df2321c041fbc43cefc681d9d2d2988068f
3
+ metadata.gz: b5e058f011a3cbd1227a6a5fe672f20c784ec8a1
4
+ data.tar.gz: 1ea62e12d10b3e2413622623726bb6093c800a55
5
5
  SHA512:
6
- metadata.gz: e4adbdd3e55274c66864150d0a12138ba60a77d929afd3b8eb5c5cc74f138a5039b0b0b0c36281f52fa513ee270107497a8d796454dc670f367612899bfee969
7
- data.tar.gz: e837f13a23ea54a33fc2c201999d497d0fef34c1ccad7abc4a1cb9956ae8182e236cf489323baebccff1460801f9f3cd1fdbc504bc5da39d482e0f954bb46609
6
+ metadata.gz: d4c8a8acf73071155bb2084256d069cdcc38e7eb874d59281355796e89123c713b137f506c422ab300ff7c629357fb116fb571b6b5b6bf1ee88c861c1df85914
7
+ data.tar.gz: f05129406e6ae16476b63d016be268a5b0589880557f06a129d62d1d09c9d98cf0ff43f45f08ff248e672f2ce98b20ca55e286722750e9b7237b0100d320449f
data/README.md CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
  require 'monotone'
24
24
  Monotone.next 'key' # Returns 0
25
25
  Monotone.next 'key' # Returns 1
26
- Monotone.set 'key', 0 # Returns 0
26
+ Monotone.set 'key', 0 # Returns 0
27
27
  Monotone.next 'key' # Returns 1
28
28
  ```
29
29
 
data/lib/monotone.rb CHANGED
@@ -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, '0')
37
+ File.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.1'
2
+ VERSION = '0.0.2'
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Shea