lolcommits 0.16.1 → 0.16.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.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +2 -2
- data/.travis.yml +1 -0
- data/CHANGELOG.md +12 -3
- data/config/cucumber.yml +1 -1
- data/features/lolcommits.feature +12 -12
- data/features/step_definitions/lolcommits_steps.rb +8 -0
- data/features/support/env.rb +2 -18
- data/lib/lolcommits/capturer/capture_linux_video.rb +1 -1
- data/lib/lolcommits/version.rb +1 -1
- data/lolcommits.gemspec +2 -2
- metadata +18 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 164b3de849954edf608d49789f55504eb4b64a5e9a75eaa543536e22cf7ee354
|
4
|
+
data.tar.gz: 566c9199274b5fb28501daa75ffccf0366ec58079ebb8f7b544b0d605a4991c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 213a07bd6e7e6072de06247805da3f390d465d873dd4174e70337cf324a3c6b697209ebb4c42de7c7cbab065fd9cd3f7417bf9a830ac58d50209f96bcec24fe5
|
7
|
+
data.tar.gz: 12acf1920f4901338887f8363a8500a92444d7072650c420683b27021f621bcbfd06d47c882088b603bb31bdf18f3afbf0c7f9326b9bc99626286401579dcf9f
|
data/.rubocop_todo.yml
CHANGED
@@ -50,7 +50,7 @@ Lint/AmbiguousBlockAssociation:
|
|
50
50
|
|
51
51
|
# Offense count: 18
|
52
52
|
Metrics/AbcSize:
|
53
|
-
Max:
|
53
|
+
Max: 35
|
54
54
|
|
55
55
|
# Offense count: 2
|
56
56
|
# Configuration parameters: CountComments.
|
@@ -59,7 +59,7 @@ Metrics/ClassLength:
|
|
59
59
|
|
60
60
|
# Offense count: 5
|
61
61
|
Metrics/CyclomaticComplexity:
|
62
|
-
Max:
|
62
|
+
Max: 10
|
63
63
|
|
64
64
|
# Offense count: 21
|
65
65
|
# Configuration parameters: CountComments, ExcludedMethods.
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,11 @@ This project adheres to [Semantic Versioning][Semver].
|
|
7
7
|
|
8
8
|
* Your contribution here!
|
9
9
|
|
10
|
+
## [0.16.2][] (24 Aug 2020)
|
11
|
+
* Support delays w/ Linux animated GIFs (@theY4Kman [#405][])
|
12
|
+
* Upgrade git gem to version 1.6.0 (@depfu [#402][])
|
13
|
+
* Upgrade lolcommits-loltext to version 0.4.0 (@depfu [#401][])
|
14
|
+
|
10
15
|
## [0.16.1][] (21 Jan 2020)
|
11
16
|
* Upgrade mini_magick to version 4.10.1 (@depfu [#399][])
|
12
17
|
* Fix rubocop config (@Salzig [#400][])
|
@@ -42,7 +47,7 @@ This project adheres to [Semantic Versioning][Semver].
|
|
42
47
|
* Update all links and badges (in gemspec, README etc.) to lolcommits
|
43
48
|
organisation (@matthutchinson)
|
44
49
|
* remove gem `post_install` message (@matthutchinson)
|
45
|
-
* use `lolcommits-loltext ~> 0.1.0
|
50
|
+
* use `lolcommits-loltext ~> 0.1.0` (@matthutchinson)
|
46
51
|
|
47
52
|
## [0.13.0][] (23 April 2019)
|
48
53
|
* Require at least Ruby 2.3
|
@@ -56,7 +61,7 @@ This project adheres to [Semantic Versioning][Semver].
|
|
56
61
|
|
57
62
|
## [0.12.1][] (27 March 2018)
|
58
63
|
* Name passed to `Plugin::Base` initializer (@matthutchinson)
|
59
|
-
* Removed dead method `configured
|
64
|
+
* Removed dead method `configured?` in `Plugin::Base`
|
60
65
|
* Using `YAML.safe_load` for configuration loading
|
61
66
|
|
62
67
|
## [0.12.0][] (15 March 2018)
|
@@ -373,7 +378,8 @@ This project adheres to [Semantic Versioning][Semver].
|
|
373
378
|
reliable to not glitch.)
|
374
379
|
|
375
380
|
[Semver]: http://semver.org
|
376
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits/compare/v0.16.
|
381
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits/compare/v0.16.2...HEAD
|
382
|
+
[0.16.2]: https://github.com/lolcommits/lolcommits/compare/v0.16.1...v0.16.2
|
377
383
|
[0.16.1]: https://github.com/lolcommits/lolcommits/compare/v0.16.0...v0.16.1
|
378
384
|
[0.16.0]: https://github.com/lolcommits/lolcommits/compare/v0.15.1...v0.16.0
|
379
385
|
[0.15.1]: https://github.com/lolcommits/lolcommits/compare/v0.15.0...v0.15.1
|
@@ -581,3 +587,6 @@ This project adheres to [Semantic Versioning][Semver].
|
|
581
587
|
[#398]: https://github.com/lolcommits/lolcommits/pull/398
|
582
588
|
[#399]: https://github.com/lolcommits/lolcommits/pull/399
|
583
589
|
[#400]: https://github.com/lolcommits/lolcommits/pull/400
|
590
|
+
[#401]: https://github.com/lolcommits/lolcommits/pull/401
|
591
|
+
[#402]: https://github.com/lolcommits/lolcommits/pull/402
|
592
|
+
[#405]: https://github.com/lolcommits/lolcommits/pull/405
|
data/config/cucumber.yml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
default: <%= ENV['TRAVIS'] ==
|
2
|
+
default: <%= ENV['TRAVIS'] == "true" ? "features --tags \"not @requires_ffmpeg\"" : "features" %>
|
data/features/lolcommits.feature
CHANGED
@@ -63,15 +63,6 @@ Feature: Basic UI functionality
|
|
63
63
|
And a file named ".git/hooks/post-commit" should exist
|
64
64
|
And the exit status should be 0
|
65
65
|
|
66
|
-
Scenario: Trying to enable while not in a git repo fails
|
67
|
-
Given I am in a directory named "svnrulez"
|
68
|
-
When I run `lolcommits --enable`
|
69
|
-
Then the output should contain:
|
70
|
-
"""
|
71
|
-
You don't appear to be in the base directory of a supported vcs project.
|
72
|
-
"""
|
73
|
-
And the exit status should be 1
|
74
|
-
|
75
66
|
# flakey test sometimes fails
|
76
67
|
# Scenario: Capture doesnt break in forked mode
|
77
68
|
# Given I am in a git repo named "forked"
|
@@ -160,8 +151,17 @@ Feature: Basic UI functionality
|
|
160
151
|
"""
|
161
152
|
And the exit status should be 0
|
162
153
|
|
163
|
-
|
154
|
+
Scenario: Trying to enable while not in a git repo fails
|
155
|
+
Given I am not in a git repo
|
156
|
+
When I run `lolcommits --enable`
|
157
|
+
Then the output should contain:
|
158
|
+
"""
|
159
|
+
You don't appear to be in the base directory of a supported vcs project.
|
160
|
+
"""
|
161
|
+
And the exit status should be 1
|
162
|
+
|
164
163
|
Scenario: last command should fail gracefully if not in a repo
|
164
|
+
Given I am not in a git repo
|
165
165
|
When I run `lolcommits --last`
|
166
166
|
Then the output should contain:
|
167
167
|
"""
|
@@ -169,8 +169,8 @@ Feature: Basic UI functionality
|
|
169
169
|
"""
|
170
170
|
And the exit status should be 1
|
171
171
|
|
172
|
-
@no-repo-dir
|
173
172
|
Scenario: Configuring loltext plugin if not in a repo
|
173
|
+
Given I am not in a git repo
|
174
174
|
When I run `lolcommits --config`
|
175
175
|
Then the output should contain:
|
176
176
|
"""
|
@@ -178,8 +178,8 @@ Feature: Basic UI functionality
|
|
178
178
|
"""
|
179
179
|
And the exit status should be 1
|
180
180
|
|
181
|
-
@no-repo-dir
|
182
181
|
Scenario: browse command should fail gracefully when not in a repo
|
182
|
+
Given I am not in a git repo
|
183
183
|
When I run `lolcommits --browse`
|
184
184
|
Then the output should contain:
|
185
185
|
"""
|
@@ -45,6 +45,14 @@ Given(/^I am in a git repo$/) do
|
|
45
45
|
)
|
46
46
|
end
|
47
47
|
|
48
|
+
Given(/^I am not in a git repo/) do
|
49
|
+
steps %(
|
50
|
+
Given I cd to "/tmp"
|
51
|
+
And a directory named "lolcommits_no_repo"
|
52
|
+
And I cd to "lolcommits_no_repo"
|
53
|
+
)
|
54
|
+
end
|
55
|
+
|
48
56
|
Given(/^I am in a git repo named "(.*?)" with lolcommits enabled$/) do |repo|
|
49
57
|
steps %(
|
50
58
|
Given I am in a git repo named "#{repo}"
|
data/features/support/env.rb
CHANGED
@@ -13,6 +13,8 @@ World(PathHelpers)
|
|
13
13
|
|
14
14
|
Aruba.configure do |config|
|
15
15
|
config.exit_timeout = 20
|
16
|
+
# allow absolute paths for tests involving no repo
|
17
|
+
config.allow_absolute_paths = true
|
16
18
|
end
|
17
19
|
|
18
20
|
Before do
|
@@ -52,21 +54,3 @@ end
|
|
52
54
|
Before('@fake-no-ffmpeg') do
|
53
55
|
reject_paths_with_cmd('ffmpeg')
|
54
56
|
end
|
55
|
-
|
56
|
-
# do test in a new temp directory (outside our own git repo-ness)
|
57
|
-
# due to https://github.com/cucumber/aruba/issues/478 aruba no longer allows
|
58
|
-
# wandering out of `tmp/aruba` so this pop/restore is necessary
|
59
|
-
Before('@no-repo-dir') do
|
60
|
-
@original_root = aruba.root_directory.pop
|
61
|
-
@original_dir = aruba.current_directory.pop
|
62
|
-
@working_dir = Dir.mktmpdir
|
63
|
-
aruba.current_directory << @working_dir
|
64
|
-
end
|
65
|
-
|
66
|
-
After('@no-repo-dir') do
|
67
|
-
aruba.current_directory.pop
|
68
|
-
aruba.root_directory << @original_root
|
69
|
-
aruba.current_directory << @original_dir
|
70
|
-
|
71
|
-
FileUtils.rm_rf(@working_dir)
|
72
|
-
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Lolcommits
|
4
4
|
class CaptureLinuxVideo < Capturer
|
5
5
|
def capture
|
6
|
-
system_call "ffmpeg -nostats -v quiet -y -f video4linux2 -video_size 640x480 -i #{capture_device_string} -t #{capture_duration} \"#{capture_path}\" > /dev/null"
|
6
|
+
system_call "ffmpeg -nostats -v quiet -y -f video4linux2 -video_size 640x480 -i #{capture_device_string} -t #{capture_duration} -ss #{capture_delay || 0} \"#{capture_path}\" > /dev/null"
|
7
7
|
end
|
8
8
|
|
9
9
|
private
|
data/lib/lolcommits/version.rb
CHANGED
data/lolcommits.gemspec
CHANGED
@@ -43,10 +43,10 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.add_runtime_dependency('mini_magick', '~> 4.10.1')
|
44
44
|
s.add_runtime_dependency('launchy', '~> 2.4.3')
|
45
45
|
s.add_runtime_dependency('open4', '~> 1.3.4')
|
46
|
-
s.add_runtime_dependency('git', '~> 1.
|
46
|
+
s.add_runtime_dependency('git', '~> 1.6.0')
|
47
47
|
|
48
48
|
# included plugins
|
49
|
-
s.add_runtime_dependency('lolcommits-loltext', '~> 0.
|
49
|
+
s.add_runtime_dependency('lolcommits-loltext', '~> 0.4.0')
|
50
50
|
|
51
51
|
# development & test gems
|
52
52
|
s.add_development_dependency('aruba')
|
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.16.
|
4
|
+
version: 0.16.2
|
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: 2020-
|
12
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: methadone
|
@@ -87,28 +87,28 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.
|
90
|
+
version: 1.6.0
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.
|
97
|
+
version: 1.6.0
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: lolcommits-loltext
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
104
|
+
version: 0.4.0
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
111
|
+
version: 0.4.0
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: aruba
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -329,9 +329,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
329
|
requirements:
|
330
330
|
- imagemagick
|
331
331
|
- a webcam
|
332
|
-
|
333
|
-
rubygems_version: 2.7.7
|
332
|
+
rubygems_version: 3.1.2
|
334
333
|
signing_key:
|
335
334
|
specification_version: 4
|
336
335
|
summary: Capture webcam image on git commit for lulz.
|
337
|
-
test_files:
|
336
|
+
test_files:
|
337
|
+
- features/bugs.feature
|
338
|
+
- features/lolcommits.feature
|
339
|
+
- features/step_definitions/lolcommits_steps.rb
|
340
|
+
- features/support/env.rb
|
341
|
+
- features/support/path_helpers.rb
|
342
|
+
- test/assets/test_image.jpg
|
343
|
+
- test/assets/test_video.mp4
|
344
|
+
- test/images/test_image.jpg
|
345
|
+
- test/permissions_test.rb
|
346
|
+
- test/test_helper.rb
|