necktie 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/necktie/files.rb +8 -0
  2. data/necktie.gemspec +1 -1
  3. metadata +1 -1
data/lib/necktie/files.rb CHANGED
@@ -4,3 +4,11 @@ def fix_file(file, &block)
4
4
  out.write text
5
5
  end
6
6
  end
7
+
8
+ def touch(name)
9
+ if File.exist?(name)
10
+ File.utime time = Time.now, time, "foo"
11
+ else
12
+ File.open(name, "a").close
13
+ end
14
+ end
data/necktie.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "necktie"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.author = "Assaf Arkin"
5
5
  spec.email = "assaf@labnotes.org"
6
6
  spec.homepage = ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: necktie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Assaf Arkin