lolcommits 0.6.2 → 0.6.3.pre1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDEwNDVlNmI4ZDM1NjkxMGNmNmQyYTVmMTUwNTQ4MWFmZDZiYTk3MQ==
4
+ ZjI5M2FkOTY1Yzg2ZWIwZjc4OWM2ZThjM2NjNzdiMGNmZWYzMmUxMA==
5
5
  data.tar.gz: !binary |-
6
- ZTY0Mjg4NGY0YjU2ODcyMmYzOTc4MGQ1OGQ1NjkzMWUxMjM5MTRiYg==
6
+ MDFlZmE3NTJkY2JhNDRhM2E5OTQyNmJiMzg2ZGE5YTc1M2E4NWQzOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDJmMDBhYjQ0N2Q5YmVlZGY3OGY4NWZkZDRmNGJkNzkzNWRlZjYwYTRkOTY5
10
- ZDQ2NzVjZjkwMWJhNzEyZDBhMTFiMzc5YTJkNzI0M2Q4YTc4ZTc5NDIxZmMz
11
- ZWYyOTZiMWJmMjc0NWRjMGUyZjQ5MmQzMDU2YzQ4YTE4ZDY4ZWI=
9
+ MzBlMDU3M2JiM2VjYjc2YzhjYTI4NmNhNTEzNjVjNGE1OTM3ODU2ZDkyMjg5
10
+ NTQxZTdiMzVhYmQxNDJhYWI2YzgwOWU3NWYxMDM0MGE4NGYyN2Q3MmRmZDY4
11
+ OTc2YjFmN2I5NGVjMGJhODJhMzU2NDlkOWJmOTRkOGI3NTZmZTY=
12
12
  data.tar.gz: !binary |-
13
- NzFjNmY0OWNiNTU4ODE1NjAzYWQ3MzU2NGVkMGMxNzhmY2Y0M2JhMjNhMjgz
14
- ZmQ4ODYwOTYyYWNmYWJiZTU1NzlmZDkwNDA0MjYxMDNhYWI2N2IyODk3MjY4
15
- YmYzZWIxNzAxZWRmYzYxNDA2OWVlNzZmNjY3ZmJlMThlNDU5MjI=
13
+ MTI4YzgwM2U4MjZkNmQ2NGZlMTk4NzcwMzBlNDg3MmNlOTM0NjEwNWM4ODk1
14
+ MmYxNjc0M2IxYWMxZTU4NmZjMTZmNWUzNjQ5Y2Y0MjRjOTY2NTNkYzFiYWZi
15
+ NzE1MWMyZDk0Mjg3M2QxOWUwYzQxYmZjODBiNDdmZjA0YjBlZGM=
data/.rubocop_todo.yml CHANGED
@@ -21,7 +21,7 @@ Metrics/CyclomaticComplexity:
21
21
  # Offense count: 92
22
22
  # Configuration parameters: AllowURI, URISchemes.
23
23
  Metrics/LineLength:
24
- Max: 157
24
+ Max: 170
25
25
 
26
26
  # Offense count: 24
27
27
  # Configuration parameters: CountComments.
data/.travis.yml CHANGED
@@ -17,6 +17,7 @@ before_install:
17
17
  - touch ~/bin/mplayer ~/bin/ffmpeg
18
18
  - chmod +x ~/bin/mplayer ~/bin/ffmpeg
19
19
  - export PATH=~/bin:$PATH
20
+ - git --version
20
21
 
21
22
  matrix:
22
23
  allow_failures:
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  0.7.0 (WIP)
4
4
  * extract plugins to seperate gems ...
5
5
 
6
+ 0.6.3 (14 March 2016)
7
+ * Add quotes to correctly handle paths with spaces (@pedrocunha #296)
8
+ * Added plugin config path to output (@KrauseFx #294)
9
+
6
10
  0.6.2 (21 February 2016)
7
11
  * Avoid invoking ruby if in a rebase (@jhawthorn #286)
8
12
  * Slow gif problem on mac (@a06kin #289)
data/CONTRIBUTING.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Pull Requests are welcome! To start helping out on lolcommits:
4
4
 
5
- Fork then clone the repository:
5
+ [Fork](https://guides.github.com/activities/forking/) then clone the repository:
6
6
 
7
- git clone git@github.com:your-username/acts_as_textcaptcha.git
7
+ git clone git@github.com:your-username/lolcommits.git
8
8
 
9
9
  Create your feature branch:
10
10
 
data/README.md CHANGED
@@ -107,7 +107,7 @@ via environment variables like so;
107
107
  * `LOLCOMMITS_FORK` fork lolcommit runner (capture command forks to a new
108
108
  process, speedily returning you to your terminal)
109
109
  * `LOLCOMMITS_STEALTH` disable notification messages at commit time
110
- * `LOLCOMMITS_DIR` set the output directory (defaults to ~/.lolcommits)
110
+ * `LOLCOMMITS_DIR` set the output directory used for all repositories (defaults to ~/.lolcommits)
111
111
 
112
112
  Or they can be set via the following arguments in the capture command (located
113
113
  in your repository's `.git/hooks/post-commit` file).
@@ -7,10 +7,10 @@ module Lolcommits
7
7
  FileUtils.mkdir_p(frames_location)
8
8
 
9
9
  # capture the raw video with ffmpeg video4linux2
10
- system_call "ffmpeg -v quiet -y -f video4linux2 -video_size 320x240 -i #{capture_device_string} -t #{capture_duration} #{video_location} > /dev/null"
10
+ system_call "ffmpeg -v quiet -y -f video4linux2 -video_size 320x240 -i #{capture_device_string} -t #{capture_duration} \"#{video_location}\" > /dev/null"
11
11
  return unless File.exist?(video_location)
12
12
  # convert raw video to png frames with ffmpeg
13
- system_call "ffmpeg #{capture_delay_string} -v quiet -i #{video_location} -t #{animated_duration} #{frames_location}/%09d.png > /dev/null"
13
+ system_call "ffmpeg #{capture_delay_string} -v quiet -i \"#{video_location}\" -t #{animated_duration} \"#{frames_location}/%09d.png\" > /dev/null"
14
14
 
15
15
  # use fps to set delay and number of frames to skip (for lower filesized gifs)
16
16
  fps = video_fps(video_location)
@@ -19,9 +19,9 @@ module Lolcommits
19
19
  debug "Capturer: anaimated gif choosing every #{skip} frames with a frame delay of #{delay}"
20
20
 
21
21
  # create the looping animated gif from frames (picks nth frame with seq)
22
- seq_command = "seq -f #{frames_location}/%09g.png 1 #{skip} #{Dir["#{frames_location}/*"].length}"
22
+ seq_command = "seq -f \"#{frames_location}/%09g.png\" 1 #{skip} #{Dir["#{frames_location}/*"].length}"
23
23
  # convert to animated gif with delay and gif optimisation
24
- system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0 `#{seq_command}` -coalesce #{snapshot_location} > /dev/null"
24
+ system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0 `#{seq_command}` -coalesce \"#{snapshot_location}\" > /dev/null"
25
25
  end
26
26
 
27
27
  private
@@ -7,12 +7,12 @@ module Lolcommits
7
7
  FileUtils.mkdir_p(frames_location)
8
8
 
9
9
  # capture the raw video with videosnap
10
- system_call "#{executable_path} -s 240 #{capture_device_string}#{capture_delay_string}-t #{animated_duration} --no-audio #{video_location} > /dev/null"
10
+ system_call "#{executable_path} -s 240 #{capture_device_string}#{capture_delay_string}-t #{animated_duration} --no-audio \"#{video_location}\" > /dev/null"
11
11
  return unless File.exist?(video_location)
12
12
  # get fps for ffmpeg output stream configuration
13
13
  fps = video_fps(video_location)
14
14
  # convert raw video to png frames with ffmpeg
15
- system_call "ffmpeg -v quiet -i #{video_location} -t #{animated_duration} -r #{fps} #{frames_location}/%09d.png"
15
+ system_call "ffmpeg -v quiet -i \"#{video_location}\" -t #{animated_duration} -r #{fps} \"#{frames_location}/%09d.png\""
16
16
 
17
17
  # use fps to set delay and number of frames to skip (for lower filesized gifs)
18
18
  skip = frame_skip(fps)
@@ -20,9 +20,9 @@ module Lolcommits
20
20
  debug "Capturer: animated gif choosing every #{skip} frames with a frame delay of #{delay}"
21
21
 
22
22
  # create the looping animated gif from frames (picks nth frame with seq)
23
- seq_command = "seq -f #{frames_location}/%09g.png 1 #{skip} #{Dir["#{frames_location}/*"].length}"
23
+ seq_command = "seq -f \"#{frames_location}/%09g.png\" 1 #{skip} #{Dir["#{frames_location}/*"].length}"
24
24
  # convert to animated gif with delay and gif optimisation
25
- system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0 `#{seq_command}` -coalesce #{snapshot_location}"
25
+ system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0 `#{seq_command}` -coalesce \"#{snapshot_location}\""
26
26
  end
27
27
 
28
28
  def executable_path
@@ -61,11 +61,11 @@ module Lolcommits
61
61
  end
62
62
 
63
63
  def capture_device_string
64
- "-d '#{capture_device}' " if capture_device
64
+ "-d \"#{capture_device}\" " if capture_device
65
65
  end
66
66
 
67
67
  def capture_delay_string
68
- "-w '#{capture_delay}' " if capture_delay.to_i > 0
68
+ "-w \"#{capture_delay}\" " if capture_delay.to_i > 0
69
69
  end
70
70
  end
71
71
  end
@@ -94,7 +94,7 @@ module Lolcommits
94
94
  config[plugin_name] = plugin_config
95
95
  save(config)
96
96
  puts self
97
- puts "\nSuccessfully configured plugin: #{plugin_name}"
97
+ puts "\nSuccessfully configured plugin: #{plugin_name} at path '#{configuration_file}'"
98
98
  else
99
99
  puts "\nAborted plugin configuration for: #{plugin_name}"
100
100
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Lolcommits
3
- VERSION = '0.6.2'.freeze
3
+ VERSION = '0.6.3.pre1'.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.6.2
4
+ version: 0.6.3.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Rothenberg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-20 00:00:00.000000000 Z
12
+ date: 2016-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -480,9 +480,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
480
480
  version: 1.8.7
481
481
  required_rubygems_version: !ruby/object:Gem::Requirement
482
482
  requirements:
483
- - - ! '>='
483
+ - - ! '>'
484
484
  - !ruby/object:Gem::Version
485
- version: '0'
485
+ version: 1.3.1
486
486
  requirements:
487
487
  - imagemagick
488
488
  - a webcam