lolcommits 0.9.3.pre3 → 0.9.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6864a969f2a474924b420bf5043e8f0cf8c4a06b
|
4
|
+
data.tar.gz: 7298c313a1747d98fb340edb3ffd36864ed8e22d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb73b9e99c8935a5609ec43e32d7e908fe9fb62f34da8576f4fd7dd50157430866174b2defe114c5870e8cbb0d9caea5ed85a0c5febc757b7a8caa33d9382b09
|
7
|
+
data.tar.gz: 969703fd3242a8ef0adcfe5b6d68da899421a882d4290ed89e2459f94584c47543e49a5cbe7452a04bc2f4c900aabf06b25200df2ee39d46003201491722f9e5
|
data/.travis.yml
CHANGED
@@ -58,26 +58,18 @@ module Lolcommits
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.hook_script(capture_args = '')
|
61
|
-
# TODO: have this return a single line bash like mercurial install, and DRY
|
62
|
-
# this method (only different in git is the rebase-merge check which could
|
63
|
-
# be extracted
|
64
61
|
ruby_path = Lolcommits::Platform.command_which('ruby', true)
|
65
62
|
imagick_path = Lolcommits::Platform.command_which('identify', true)
|
66
|
-
capture_cmd =
|
63
|
+
capture_cmd = "if [ ! -d \"$GIT_DIR/rebase-merge\" ] && [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then lolcommits --capture #{capture_args}; fi"
|
64
|
+
exports = "LANG=\"#{ENV['LANG']}\" && PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
|
67
65
|
|
68
66
|
if Lolcommits::Platform.platform_windows?
|
69
|
-
exports
|
70
|
-
capture_cmd = "#{exports} && IF \\I NOT \"%LOLCOMMITS_CAPTURE_DISABLED%\"==\"true\" #{capture_cmd} #{capture_args}"
|
71
|
-
else
|
72
|
-
locale_export = "LANG=\"#{ENV['LANG']}\""
|
73
|
-
hook_export = "PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
|
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}"
|
67
|
+
exports = "set path=#{ruby_path};#{imagick_path};%PATH%"
|
76
68
|
end
|
77
69
|
|
78
70
|
<<-EOS
|
79
71
|
### lolcommits hook (begin) ###
|
80
|
-
#{capture_cmd}
|
72
|
+
#{exports} && #{capture_cmd}
|
81
73
|
### lolcommits hook (end) ###
|
82
74
|
EOS
|
83
75
|
end
|
@@ -40,18 +40,14 @@ module Lolcommits
|
|
40
40
|
def self.hook_script(capture_args = '')
|
41
41
|
ruby_path = Lolcommits::Platform.command_which('ruby', true)
|
42
42
|
imagick_path = Lolcommits::Platform.command_which('identify', true)
|
43
|
-
capture_cmd =
|
43
|
+
capture_cmd = "if [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then lolcommits --capture #{capture_args}; fi"
|
44
|
+
exports = "LANG=\"#{ENV['LANG']}\" && PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
|
44
45
|
|
45
46
|
if Lolcommits::Platform.platform_windows?
|
46
|
-
exports
|
47
|
-
capture_cmd = "#{exports} && IF \\I NOT \"%LOLCOMMITS_CAPTURE_DISABLED%\"==\"true\" #{capture_cmd} #{capture_args}"
|
48
|
-
else
|
49
|
-
locale_export = "LANG=\"#{ENV['LANG']}\""
|
50
|
-
hook_export = "PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
|
51
|
-
capture_cmd = "#{locale_export} && #{hook_export} && if [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then #{capture_cmd} #{capture_args}; fi"
|
47
|
+
exports = "set path=#{ruby_path};#{imagick_path};%PATH%"
|
52
48
|
end
|
53
49
|
|
54
|
-
capture_cmd
|
50
|
+
"#{exports} && #{capture_cmd}"
|
55
51
|
end
|
56
52
|
|
57
53
|
def self.repository
|
data/lib/lolcommits/version.rb
CHANGED
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
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Rothenberg
|
@@ -398,14 +398,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
398
398
|
version: '2.0'
|
399
399
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
400
400
|
requirements:
|
401
|
-
- - "
|
401
|
+
- - ">="
|
402
402
|
- !ruby/object:Gem::Version
|
403
|
-
version:
|
403
|
+
version: '0'
|
404
404
|
requirements:
|
405
405
|
- imagemagick
|
406
406
|
- a webcam
|
407
407
|
rubyforge_project:
|
408
|
-
rubygems_version: 2.4.
|
408
|
+
rubygems_version: 2.4.8
|
409
409
|
signing_key:
|
410
410
|
specification_version: 4
|
411
411
|
summary: Capture webcam image on git commit for lulz.
|