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: d1c432270b046edb27829416bf9ada561b3aa0a5
4
- data.tar.gz: d1238ceb4a716d739117795669c2ccf0c000a7ab
3
+ metadata.gz: 6864a969f2a474924b420bf5043e8f0cf8c4a06b
4
+ data.tar.gz: 7298c313a1747d98fb340edb3ffd36864ed8e22d
5
5
  SHA512:
6
- metadata.gz: 85662930d7f30595deef8e6f4d9974057e2ff256a290369ea5db91d9747139a04ef93b5f22d62fc620eacb07d0a43c0835ac9fcedbd8dc40e2b9bf4745a9ea08
7
- data.tar.gz: b46e6131b9874a545ecb4b904f90e5dea2494bcc6395a38a3bb472b3a22561bcf5c0d7701e1c2a63e9b579a89a2fe99a57e15440a64a7a2134d1e0df33d9dfeb
6
+ metadata.gz: eb73b9e99c8935a5609ec43e32d7e908fe9fb62f34da8576f4fd7dd50157430866174b2defe114c5870e8cbb0d9caea5ed85a0c5febc757b7a8caa33d9382b09
7
+ data.tar.gz: 969703fd3242a8ef0adcfe5b6d68da899421a882d4290ed89e2459f94584c47543e49a5cbe7452a04bc2f4c900aabf06b25200df2ee39d46003201491722f9e5
data/.travis.yml CHANGED
@@ -7,7 +7,7 @@ rvm:
7
7
  - 2.2.4
8
8
  - 2.3.0
9
9
  - 2.3.3
10
- - 2.4.0
10
+ - 2.4.1
11
11
  - ruby-head
12
12
 
13
13
  before_install:
@@ -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 = 'lolcommits --capture'
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 = "set path=#{ruby_path};#{imagick_path};%PATH%"
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 = 'lolcommits --capture'
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 = "set path=#{ruby_path};#{imagick_path};%PATH%"
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
@@ -1,4 +1,4 @@
1
1
  module Lolcommits
2
- VERSION = '0.9.3.pre3'.freeze
2
+ VERSION = '0.9.3'.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.pre3
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: 1.3.1
403
+ version: '0'
404
404
  requirements:
405
405
  - imagemagick
406
406
  - a webcam
407
407
  rubyforge_project:
408
- rubygems_version: 2.4.5
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.