increment 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/increment.rb +1 -1
  2. metadata +1 -1
@@ -7,7 +7,7 @@ class Increment
7
7
  def self.update(file='counter.txt')
8
8
 
9
9
  if File.exists? file then
10
- File.open('test','r+'){|f| i = f.read.succ; f.rewind; f.write i}
10
+ File.open(file, 'r+'){|f| i = f.read.succ; f.rewind; f.write i}
11
11
  else
12
12
  File.open(file,'w'){|f| f.write '1'}
13
13
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: increment
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson