pivo_flow 0.2.1 → 0.2.2

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.
@@ -29,8 +29,8 @@ module PivoFlow
29
29
  hook_path = File.join(File.dirname(__FILE__), '..', '..', 'bin', @pf_git_hook_name)
30
30
  FileUtils.cp(hook_path, @pf_git_hook_path, preserve: true)
31
31
  puts "File copied..."
32
- unless File.exists?(@git_hook_path) && File.read(@git_hook_path).match(/\.\/#{@pf_git_hook_name}/)
33
- File.open(@git_hook_path, "a") { |f| f.puts("./#{@pf_git_hook_path} $1") }
32
+ unless File.exists?(@git_hook_path) && File.read(@git_hook_path).match(/#{@pf_git_hook_name} \$1/)
33
+ File.open(@git_hook_path, "a") { |f| f.puts(".#{@pf_git_hook_path} $1") }
34
34
  puts "Reference to pf-prepare-commit-msg added to prepare-commit-msg..."
35
35
  end
36
36
  unless File.executable?(@git_hook_path)
@@ -1,3 +1,3 @@
1
1
  module PivoFlow
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivo_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: