lolcommits-term_output 0.4.0 → 0.5.1

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: 4b8a17ac462d1361f72a7a5ba9df016bc956ce5b485f79a21b7ebbe217af9823
4
- data.tar.gz: ba2cceef9dd8da7129f01634a9f34a1688b13ea9cb47ad2bd57a97a3fa09e0a1
3
+ metadata.gz: 82aa8dc2bb8de55071499b4b241a50b98738c909fe278b239cf59a9719e07cd3
4
+ data.tar.gz: c23977e0ed9d09239ee91b5adf0686af1e224b3a43fdb0f9cde981ecb6d04b40
5
5
  SHA512:
6
- metadata.gz: b3bd86eddbe73db77882cf1d5b802c362e2f31d9e2270f7467ae33ae2d30158232c03d3e7fd0864442f3e29c1178ed3d91e7643514f52e8210a008fa92411f00
7
- data.tar.gz: c584556ab5a7121b13e9eb8a7045d8aa84787e3ee30ad2aa58ac291f57b2b748b6ec81dceb21655fa156ce7d0af962bda49e72aef419226d143c01af15e14bc1
6
+ metadata.gz: 25621b8daf7f8927106481aa5dd45c2a007057425d46437ea6fb6fc6992fac25c560a0c7972e909685b979a3815a99805ae5610b2b51fb8cfe7797a22bb9737c
7
+ data.tar.gz: 7092a9764256afd48cb2a909616587bcacc33ab35004d0f1587d38eb93060ec250ee9c5b02cc2fdc7535a7f553867a6279fc6e6f251a57b15b0cdbc4e4f97c0b
@@ -0,0 +1,56 @@
1
+ name: CI
2
+ permissions:
3
+ contents: read
4
+
5
+ on:
6
+ push:
7
+ branches:
8
+ - main
9
+ pull_request:
10
+ branches:
11
+ - main
12
+
13
+ jobs:
14
+ rubocop:
15
+ name: RuboCop
16
+ runs-on: ubuntu-latest
17
+ env:
18
+ BUNDLE_ONLY: rubocop
19
+ steps:
20
+ - name: Checkout code
21
+ uses: actions/checkout@v4
22
+ - name: Setup Ruby and install gems
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: 3.3.0
26
+ bundler-cache: true
27
+ - name: Run Rubocop
28
+ run: bundle exec rubocop --parallel
29
+ test:
30
+ name: ${{ format('Unit tests (Ruby {0})', matrix.ruby-version) }}
31
+ runs-on: ubuntu-latest
32
+ strategy:
33
+ matrix:
34
+ ruby-version:
35
+ - "3.1"
36
+ - "3.2"
37
+ - "3.3"
38
+ - "3.4"
39
+ continue-on-error: true
40
+ steps:
41
+ - name: Checkout code
42
+ uses: actions/checkout@v4
43
+ - name: Setup Ruby and install gems
44
+ uses: ruby/setup-ruby@v1
45
+ with:
46
+ ruby-version: ${{ matrix.ruby-version }}
47
+ bundler-cache: true
48
+ - name: Configure Git
49
+ run: |
50
+ git config --global user.name $NAME
51
+ git config --global user.email $EMAIL
52
+ env:
53
+ NAME: "George Costanza"
54
+ EMAIL: "george.costanza@vandelay.com"
55
+ - name: Run tests
56
+ run: bundle exec rake test
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ set -e
3
+ grep -E "\.rb$|Rakefile|Gemfile" | xargs ./bin/rubocop --config .rubocop.yml --force-exclusion
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ inherit_gem:
2
+ rubocop-rails-omakase: rubocop.yml
data/CHANGELOG.md CHANGED
@@ -9,6 +9,15 @@ project adheres to [Semantic Versioning][Semver].
9
9
 
10
10
  - Your contribution here!
11
11
 
12
+ ## [0.5.1] - 2024-12-29
13
+ ### Changed
14
+ - Push gems with bundler (not GitHub actions)
15
+ - Updated documentation links
16
+
17
+ ## [0.5.0] - 2024-09-24
18
+ ### Removed
19
+ - Support for Ruby < 3.1 (older rubies no longer supported)
20
+
12
21
  ## [0.4.0] - 2020-01-24
13
22
  ### Removed
14
23
  - Support for Ruby < 2.4 (older rubies no longer supported)
@@ -64,7 +73,9 @@ project adheres to [Semantic Versioning][Semver].
64
73
  ### Changed
65
74
  - Initial release
66
75
 
67
- [Unreleased]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.4.0...HEAD
76
+ [Unreleased]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.5.1...HEAD
77
+ [0.5.1]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.5.0...v0.5.1
78
+ [0.5.0]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.4.0...v0.5.0
68
79
  [0.4.0]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.3.0...v0.4.0
69
80
  [0.3.0]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.2.0...v0.3.0
70
81
  [0.2.0]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.1.1...v0.2.0
@@ -77,4 +88,3 @@ project adheres to [Semantic Versioning][Semver].
77
88
  [0.0.2]: https://github.com/lolcommits/lolcommits-term_output/compare/v0.0.1...v0.0.2
78
89
  [0.0.1]: https://github.com/lolcommits/lolcommits-term_output/compare/0251ee8...v0.0.1
79
90
  [KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
80
- [Semver]: http://semver.org/spec/v2.0.0.html
data/Gemfile CHANGED
@@ -1,2 +1,6 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
  gemspec
3
+
4
+ group :rubocop do
5
+ gem "rubocop-rails-omakase", require: false
6
+ end
data/README.md CHANGED
@@ -1,25 +1,22 @@
1
1
  # Lolcommits Term Output
2
2
 
3
+ [![CI](https://img.shields.io/github/actions/workflow/status/lolcommits/lolcommits-term_output/ci.yml?branch=main&style=flat&label=CI)](https://github.com/lolcommits/lolcommits-term_output/actions/workflows/ci.yml)
3
4
  [![Gem](https://img.shields.io/gem/v/lolcommits-term_output.svg?style=flat)](http://rubygems.org/gems/lolcommits-term_output)
4
- [![Travis](https://img.shields.io/travis/com/lolcommits/lolcommits-term_output/master.svg?style=flat)](https://travis-ci.com/lolcommits/lolcommits-term_output)
5
5
  [![Depfu](https://img.shields.io/depfu/lolcommits/lolcommits-term_output.svg?style=flat)](https://depfu.com/github/lolcommits/lolcommits-term_output)
6
- [![Maintainability](https://api.codeclimate.com/v1/badges/3f2a468adb10524add39/maintainability)](https://codeclimate.com/github/lolcommits/lolcommits-term_output/maintainability)
7
- [![Test Coverage](https://api.codeclimate.com/v1/badges/3f2a468adb10524add39/test_coverage)](https://codeclimate.com/github/lolcommits/lolcommits-term_output/test_coverage)
8
6
 
9
- [lolcommits](https://lolcommits.github.io/) takes a snapshot with your
10
- webcam every time you git commit code, and archives a lolcat style image
11
- with it. Git blame has never been so much fun!
7
+ [lolcommits](https://lolcommits.github.io/) takes a snapshot with your webcam
8
+ every time you git commit code, and archives a lolcat style image with it. Git
9
+ blame has never been so much fun!
12
10
 
13
- This plugin uses the [inline
14
- image](http://iterm2.com/documentation-images.html) feature available in
15
- [iTerm2](http://iterm2.com/index.html) to display each lolcommit (images
16
- only) in your terminal (after committing). For example:
11
+ This plugin uses the [inline image](http://iterm2.com/documentation-images.html)
12
+ feature available in [iTerm2](http://iterm2.com/index.html) to display each
13
+ lolcommit (images only) in your terminal (after committing). For example:
17
14
 
18
15
  ![iterm inline sample screenshot](./assets/images/sample.png)
19
16
 
20
17
  ## Requirements
21
18
 
22
- * Ruby >= 2.4
19
+ * Ruby >= 3.1
23
20
  * A webcam
24
21
  * [iTerm2](http://iterm2.com/index.html)
25
22
  * [ImageMagick](http://www.imagemagick.org)
@@ -36,20 +33,19 @@ Then configure to enable and set the remote endpoint:
36
33
  $ lolcommits --config -p term_output
37
34
  # set enabled to `true`
38
35
 
39
- That's it! Your next lolcommit will be displayed within your terminal.
40
- To disable use:
36
+ That's it! Your next lolcommit will be displayed within your terminal. To
37
+ disable use:
41
38
 
42
39
  $ lolcommits --config -p term_output
43
40
  # and set enabled to `false`
44
41
 
45
42
  ## Development
46
43
 
47
- Check out this repo and run `bin/setup`, this will install all
48
- dependencies and generate docs. Use `bundle exec rake` to run all tests
49
- and generate a coverage report.
44
+ Check out this repo and run `bin/setup`, this will install all dependencies and
45
+ generate docs. Use `bundle exec rake` to run all tests.
50
46
 
51
- You can also run `bin/console` for an interactive prompt that will allow
52
- you to experiment with the gem code.
47
+ You can also run `bin/console` for an interactive prompt that will allow you to
48
+ experiment with the gem code.
53
49
 
54
50
  ## Tests
55
51
 
@@ -66,29 +62,23 @@ Generate docs for this gem with:
66
62
  ## Troubles?
67
63
 
68
64
  If you think something is broken or missing, please raise a new
69
- [issue](https://github.com/lolcommits/lolcommits-term_output/issues).
70
- Take a moment to check it hasn't been raised in the past (and possibly
71
- closed).
65
+ [issue](https://github.com/lolcommits/lolcommits-term_output/issues). Take a
66
+ moment to check it hasn't been raised in the past (and possibly closed).
72
67
 
73
68
  ## Contributing
74
69
 
75
- Bug
76
- [reports](https://github.com/lolcommits/lolcommits-term_output/issues)
77
- and [pull
78
- requests](https://github.com/lolcommits/lolcommits-term_output/pulls)
79
- are welcome on GitHub.
70
+ Bug [reports](https://github.com/lolcommits/lolcommits-term_output/issues) and
71
+ [pull requests](https://github.com/lolcommits/lolcommits-term_output/pulls) are
72
+ welcome on GitHub.
80
73
 
81
- When submitting pull requests, remember to add tests covering any new
82
- behaviour, and ensure all tests are passing on [Travis
83
- CI](https://travis-ci.com/lolcommits/lolcommits-term_output). Read the
84
- [contributing
74
+ When submitting pull requests, remember to add tests covering any new behaviour,
75
+ and ensure all tests are passing on CI. Read the [contributing
85
76
  guidelines](https://github.com/lolcommits/lolcommits-term_output/blob/master/CONTRIBUTING.md)
86
77
  for more details.
87
78
 
88
- This project is intended to be a safe, welcoming space for
89
- collaboration, and contributors are expected to adhere to the
90
- [Contributor Covenant](http://contributor-covenant.org) code of conduct.
91
- See
79
+ This project is intended to be a safe, welcoming space for collaboration, and
80
+ contributors are expected to adhere to the [Contributor
81
+ Covenant](http://contributor-covenant.org) code of conduct. See
92
82
  [here](https://github.com/lolcommits/lolcommits-term_output/blob/master/CODE_OF_CONDUCT.md)
93
83
  for more details.
94
84
 
@@ -99,10 +89,8 @@ The gem is available as open source under the terms of
99
89
 
100
90
  ## Links
101
91
 
102
- * [Travis CI](https://travis-ci.com/lolcommits/lolcommits-term_output)
103
- * [Code Climate](https://codeclimate.com/github/lolcommits/lolcommits-term_output)
104
- * [Test Coverage](https://codeclimate.com/github/lolcommits/lolcommits-term_output/coverage)
105
- * [RDoc](http://rdoc.info/projects/lolcommits/lolcommits-term_output)
92
+ * [CI](https://github.com/lolcommits/lolcommits-term_output/actions/workflows/ci.yml)
93
+ * [RDoc](https://rubydoc.info/gems/lolcommits-term_output)
106
94
  * [Issues](http://github.com/lolcommits/lolcommits-term_output/issues)
107
95
  * [Report a bug](http://github.com/lolcommits/lolcommits-term_output/issues/new)
108
96
  * [Gem](http://rubygems.org/gems/lolcommits-term_output)
data/Rakefile CHANGED
@@ -18,14 +18,4 @@ Rake::TestTask.new(:test) do |t|
18
18
  t.test_files = FileList["test/**/*_test.rb"]
19
19
  end
20
20
 
21
- # run tests with code coverage (default)
22
- namespace :test do
23
- desc "Run all tests and features and generate a code coverage report"
24
- task :coverage do
25
- ENV['COVERAGE'] = 'true'
26
- Rake::Task['test'].execute
27
- end
28
- end
29
-
30
-
31
- task :default => ['test:coverage']
21
+ task default: [ "test" ]
data/bin/rubocop ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ load Gem.bin_path("rubocop", "rubocop")
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'base64'
4
- require 'lolcommits/plugin/base'
3
+ require "base64"
4
+ require "lolcommits/plugin/base"
5
5
 
6
6
  module Lolcommits
7
7
  module Plugin
8
8
  class TermOutput < Base
9
-
10
9
  ## Prompts the user to configure the plugin's options. The default
11
- #superclass method will ask for the `enabled` option to be set.
10
+ # superclass method will ask for the `enabled` option to be set.
12
11
  #
13
12
  # @return [Hash] hash of configured options `{ enabled: true/false }`
14
13
  # @return [Nil] if this terminal does not support this plugin
@@ -33,16 +32,16 @@ module Lolcommits
33
32
  def run_capture_ready
34
33
  if terminal_supported?
35
34
  if !runner.vcs_info || runner.vcs_info.repo.empty?
36
- debug 'repo is empty, skipping term output'
35
+ debug "repo is empty, skipping term output"
37
36
  elsif !image_path
38
- debug 'lolcommit videos not supported'
37
+ debug "lolcommit videos not supported"
39
38
  else
40
39
  debug "rendering image in iTerm"
41
40
  base64 = Base64.encode64(open(image_path, &:read).to_s)
42
41
  puts "#{begin_escape}1337;File=inline=1:#{base64};alt=#{runner.message};#{end_escape}\n"
43
42
  end
44
43
  else
45
- debug 'Terminal not supported (requires iTerm2)'
44
+ debug "Terminal not supported (requires iTerm2)"
46
45
  end
47
46
  end
48
47
 
@@ -89,7 +88,7 @@ module Lolcommits
89
88
  # @return [Boolan] true when running within a Tmux session
90
89
  #
91
90
  def tmux?
92
- !ENV['TMUX'].nil?
91
+ !ENV["TMUX"].nil?
93
92
  end
94
93
 
95
94
  ##
@@ -98,7 +97,7 @@ module Lolcommits
98
97
  # @return [Boolan] true when terminal identifies as iTerm
99
98
  #
100
99
  def terminal_supported?
101
- ENV['TERM_PROGRAM'] =~ /iTerm/
100
+ ENV["TERM_PROGRAM"] =~ /iTerm/
102
101
  end
103
102
  end
104
103
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lolcommits
4
4
  module TermOutput
5
- VERSION = "0.4.0".freeze
5
+ VERSION = "0.5.1".freeze
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lolcommits/term_output/version'
4
- require 'lolcommits/plugin/term_output'
3
+ require "lolcommits/term_output/version"
4
+ require "lolcommits/plugin/term_output"
@@ -5,8 +5,8 @@ require 'lolcommits/term_output/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "lolcommits-term_output"
7
7
  spec.version = Lolcommits::TermOutput::VERSION
8
- spec.authors = ["Matthew Hutchinson"]
9
- spec.email = ["matt@hiddenloop.com"]
8
+ spec.authors = [ "Matthew Hutchinson" ]
9
+ spec.email = [ "matt@hiddenloop.com" ]
10
10
  spec.summary = "Display lolcommits within your iTerm terminal"
11
11
  spec.homepage = "https://github.com/lolcommits/lolcommits-term_output"
12
12
  spec.license = "LGPL-3.0"
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.metadata = {
16
16
  "homepage_uri" => "https://github.com/lolcommits/lolcommits-term_output",
17
+ "documentation_uri" => "https://rubydoc.info/gems/lolcommits-term_output",
17
18
  "changelog_uri" => "https://github.com/lolcommits/lolcommits-term_output/blob/master/CHANGELOG.md",
18
19
  "source_code_uri" => "https://github.com/lolcommits/lolcommits-term_output",
19
20
  "bug_tracker_uri" => "https://github.com/lolcommits/lolcommits-term_output/issues",
@@ -24,15 +25,13 @@ Gem::Specification.new do |spec|
24
25
  spec.test_files = `git ls-files -- {test,features}/*`.split("\n")
25
26
  spec.bindir = "bin"
26
27
  spec.executables = []
27
- spec.require_paths = ["lib"]
28
+ spec.require_paths = [ "lib" ]
28
29
 
29
- spec.required_ruby_version = ">= 2.4"
30
+ spec.required_ruby_version = ">= 3.1"
30
31
 
31
- spec.add_runtime_dependency "lolcommits", ">= 0.14.2"
32
+ spec.add_runtime_dependency "lolcommits", ">= 0.17.2"
32
33
 
33
34
  spec.add_development_dependency "bundler"
34
- spec.add_development_dependency "pry"
35
35
  spec.add_development_dependency "rake"
36
36
  spec.add_development_dependency "minitest"
37
- spec.add_development_dependency "simplecov"
38
37
  end
Binary file
@@ -3,29 +3,32 @@
3
3
  require "test_helper"
4
4
 
5
5
  describe Lolcommits::Plugin::TermOutput do
6
-
7
6
  include Lolcommits::TestHelpers::GitRepo
8
7
  include Lolcommits::TestHelpers::FakeIO
9
8
 
10
9
  # initialize and reset env vars before tests run
11
10
  before do
12
- @old_tmux = ENV['TMUX']
13
- @old_term_program = ENV['TERM_PROGRAM']
14
- ENV['TERM_PROGRAM'] = "iTerm"
15
- ENV['TMUX'] = nil
11
+ @old_tmux = ENV["TMUX"]
12
+ @old_term_program = ENV["TERM_PROGRAM"]
13
+ ENV["TERM_PROGRAM"] = "iTerm"
14
+ ENV["TMUX"] = nil
16
15
  end
17
16
 
18
17
  after do
19
- ENV['TERM_PROGRAM'] = @old_term_program
20
- ENV['TMUX'] = @old_tmux
18
+ ENV["TERM_PROGRAM"] = @old_term_program
19
+ ENV["TMUX"] = @old_tmux
21
20
  end
22
21
 
23
22
  describe "with a runner" do
24
23
  def runner
25
24
  # a simple lolcommits runner with an empty configuration Hash
26
- @runner ||= Lolcommits::Runner.new(
27
- lolcommit_path: Tempfile.new('lolcommit.jpg')
28
- )
25
+ @runner ||= Lolcommits::Runner.new.tap do |r|
26
+ r.lolcommit_path = lolcommit_path
27
+ end
28
+ end
29
+
30
+ def lolcommit_path
31
+ File.expand_path(File.dirname(__FILE__) + "../../../assets/test_image.jpg")
29
32
  end
30
33
 
31
34
  def plugin
@@ -48,7 +51,7 @@ describe Lolcommits::Plugin::TermOutput do
48
51
  end
49
52
 
50
53
  describe "run_capture_ready" do
51
- before { commit_repo_with_message("first commit!") }
54
+ before { commit_repo_with_message("test commit") }
52
55
  after { teardown_repo }
53
56
 
54
57
  def check_plugin_output(matching_regex)
@@ -60,22 +63,22 @@ describe Lolcommits::Plugin::TermOutput do
60
63
  end
61
64
 
62
65
  it "outputs lolcommits image inline to terminal" do
63
- check_plugin_output(/^\e\]1337;File=inline=1\:.*\n;alt=first commit!;\a\n$/)
66
+ check_plugin_output(/^\e\]1337;File=inline=1\:.+\n;alt=test commit;\a\n$/m)
64
67
  end
65
68
 
66
69
  describe "when running in a Tmux session" do
67
70
  before do
68
- ENV['TMUX'] = 'true'
71
+ ENV["TMUX"] = "true"
69
72
  end
70
73
 
71
74
  it "outputs lolcommits image inline to terminal with Tmux escape sequence" do
72
- check_plugin_output(/^\ePtmux;\e\e\]1337;File=inline=1\:.*\n;alt=first commit!;\a\e\\\n$/)
75
+ check_plugin_output(/^\ePtmux;\e\e\]1337;File=inline=1\:.+\n;alt=test commit;\a\e\\\n$/m)
73
76
  end
74
77
  end
75
78
 
76
79
  describe "when using an unsupported terminal" do
77
80
  before do
78
- ENV['TERM_PROGRAM'] = "konsole"
81
+ ENV["TERM_PROGRAM"] = "konsole"
79
82
  end
80
83
 
81
84
  it "outputs nothing to the terminal" do
@@ -86,7 +89,7 @@ describe Lolcommits::Plugin::TermOutput do
86
89
 
87
90
  describe "configuration" do
88
91
  it "allows plugin options to be configured" do
89
- inputs = %w( true ) # enabled option
92
+ inputs = %w[ true ] # enabled option
90
93
  configured_plugin_options = {}
91
94
 
92
95
  fake_io_capture(inputs: inputs) do
@@ -98,11 +101,11 @@ describe Lolcommits::Plugin::TermOutput do
98
101
 
99
102
  describe "when terminal not supported" do
100
103
  before do
101
- ENV['TERM_PROGRAM'] = "konsole"
104
+ ENV["TERM_PROGRAM"] = "konsole"
102
105
  end
103
106
 
104
107
  it "does not allow options to be configured" do
105
- inputs = %w( true ) # enabled option
108
+ inputs = %w[ true ] # enabled option
106
109
  configured_plugin_options = {}
107
110
 
108
111
  output = fake_io_capture(inputs: inputs) do
data/test/test_helper.rb CHANGED
@@ -1,21 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
4
4
 
5
5
  # lolcommits gem
6
- require 'lolcommits'
6
+ require "lolcommits"
7
7
 
8
8
  # lolcommit test helpers
9
- require 'lolcommits/test_helpers/git_repo'
10
- require 'lolcommits/test_helpers/fake_io'
11
-
12
- if ENV['COVERAGE']
13
- require 'simplecov'
14
- end
9
+ require "lolcommits/test_helpers/git_repo"
10
+ require "lolcommits/test_helpers/fake_io"
15
11
 
16
12
  # plugin gem test libs
17
- require 'lolcommits/term_output'
18
- require 'minitest/autorun'
13
+ require "lolcommits/term_output"
14
+ require "minitest/autorun"
19
15
 
20
16
  # swallow all debug output during test runs
21
17
  def debug(msg); end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits-term_output
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Hutchinson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-24 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lolcommits
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.2
19
+ version: 0.17.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.14.2
26
+ version: 0.17.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: pry
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +66,6 @@ dependencies:
80
66
  - - ">="
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: simplecov
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
69
  description: Display lolcommits within your iTerm terminal
98
70
  email:
99
71
  - matt@hiddenloop.com
@@ -101,23 +73,25 @@ executables: []
101
73
  extensions: []
102
74
  extra_rdoc_files: []
103
75
  files:
76
+ - ".github/workflows/ci.yml"
104
77
  - ".gitignore"
105
- - ".simplecov"
106
- - ".travis.yml"
78
+ - ".quickhook/pre-commit/ruby-lint"
79
+ - ".rubocop.yml"
107
80
  - CHANGELOG.md
108
81
  - CODE_OF_CONDUCT.md
109
82
  - CONTRIBUTING.md
110
83
  - Gemfile
111
84
  - LICENSE
112
- - PULL_REQUEST_TEMPLATE.md
113
85
  - README.md
114
86
  - Rakefile
115
87
  - bin/console
88
+ - bin/rubocop
116
89
  - bin/setup
117
90
  - lib/lolcommits/plugin/term_output.rb
118
91
  - lib/lolcommits/term_output.rb
119
92
  - lib/lolcommits/term_output/version.rb
120
93
  - lolcommits-term_output.gemspec
94
+ - test/assets/test_image.jpg
121
95
  - test/lolcommits/plugin/term_output_test.rb
122
96
  - test/test_helper.rb
123
97
  homepage: https://github.com/lolcommits/lolcommits-term_output
@@ -125,11 +99,12 @@ licenses:
125
99
  - LGPL-3.0
126
100
  metadata:
127
101
  homepage_uri: https://github.com/lolcommits/lolcommits-term_output
102
+ documentation_uri: https://rubydoc.info/gems/lolcommits-term_output
128
103
  changelog_uri: https://github.com/lolcommits/lolcommits-term_output/blob/master/CHANGELOG.md
129
104
  source_code_uri: https://github.com/lolcommits/lolcommits-term_output
130
105
  bug_tracker_uri: https://github.com/lolcommits/lolcommits-term_output/issues
131
106
  allowed_push_host: https://rubygems.org
132
- post_install_message:
107
+ post_install_message:
133
108
  rdoc_options: []
134
109
  require_paths:
135
110
  - lib
@@ -137,17 +112,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
112
  requirements:
138
113
  - - ">="
139
114
  - !ruby/object:Gem::Version
140
- version: '2.4'
115
+ version: '3.1'
141
116
  required_rubygems_version: !ruby/object:Gem::Requirement
142
117
  requirements:
143
118
  - - ">="
144
119
  - !ruby/object:Gem::Version
145
120
  version: '0'
146
121
  requirements: []
147
- rubygems_version: 3.1.2
148
- signing_key:
122
+ rubygems_version: 3.5.22
123
+ signing_key:
149
124
  specification_version: 4
150
125
  summary: Display lolcommits within your iTerm terminal
151
126
  test_files:
127
+ - test/assets/test_image.jpg
152
128
  - test/lolcommits/plugin/term_output_test.rb
153
129
  - test/test_helper.rb
data/.simplecov DELETED
@@ -1,9 +0,0 @@
1
- SimpleCov.start do
2
- add_filter '/test/'
3
- add_filter '/vendor/'
4
- end
5
-
6
- SimpleCov.at_exit do
7
- SimpleCov.result.format!
8
- `open ./coverage/index.html` if RUBY_PLATFORM =~ /darwin/
9
- end
data/.travis.yml DELETED
@@ -1,29 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.4.9
6
- - 2.5.7
7
- - 2.6.5
8
- - 2.7.0
9
- - ruby-head
10
-
11
- before_install:
12
- - git --version
13
- - git config --global user.email "lol@commits.org"
14
- - git config --global user.name "Lolcommits"
15
-
16
- matrix:
17
- allow_failures:
18
- - rvm: ruby-head
19
-
20
- env:
21
- global:
22
- - CC_TEST_REPORTER_ID=eb8c60bf77e0ed78453285e1d9c0aa4c9c248a4945f077615edb042db7753fb9
23
- - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
24
- before_script:
25
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
26
- - chmod +x ./cc-test-reporter
27
- - ./cc-test-reporter before-build - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
28
- after_script:
29
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
@@ -1,16 +0,0 @@
1
-
2
- Explain what you're changing and why here.
3
-
4
- ---
5
- #### :memo: Checklist
6
-
7
- Please check this list and leave it intact for the reviewer. Thanks! :heart:
8
-
9
- - [ ] Commit messages provide context (why not just what, some tips [here](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)).
10
- - [ ] If relevant, mention GitHub issue number above and include in a commit message.
11
- - [ ] Latest code from master merged.
12
- - [ ] New behaviour has test coverage.
13
- - [ ] Avoid duplicating code.
14
- - [ ] No commented out code.
15
- - [ ] Avoid comments for your code, write code that explains itself.
16
- - [ ] Changes are simple, useful, clear and brief.