lolcommits 0.17.2 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/{build.yml → ci.yml} +29 -24
- data/.gitignore +2 -0
- data/.quickhook/pre-commit/ruby-lint +3 -0
- data/.rubocop.yml +309 -9
- data/CHANGELOG.md +45 -234
- data/CODE_OF_CONDUCT.md +10 -12
- data/Gemfile +4 -2
- data/README.md +14 -26
- data/Rakefile +11 -48
- data/bin/cucumber +25 -0
- data/bin/lolcommits +2 -12
- data/bin/rubocop +25 -0
- data/features/step_definitions/lolcommits_steps.rb +0 -2
- data/features/support/env.rb +1 -3
- data/features/support/path_helpers.rb +2 -4
- data/lib/core_ext/mercurial-ruby/changed_file.rb +1 -3
- data/lib/core_ext/mercurial-ruby/command.rb +2 -4
- data/lib/core_ext/mercurial-ruby/config_file.rb +0 -2
- data/lib/core_ext/mercurial-ruby/repository.rb +0 -2
- data/lib/core_ext/mercurial-ruby/shell.rb +1 -3
- data/lib/lolcommits/animated_gif.rb +12 -7
- data/lib/lolcommits/backends/git_info.rb +6 -8
- data/lib/lolcommits/backends/installation_git.rb +8 -10
- data/lib/lolcommits/backends/installation_mercurial.rb +8 -10
- data/lib/lolcommits/backends/mercurial_info.rb +9 -11
- data/lib/lolcommits/capturer/capture_cygwin.rb +0 -2
- data/lib/lolcommits/capturer/capture_fake.rb +2 -4
- data/lib/lolcommits/capturer/capture_linux.rb +4 -6
- data/lib/lolcommits/capturer/capture_linux_video.rb +1 -3
- data/lib/lolcommits/capturer/capture_mac.rb +2 -4
- data/lib/lolcommits/capturer/capture_mac_video.rb +1 -3
- data/lib/lolcommits/capturer/capture_windows.rb +2 -4
- data/lib/lolcommits/capturer/capture_windows_video.rb +5 -7
- data/lib/lolcommits/capturer.rb +9 -12
- data/lib/lolcommits/cli/fatals.rb +11 -16
- data/lib/lolcommits/cli/launcher.rb +1 -3
- data/lib/lolcommits/cli/process_runner.rb +2 -4
- data/lib/lolcommits/cli/timelapse_gif.rb +7 -9
- data/lib/lolcommits/cli.rb +6 -6
- data/lib/lolcommits/configuration.rb +32 -36
- data/lib/lolcommits/gem_plugin.rb +5 -7
- data/lib/lolcommits/installation.rb +5 -7
- data/lib/lolcommits/platform.rb +14 -18
- data/lib/lolcommits/plugin/base.rb +4 -8
- data/lib/lolcommits/plugin/configuration_helper.rb +4 -6
- data/lib/lolcommits/plugin_manager.rb +1 -3
- data/lib/lolcommits/runner.rb +16 -21
- data/lib/lolcommits/test_helpers/fake_io.rb +0 -2
- data/lib/lolcommits/test_helpers/git_repo.rb +3 -5
- data/lib/lolcommits/vcs_info.rb +2 -4
- data/lib/lolcommits/version.rb +1 -3
- data/lib/lolcommits.rb +26 -30
- data/lolcommits.gemspec +23 -24
- data/test/permissions_test.rb +7 -9
- data/test/test_helper.rb +2 -4
- metadata +62 -53
- data/.gitattributes +0 -1
- data/.github/workflows/push_gem.yml +0 -25
- data/.rubocop_todo.yml +0 -97
- data/.travis.yml +0 -45
- data/bin/console +0 -12
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
module Lolcommits
|
4
2
|
module TestHelpers
|
5
3
|
module GitRepo
|
@@ -8,11 +6,11 @@ module Lolcommits
|
|
8
6
|
end
|
9
7
|
|
10
8
|
def repo_path
|
11
|
-
|
9
|
+
"/tmp/lolcommits-plugin-test-repo"
|
12
10
|
end
|
13
11
|
|
14
12
|
def repo_exists?
|
15
|
-
File.directory?(File.expand_path(repo_path,
|
13
|
+
File.directory?(File.expand_path(repo_path, ".git"))
|
16
14
|
end
|
17
15
|
|
18
16
|
def last_commit
|
@@ -25,7 +23,7 @@ module Lolcommits
|
|
25
23
|
`git init --quiet #{repo_path}`
|
26
24
|
end
|
27
25
|
|
28
|
-
def commit_repo_with_message(message =
|
26
|
+
def commit_repo_with_message(message = "test message", file_name: "test.txt", file_content: "testing")
|
29
27
|
setup_repo unless repo_exists?
|
30
28
|
`echo '#{file_content}' >> #{repo_path}/#{file_name}`
|
31
29
|
`cd #{repo_path} && git add #{file_name}`
|
data/lib/lolcommits/vcs_info.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
module Lolcommits
|
4
2
|
class VCSInfo
|
5
|
-
def self.repo_root?(path =
|
3
|
+
def self.repo_root?(path = ".")
|
6
4
|
GitInfo.repo_root?(path) || MercurialInfo.repo_root?(path)
|
7
5
|
end
|
8
6
|
|
9
|
-
def self.local_name(path =
|
7
|
+
def self.local_name(path = ".")
|
10
8
|
if GitInfo.repo_root?(path)
|
11
9
|
GitInfo.local_name(path)
|
12
10
|
elsif MercurialInfo.repo_root?(path)
|
data/lib/lolcommits/version.rb
CHANGED
data/lib/lolcommits.rb
CHANGED
@@ -1,41 +1,37 @@
|
|
1
|
-
|
1
|
+
require "mini_magick"
|
2
|
+
require "fileutils"
|
3
|
+
require "git"
|
4
|
+
require "open3"
|
5
|
+
require "date"
|
6
|
+
require "mercurial-ruby"
|
2
7
|
|
3
|
-
|
4
|
-
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require
|
9
|
-
require
|
10
|
-
require
|
11
|
-
require
|
12
|
-
|
13
|
-
require 'lolcommits/version'
|
14
|
-
require 'lolcommits/configuration'
|
15
|
-
require 'lolcommits/capturer'
|
16
|
-
require 'lolcommits/vcs_info'
|
17
|
-
require 'lolcommits/installation'
|
18
|
-
require 'lolcommits/platform'
|
19
|
-
require 'lolcommits/gem_plugin'
|
20
|
-
require 'lolcommits/plugin_manager'
|
21
|
-
require 'lolcommits/plugin/base'
|
8
|
+
require "lolcommits/version"
|
9
|
+
require "lolcommits/cli"
|
10
|
+
require "lolcommits/configuration"
|
11
|
+
require "lolcommits/capturer"
|
12
|
+
require "lolcommits/vcs_info"
|
13
|
+
require "lolcommits/installation"
|
14
|
+
require "lolcommits/platform"
|
15
|
+
require "lolcommits/gem_plugin"
|
16
|
+
require "lolcommits/plugin_manager"
|
17
|
+
require "lolcommits/plugin/base"
|
22
18
|
|
23
19
|
# after lolcommits/platform, so that we can do platform-conditional override
|
24
|
-
require
|
25
|
-
require
|
20
|
+
require "core_ext/mercurial-ruby/command"
|
21
|
+
require "core_ext/mercurial-ruby/shell"
|
26
22
|
|
27
23
|
# String#encode patched to be Ruby 3.0+ compatible
|
28
|
-
require
|
24
|
+
require "core_ext/mercurial-ruby/changed_file"
|
29
25
|
# Mercurial::ConfigFile#exists? patched to be Ruby 3.2+ compatible
|
30
|
-
require
|
26
|
+
require "core_ext/mercurial-ruby/config_file"
|
31
27
|
# Mercurial::Repository.open patched to be Ruby 3.2+ compatible
|
32
|
-
require
|
28
|
+
require "core_ext/mercurial-ruby/repository"
|
33
29
|
|
34
30
|
# backends
|
35
|
-
require
|
36
|
-
require
|
37
|
-
require
|
38
|
-
require
|
31
|
+
require "lolcommits/backends/installation_git"
|
32
|
+
require "lolcommits/backends/installation_mercurial"
|
33
|
+
require "lolcommits/backends/git_info"
|
34
|
+
require "lolcommits/backends/mercurial_info"
|
39
35
|
|
40
36
|
# require runner after all the plugins have been required
|
41
|
-
require
|
37
|
+
require "lolcommits/runner"
|
data/lolcommits.gemspec
CHANGED
@@ -1,15 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'lolcommits/version'
|
1
|
+
require_relative 'lib/lolcommits/version'
|
6
2
|
|
7
3
|
Gem::Specification.new do |s|
|
8
4
|
s.name = Lolcommits::GEM_NAME.dup
|
9
5
|
s.version = Lolcommits::VERSION.dup
|
10
6
|
|
11
|
-
s.authors = ['Matthew Rothenberg', 'Matthew Hutchinson']
|
12
|
-
s.email = ['mrothenberg@gmail.com', 'matt@hiddenloop.com']
|
7
|
+
s.authors = [ 'Matthew Rothenberg', 'Matthew Hutchinson' ]
|
8
|
+
s.email = [ 'mrothenberg@gmail.com', 'matt@hiddenloop.com' ]
|
13
9
|
s.license = 'LGPL-3.0'
|
14
10
|
s.summary = 'Capture webcam image on git commit for lulz.'
|
15
11
|
|
@@ -24,13 +20,13 @@ Gem::Specification.new do |s|
|
|
24
20
|
'source_code_uri' => 'https://github.com/lolcommits/lolcommits',
|
25
21
|
'changelog_uri' => 'https://github.com/lolcommits/lolcommits/blob/master/CHANGELOG.md',
|
26
22
|
'bug_tracker_uri' => 'https://github.com/lolcommits/lolcommits/issues',
|
27
|
-
'allowed_push_host' => 'https://rubygems.org'
|
23
|
+
'allowed_push_host' => 'https://rubygems.org',
|
24
|
+
'rubygems_mfa_required' => 'true'
|
28
25
|
}
|
29
26
|
|
30
27
|
s.files = `git ls-files`.split("\n")
|
31
|
-
s.test_files = `git ls-files -- {test,features}/*`.split("\n")
|
32
28
|
s.executables = 'lolcommits'
|
33
|
-
s.require_paths = ['lib']
|
29
|
+
s.require_paths = [ 'lib' ]
|
34
30
|
|
35
31
|
# non-gem dependencies
|
36
32
|
s.required_ruby_version = '>= 3.1'
|
@@ -38,25 +34,28 @@ Gem::Specification.new do |s|
|
|
38
34
|
s.requirements << 'a webcam'
|
39
35
|
|
40
36
|
# core
|
41
|
-
s.
|
42
|
-
s.
|
43
|
-
s.
|
44
|
-
s.
|
45
|
-
s.
|
46
|
-
s.
|
47
|
-
s.
|
48
|
-
s.
|
49
|
-
s.
|
37
|
+
s.add_dependency('base64')
|
38
|
+
s.add_dependency('git', '~> 2.3.3')
|
39
|
+
s.add_dependency('launchy', '~> 3.0.1')
|
40
|
+
s.add_dependency('logger')
|
41
|
+
s.add_dependency('mercurial-ruby', '~> 0.7.12')
|
42
|
+
s.add_dependency('mini_magick', '~> 5.0.1')
|
43
|
+
s.add_dependency('open4', '~> 1.3.4')
|
44
|
+
s.add_dependency('optparse-plus', '~> 3.0.1')
|
45
|
+
s.add_dependency('ostruct')
|
50
46
|
|
51
47
|
# included plugins
|
52
|
-
s.
|
48
|
+
s.add_dependency('lolcommits-loltext', '~> 0.5.0')
|
49
|
+
|
50
|
+
# rubocop
|
51
|
+
s.add_dependency('rubocop')
|
52
|
+
s.add_dependency('rubocop-performance')
|
53
53
|
|
54
54
|
# development & test gems
|
55
55
|
s.add_development_dependency('aruba')
|
56
|
-
s.add_development_dependency('rake')
|
57
|
-
s.add_development_dependency('rdoc')
|
58
56
|
s.add_development_dependency('debug')
|
59
|
-
s.add_development_dependency('rubocop')
|
60
|
-
s.add_development_dependency('minitest')
|
61
57
|
s.add_development_dependency('ffaker')
|
58
|
+
s.add_development_dependency('minitest')
|
59
|
+
s.add_development_dependency('rake')
|
60
|
+
s.add_development_dependency('rdoc')
|
62
61
|
end
|
data/test/permissions_test.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
|
1
|
+
require "test_helper"
|
4
2
|
|
5
3
|
class PermissionsTest < Minitest::Test
|
6
4
|
#
|
@@ -8,12 +6,12 @@ class PermissionsTest < Minitest::Test
|
|
8
6
|
# this will test the permissions but only locally, important before building a gem package!
|
9
7
|
#
|
10
8
|
def test_permissions
|
11
|
-
imagesnap_perms = File.lstat(File.join(Lolcommits::Configuration::LOLCOMMITS_ROOT,
|
12
|
-
videosnap_perms = File.lstat(File.join(Lolcommits::Configuration::LOLCOMMITS_ROOT,
|
13
|
-
commandcam_perms = File.lstat(File.join(Lolcommits::Configuration::LOLCOMMITS_ROOT,
|
9
|
+
imagesnap_perms = File.lstat(File.join(Lolcommits::Configuration::LOLCOMMITS_ROOT, "vendor", "ext", "imagesnap", "imagesnap")).mode & 0o777
|
10
|
+
videosnap_perms = File.lstat(File.join(Lolcommits::Configuration::LOLCOMMITS_ROOT, "vendor", "ext", "videosnap", "videosnap")).mode & 0o777
|
11
|
+
commandcam_perms = File.lstat(File.join(Lolcommits::Configuration::LOLCOMMITS_ROOT, "vendor", "ext", "CommandCam", "CommandCam.exe")).mode & 0o777
|
14
12
|
|
15
|
-
assert [0o755, 0o775].include?(imagesnap_perms), "expected perms of 755/775 but instead got #{format '%<perms>o', perms: imagesnap_perms}"
|
16
|
-
assert [0o755, 0o775].include?(videosnap_perms), "expected perms of 755/775 but instead got #{format '%<perms>o', perms: videosnap_perms}"
|
17
|
-
assert [0o755, 0o775].include?(commandcam_perms), "expected perms of 755/775 but instead got #{format '%<perms>o', perms: commandcam_perms}"
|
13
|
+
assert [ 0o755, 0o775 ].include?(imagesnap_perms), "expected perms of 755/775 but instead got #{format '%<perms>o', perms: imagesnap_perms}"
|
14
|
+
assert [ 0o755, 0o775 ].include?(videosnap_perms), "expected perms of 755/775 but instead got #{format '%<perms>o', perms: videosnap_perms}"
|
15
|
+
assert [ 0o755, 0o775 ].include?(commandcam_perms), "expected perms of 755/775 but instead got #{format '%<perms>o', perms: commandcam_perms}"
|
18
16
|
end
|
19
17
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,130 +1,129 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Rothenberg
|
8
8
|
- Matthew Hutchinson
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-01-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: base64
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- - "
|
17
|
+
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
19
|
+
version: '0'
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- - "
|
24
|
+
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
26
|
+
version: '0'
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
28
|
+
name: git
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
31
|
- - "~>"
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
33
|
+
version: 2.3.3
|
35
34
|
type: :runtime
|
36
35
|
prerelease: false
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
38
|
- - "~>"
|
40
39
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
40
|
+
version: 2.3.3
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
42
|
+
name: launchy
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
45
44
|
requirements:
|
46
45
|
- - "~>"
|
47
46
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
47
|
+
version: 3.0.1
|
49
48
|
type: :runtime
|
50
49
|
prerelease: false
|
51
50
|
version_requirements: !ruby/object:Gem::Requirement
|
52
51
|
requirements:
|
53
52
|
- - "~>"
|
54
53
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
54
|
+
version: 3.0.1
|
56
55
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
56
|
+
name: logger
|
58
57
|
requirement: !ruby/object:Gem::Requirement
|
59
58
|
requirements:
|
60
|
-
- - "
|
59
|
+
- - ">="
|
61
60
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
61
|
+
version: '0'
|
63
62
|
type: :runtime
|
64
63
|
prerelease: false
|
65
64
|
version_requirements: !ruby/object:Gem::Requirement
|
66
65
|
requirements:
|
67
|
-
- - "
|
66
|
+
- - ">="
|
68
67
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
68
|
+
version: '0'
|
70
69
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
70
|
+
name: mercurial-ruby
|
72
71
|
requirement: !ruby/object:Gem::Requirement
|
73
72
|
requirements:
|
74
73
|
- - "~>"
|
75
74
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
75
|
+
version: 0.7.12
|
77
76
|
type: :runtime
|
78
77
|
prerelease: false
|
79
78
|
version_requirements: !ruby/object:Gem::Requirement
|
80
79
|
requirements:
|
81
80
|
- - "~>"
|
82
81
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
82
|
+
version: 0.7.12
|
84
83
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
84
|
+
name: mini_magick
|
86
85
|
requirement: !ruby/object:Gem::Requirement
|
87
86
|
requirements:
|
88
87
|
- - "~>"
|
89
88
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
89
|
+
version: 5.0.1
|
91
90
|
type: :runtime
|
92
91
|
prerelease: false
|
93
92
|
version_requirements: !ruby/object:Gem::Requirement
|
94
93
|
requirements:
|
95
94
|
- - "~>"
|
96
95
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
96
|
+
version: 5.0.1
|
98
97
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
98
|
+
name: open4
|
100
99
|
requirement: !ruby/object:Gem::Requirement
|
101
100
|
requirements:
|
102
|
-
- - "
|
101
|
+
- - "~>"
|
103
102
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
103
|
+
version: 1.3.4
|
105
104
|
type: :runtime
|
106
105
|
prerelease: false
|
107
106
|
version_requirements: !ruby/object:Gem::Requirement
|
108
107
|
requirements:
|
109
|
-
- - "
|
108
|
+
- - "~>"
|
110
109
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
110
|
+
version: 1.3.4
|
112
111
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
112
|
+
name: optparse-plus
|
114
113
|
requirement: !ruby/object:Gem::Requirement
|
115
114
|
requirements:
|
116
|
-
- - "
|
115
|
+
- - "~>"
|
117
116
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
117
|
+
version: 3.0.1
|
119
118
|
type: :runtime
|
120
119
|
prerelease: false
|
121
120
|
version_requirements: !ruby/object:Gem::Requirement
|
122
121
|
requirements:
|
123
|
-
- - "
|
122
|
+
- - "~>"
|
124
123
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
124
|
+
version: 3.0.1
|
126
125
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
126
|
+
name: ostruct
|
128
127
|
requirement: !ruby/object:Gem::Requirement
|
129
128
|
requirements:
|
130
129
|
- - ">="
|
@@ -152,13 +151,13 @@ dependencies:
|
|
152
151
|
- !ruby/object:Gem::Version
|
153
152
|
version: 0.5.0
|
154
153
|
- !ruby/object:Gem::Dependency
|
155
|
-
name:
|
154
|
+
name: rubocop
|
156
155
|
requirement: !ruby/object:Gem::Requirement
|
157
156
|
requirements:
|
158
157
|
- - ">="
|
159
158
|
- !ruby/object:Gem::Version
|
160
159
|
version: '0'
|
161
|
-
type: :
|
160
|
+
type: :runtime
|
162
161
|
prerelease: false
|
163
162
|
version_requirements: !ruby/object:Gem::Requirement
|
164
163
|
requirements:
|
@@ -166,13 +165,13 @@ dependencies:
|
|
166
165
|
- !ruby/object:Gem::Version
|
167
166
|
version: '0'
|
168
167
|
- !ruby/object:Gem::Dependency
|
169
|
-
name:
|
168
|
+
name: rubocop-performance
|
170
169
|
requirement: !ruby/object:Gem::Requirement
|
171
170
|
requirements:
|
172
171
|
- - ">="
|
173
172
|
- !ruby/object:Gem::Version
|
174
173
|
version: '0'
|
175
|
-
type: :
|
174
|
+
type: :runtime
|
176
175
|
prerelease: false
|
177
176
|
version_requirements: !ruby/object:Gem::Requirement
|
178
177
|
requirements:
|
@@ -180,7 +179,7 @@ dependencies:
|
|
180
179
|
- !ruby/object:Gem::Version
|
181
180
|
version: '0'
|
182
181
|
- !ruby/object:Gem::Dependency
|
183
|
-
name:
|
182
|
+
name: aruba
|
184
183
|
requirement: !ruby/object:Gem::Requirement
|
185
184
|
requirements:
|
186
185
|
- - ">="
|
@@ -208,7 +207,7 @@ dependencies:
|
|
208
207
|
- !ruby/object:Gem::Version
|
209
208
|
version: '0'
|
210
209
|
- !ruby/object:Gem::Dependency
|
211
|
-
name:
|
210
|
+
name: ffaker
|
212
211
|
requirement: !ruby/object:Gem::Requirement
|
213
212
|
requirements:
|
214
213
|
- - ">="
|
@@ -236,7 +235,21 @@ dependencies:
|
|
236
235
|
- !ruby/object:Gem::Version
|
237
236
|
version: '0'
|
238
237
|
- !ruby/object:Gem::Dependency
|
239
|
-
name:
|
238
|
+
name: rake
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: rdoc
|
240
253
|
requirement: !ruby/object:Gem::Requirement
|
241
254
|
requirements:
|
242
255
|
- - ">="
|
@@ -261,13 +274,10 @@ executables:
|
|
261
274
|
extensions: []
|
262
275
|
extra_rdoc_files: []
|
263
276
|
files:
|
264
|
-
- ".
|
265
|
-
- ".github/workflows/build.yml"
|
266
|
-
- ".github/workflows/push_gem.yml"
|
277
|
+
- ".github/workflows/ci.yml"
|
267
278
|
- ".gitignore"
|
279
|
+
- ".quickhook/pre-commit/ruby-lint"
|
268
280
|
- ".rubocop.yml"
|
269
|
-
- ".rubocop_todo.yml"
|
270
|
-
- ".travis.yml"
|
271
281
|
- CHANGELOG.md
|
272
282
|
- CODE_OF_CONDUCT.md
|
273
283
|
- CONTRIBUTING.md
|
@@ -276,8 +286,9 @@ files:
|
|
276
286
|
- PULL_REQUEST_TEMPLATE.md
|
277
287
|
- README.md
|
278
288
|
- Rakefile
|
279
|
-
- bin/
|
289
|
+
- bin/cucumber
|
280
290
|
- bin/lolcommits
|
291
|
+
- bin/rubocop
|
281
292
|
- features/bugs.feature
|
282
293
|
- features/lolcommits.feature
|
283
294
|
- features/step_definitions/lolcommits_steps.rb
|
@@ -332,7 +343,6 @@ files:
|
|
332
343
|
- vendor/ext/imagesnap/ReadMeOrDont.rtf
|
333
344
|
- vendor/ext/imagesnap/imagesnap
|
334
345
|
- vendor/ext/videosnap/videosnap
|
335
|
-
homepage:
|
336
346
|
licenses:
|
337
347
|
- LGPL-3.0
|
338
348
|
metadata:
|
@@ -341,7 +351,7 @@ metadata:
|
|
341
351
|
changelog_uri: https://github.com/lolcommits/lolcommits/blob/master/CHANGELOG.md
|
342
352
|
bug_tracker_uri: https://github.com/lolcommits/lolcommits/issues
|
343
353
|
allowed_push_host: https://rubygems.org
|
344
|
-
|
354
|
+
rubygems_mfa_required: 'true'
|
345
355
|
rdoc_options: []
|
346
356
|
require_paths:
|
347
357
|
- lib
|
@@ -358,8 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
358
368
|
requirements:
|
359
369
|
- imagemagick
|
360
370
|
- a webcam
|
361
|
-
rubygems_version: 3.
|
362
|
-
signing_key:
|
371
|
+
rubygems_version: 3.6.2
|
363
372
|
specification_version: 4
|
364
373
|
summary: Capture webcam image on git commit for lulz.
|
365
374
|
test_files: []
|
data/.gitattributes
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
* text=auto
|
@@ -1,25 +0,0 @@
|
|
1
|
-
name: Publish gem to RubyGems.org
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
tags:
|
6
|
-
- v*
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
push:
|
10
|
-
name: Push gem to RubyGems.org
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
|
13
|
-
permissions:
|
14
|
-
id-token: write
|
15
|
-
contents: write
|
16
|
-
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v4
|
19
|
-
- name: Set up Ruby
|
20
|
-
uses: ruby/setup-ruby@v1
|
21
|
-
with:
|
22
|
-
bundler-cache: true
|
23
|
-
ruby-version: ruby
|
24
|
-
|
25
|
-
- uses: rubygems/release-gem@v1
|
data/.rubocop_todo.yml
DELETED
@@ -1,97 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2023-05-14 21:38:57 UTC using RuboCop version 1.50.2.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# This cop supports safe autocorrection (--autocorrect).
|
11
|
-
Layout/HeredocIndentation:
|
12
|
-
Exclude:
|
13
|
-
- 'lib/lolcommits/backends/installation_git.rb'
|
14
|
-
|
15
|
-
# Offense count: 1
|
16
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
17
|
-
Lint/AmbiguousBlockAssociation:
|
18
|
-
Exclude:
|
19
|
-
- 'lib/lolcommits/cli/process_runner.rb'
|
20
|
-
|
21
|
-
# Offense count: 15
|
22
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
23
|
-
Metrics/AbcSize:
|
24
|
-
Max: 33
|
25
|
-
|
26
|
-
# Offense count: 2
|
27
|
-
# Configuration parameters: CountComments, CountAsOne.
|
28
|
-
Metrics/ClassLength:
|
29
|
-
Max: 144
|
30
|
-
|
31
|
-
# Offense count: 5
|
32
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
33
|
-
Metrics/CyclomaticComplexity:
|
34
|
-
Max: 10
|
35
|
-
|
36
|
-
# Offense count: 20
|
37
|
-
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
38
|
-
Metrics/MethodLength:
|
39
|
-
Max: 24
|
40
|
-
|
41
|
-
# Offense count: 5
|
42
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
43
|
-
Metrics/PerceivedComplexity:
|
44
|
-
Max: 10
|
45
|
-
|
46
|
-
# Offense count: 26
|
47
|
-
# Configuration parameters: AllowedConstants.
|
48
|
-
Style/Documentation:
|
49
|
-
Enabled: false
|
50
|
-
|
51
|
-
# Offense count: 6
|
52
|
-
# This cop supports safe autocorrection (--autocorrect).
|
53
|
-
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
54
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
55
|
-
# SupportedShorthandSyntax: always, never, either, consistent
|
56
|
-
Style/HashSyntax:
|
57
|
-
Exclude:
|
58
|
-
- 'lib/lolcommits/gem_plugin.rb'
|
59
|
-
- 'lib/lolcommits/runner.rb'
|
60
|
-
|
61
|
-
# Offense count: 1
|
62
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
63
|
-
Style/MapToHash:
|
64
|
-
Exclude:
|
65
|
-
- 'lib/lolcommits/plugin/base.rb'
|
66
|
-
|
67
|
-
# Offense count: 2
|
68
|
-
Style/MixinUsage:
|
69
|
-
Exclude:
|
70
|
-
- 'Rakefile'
|
71
|
-
- 'features/support/env.rb'
|
72
|
-
|
73
|
-
# Offense count: 5
|
74
|
-
# This cop supports safe autocorrection (--autocorrect).
|
75
|
-
# Configuration parameters: PreferredDelimiters.
|
76
|
-
Style/PercentLiteralDelimiters:
|
77
|
-
Exclude:
|
78
|
-
- 'Rakefile'
|
79
|
-
- 'features/support/path_helpers.rb'
|
80
|
-
- 'lib/lolcommits/backends/installation_mercurial.rb'
|
81
|
-
- 'lib/lolcommits/cli/fatals.rb'
|
82
|
-
- 'lib/lolcommits/installation.rb'
|
83
|
-
|
84
|
-
# Offense count: 2
|
85
|
-
# This cop supports safe autocorrection (--autocorrect).
|
86
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
87
|
-
# SupportedStyles: single_quotes, double_quotes
|
88
|
-
Style/StringLiterals:
|
89
|
-
Exclude:
|
90
|
-
- 'lib/lolcommits/version.rb'
|
91
|
-
|
92
|
-
# Offense count: 16
|
93
|
-
# This cop supports safe autocorrection (--autocorrect).
|
94
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
95
|
-
# URISchemes: http, https
|
96
|
-
Layout/LineLength:
|
97
|
-
Max: 192
|