gitstagram 0.0.2 → 0.0.3

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.
data/bin/gitstagram CHANGED
File without changes
@@ -40,6 +40,9 @@ module Gitstagram
40
40
  end
41
41
  end
42
42
 
43
+ o.on "-s", "--snapshot" do
44
+ Gitstagram::Snapshot.smile
45
+ end
43
46
  end
44
47
 
45
48
  @parser.parse!(argv)
@@ -33,12 +33,7 @@ module Gitstagram
33
33
  end
34
34
 
35
35
  def add_post_commit
36
- file = File.open(File.expand_path('post-commit', File.dirname(__FILE__)), 'r') { |f| f.read }
37
- file.sub!('*||*') do |s|
38
- File.expand_path('../gitstagram.rb', File.dirname(__FILE__))
39
- end
40
-
41
- File.open('./.git/hooks/post-commit', 'w', 0755) {|f| f.write(file) }
36
+ File.open('./.git/hooks/post-commit', 'w', 0755) {|f| f.write("#!/bin/sh\ngitstagram --snapshot") }
42
37
  end
43
38
  end
44
39
  end
@@ -1,3 +1,3 @@
1
1
  module Gitstagram
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitstagram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
12
+ date: 2012-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec