lolcommits 0.16.1 → 0.16.2

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
  SHA256:
3
- metadata.gz: 7689becdaf2c33ba64b6cd5182a75b566cd9c19dfbffd32663e401dfc8154264
4
- data.tar.gz: efc34e0bb9f98fdc5c49439fbcac3f404813765cab07a22873b9c713d54ebf8c
3
+ metadata.gz: 164b3de849954edf608d49789f55504eb4b64a5e9a75eaa543536e22cf7ee354
4
+ data.tar.gz: 566c9199274b5fb28501daa75ffccf0366ec58079ebb8f7b544b0d605a4991c4
5
5
  SHA512:
6
- metadata.gz: 4bd73633800b545ecae9b5480193dbf820b976db2f1907cad3d95d5ac178322b398504d80cfc255618e5af7f6a30e97a0c419aebbd82937d34240029753f2ef6
7
- data.tar.gz: 56df5ae5abaa8b272227da9ddc9a7d635bcabc2e74ab64b07b0d0ba658e1b5edf79eb49aa2c9ff0d9c2fa49f3b602581f9738b35213a38ee60ff8c9a57103678
6
+ metadata.gz: 213a07bd6e7e6072de06247805da3f390d465d873dd4174e70337cf324a3c6b697209ebb4c42de7c7cbab065fd9cd3f7417bf9a830ac58d50209f96bcec24fe5
7
+ data.tar.gz: 12acf1920f4901338887f8363a8500a92444d7072650c420683b27021f621bcbfd06d47c882088b603bb31bdf18f3afbf0c7f9326b9bc99626286401579dcf9f
@@ -50,7 +50,7 @@ Lint/AmbiguousBlockAssociation:
50
50
 
51
51
  # Offense count: 18
52
52
  Metrics/AbcSize:
53
- Max: 29
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: 9
62
+ Max: 10
63
63
 
64
64
  # Offense count: 21
65
65
  # Configuration parameters: CountComments, ExcludedMethods.
@@ -5,6 +5,7 @@ rvm:
5
5
  - 2.4.9
6
6
  - 2.5.7
7
7
  - 2.6.5
8
+ - 2.7.1
8
9
  - ruby-head
9
10
 
10
11
  matrix:
@@ -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' (@matthutchinson)
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? in `Plugin::Base`
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.1...HEAD
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
@@ -1,2 +1,2 @@
1
1
  ---
2
- default: <%= ENV['TRAVIS'] == 'true' ? '--tags ~@requires_ffmpeg' : 'features' %>
2
+ default: <%= ENV['TRAVIS'] == "true" ? "features --tags \"not @requires_ffmpeg\"" : "features" %>
@@ -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
- @no-repo-dir
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}"
@@ -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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lolcommits
4
- VERSION = '0.16.1'
4
+ VERSION = '0.16.2'
5
5
  GEM_NAME = 'lolcommits'
6
6
  end
@@ -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.5.0')
46
+ s.add_runtime_dependency('git', '~> 1.6.0')
47
47
 
48
48
  # included plugins
49
- s.add_runtime_dependency('lolcommits-loltext', '~> 0.3.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.1
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-01-21 00:00:00.000000000 Z
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.5.0
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.5.0
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.3.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.3.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
- rubyforge_project:
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