lolcommits 0.9.3.pre2 → 0.9.3.pre3

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: c7f9361b802d1360887f9abf9851379a40a006af
4
- data.tar.gz: f6eaccaf5bcd60b3de0919d0e2d50cd0c9b42c60
3
+ metadata.gz: d1c432270b046edb27829416bf9ada561b3aa0a5
4
+ data.tar.gz: d1238ceb4a716d739117795669c2ccf0c000a7ab
5
5
  SHA512:
6
- metadata.gz: 7760ce09dbb11464c376382c1d7aad4503affba32f36aaae686f0095ad0348e97f5dc6d20185bbe26709936cca5e68f60aa99f6e705252a21479a44868c366dc
7
- data.tar.gz: a55a968ffcb164820a4b7ca18994ebd58a7da8ca95cf06033e4ab069a5560cb0f22459757a374a74be3382bba48399b635c31c2c66d8e9d9b58523768daf5d08
6
+ metadata.gz: 85662930d7f30595deef8e6f4d9974057e2ff256a290369ea5db91d9747139a04ef93b5f22d62fc620eacb07d0a43c0835ac9fcedbd8dc40e2b9bf4745a9ea08
7
+ data.tar.gz: b46e6131b9874a545ecb4b904f90e5dea2494bcc6395a38a3bb472b3a22561bcf5c0d7701e1c2a63e9b579a89a2fe99a57e15440a64a7a2134d1e0df33d9dfeb
@@ -66,19 +66,18 @@ module Lolcommits
66
66
  capture_cmd = 'lolcommits --capture'
67
67
 
68
68
  if Lolcommits::Platform.platform_windows?
69
- capture_cmd = 'if "%LOLCOMMITS_CAPTURE_DISABLED%"=="true" (exit)'
70
- capture_cmd = "set path=#{ruby_path};#{imagick_path};%PATH%&&#{capture_cmd}"
69
+ exports = "set path=#{ruby_path};#{imagick_path};%PATH%"
70
+ capture_cmd = "#{exports} && IF \\I NOT \"%LOLCOMMITS_CAPTURE_DISABLED%\"==\"true\" #{capture_cmd} #{capture_args}"
71
71
  else
72
72
  locale_export = "LANG=\"#{ENV['LANG']}\""
73
73
  hook_export = "PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
74
- capture_cmd = "#{locale_export} #{hook_export} #{capture_cmd}"
74
+ capture_cmd = "if [ ! -d \"$GIT_DIR/rebase-merge\" ] && [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then #{capture_cmd} #{capture_args}; fi"
75
+ capture_cmd = "#{locale_export} && #{hook_export} && #{capture_cmd}"
75
76
  end
76
77
 
77
78
  <<-EOS
78
79
  ### lolcommits hook (begin) ###
79
- if [ ! -d "$GIT_DIR/rebase-merge" ] && [ "$LOLCOMMITS_CAPTURE_DISABLED" != "true" ]; then
80
- #{capture_cmd} #{capture_args}
81
- fi
80
+ #{capture_cmd}
82
81
  ### lolcommits hook (end) ###
83
82
  EOS
84
83
  end
@@ -43,13 +43,12 @@ module Lolcommits
43
43
  capture_cmd = 'lolcommits --capture'
44
44
 
45
45
  if Lolcommits::Platform.platform_windows?
46
- capture_cmd = 'if "%LOLCOMMITS_CAPTURE_DISABLED%"=="true" (exit)'
47
- capture_cmd = "set path=#{ruby_path};#{imagick_path};%PATH%&&#{capture_cmd} #{capture_args}"
46
+ exports = "set path=#{ruby_path};#{imagick_path};%PATH%"
47
+ capture_cmd = "#{exports} && IF \\I NOT \"%LOLCOMMITS_CAPTURE_DISABLED%\"==\"true\" #{capture_cmd} #{capture_args}"
48
48
  else
49
49
  locale_export = "LANG=\"#{ENV['LANG']}\""
50
50
  hook_export = "PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
51
- capture_cmd = "#{locale_export} #{hook_export} #{capture_cmd}"
52
- capture_cmd = "if [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then #{capture_cmd} #{capture_args}; fi"
51
+ capture_cmd = "#{locale_export} && #{hook_export} && if [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then #{capture_cmd} #{capture_args}; fi"
53
52
  end
54
53
 
55
54
  capture_cmd
@@ -1,4 +1,4 @@
1
1
  module Lolcommits
2
- VERSION = '0.9.3.pre2'.freeze
2
+ VERSION = '0.9.3.pre3'.freeze
3
3
  GEM_NAME = 'lolcommits'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3.pre2
4
+ version: 0.9.3.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Rothenberg