lolcommits-tranzlate 0.3.0 → 0.5.0

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: 26ec77cf72190fa654eaf59f55bee2ad27c64f6af272196d87a8947555a2e6ae
4
- data.tar.gz: b9cb0aa5ec5badfde8e3c90010e03b34462a1fb6c932c898dc39a9d16452e763
3
+ metadata.gz: 531554ca91ac8ad1b4763f63cbf1a37928ced185e45074d65f6962a5c9fa818e
4
+ data.tar.gz: 7cd0440c1f54178efdf300dabb9ba8186611ef9ce81ef35fbd089c2b05d8d25e
5
5
  SHA512:
6
- metadata.gz: eec76c02d90086f770ecdde05c17e2c1e98649de8a990f28240eff3463d472a676de1e40286fbb7e0c38f8eb12cb5c59838d8ccc3aec5f411e2e208a2b9f3c71
7
- data.tar.gz: 3e8bea9f096243a7841fe5fa309519ec7ead0954f48f62ad69aab9e1f7d36e47e3af9496af1647c4adbb6c9e849ac75f6c39d6e6b967b086e49a072e25d559d2
6
+ metadata.gz: 7630e2f420da0abda493b789a6bd04f56a0581bef5c700d45b87da560c84bfc3289d8e9fa3bdbb9b7c69c97de2b53160b0fc499933da5cf0a0f4813116bc47b0
7
+ data.tar.gz: 30de872358419a9adeb12de14cf40d9843aa7cee2bb51985eeaf0fce4a819cb9ddfee8d398cb3edcf9d71f667c8cc0abfce432a6ab65c0123b3274bcc0950423
@@ -0,0 +1,34 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ ruby-version: ['3.1', '3.2', '3.3', '3.4']
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ bundler-cache: true
26
+ - name: Configure git user name, email
27
+ run: |
28
+ git config --global user.name $NAME
29
+ git config --global user.email $EMAIL
30
+ env:
31
+ NAME: "George Costanza"
32
+ EMAIL: "george.costanza@vandelay.com"
33
+ - name: Run tests
34
+ run: bundle exec rake test
@@ -0,0 +1,25 @@
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/.travis.yml CHANGED
@@ -2,10 +2,10 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.3.8
6
- - 2.4.6
7
- - 2.5.5
8
- - 2.6.3
5
+ - 2.5.8
6
+ - 2.6.6
7
+ - 2.7.2
8
+ - 3.0.0
9
9
  - ruby-head
10
10
 
11
11
  before_install:
data/CHANGELOG.md CHANGED
@@ -9,6 +9,14 @@ project adheres to [Semantic Versioning][Semver].
9
9
 
10
10
  - Your contribution here!
11
11
 
12
+ ## [0.5.0] - 2024-09-23
13
+ ### Removed
14
+ - Support for Ruby < 3.1 (older rubies no longer supported)
15
+
16
+ ## [0.4.0] - 2020-01-24
17
+ ### Removed
18
+ - Support for Ruby < 2.4 (older rubies no longer supported)
19
+
12
20
  ## [0.3.0] - 2019-05-20
13
21
  ### Changed
14
22
  - lolcommits gem is a runtime dependency
@@ -69,7 +77,9 @@ project adheres to [Semantic Versioning][Semver].
69
77
  ### Changed
70
78
  - Initial release
71
79
 
72
- [Unreleased]: https://github.com/lolcommits/lolcommits-tranzlate/compare/v0.3.0...HEAD
80
+ [Unreleased]: https://github.com/lolcommits/lolcommits-tranzlate/compare/v0.5.0...HEAD
81
+ [0.5.0]: https://github.com/lolcommits/lolcommits-tranzlate/compare/v0.4.0...v0.5.0
82
+ [0.4.0]: https://github.com/lolcommits/lolcommits-tranzlate/compare/v0.3.0...v0.4.0
73
83
  [0.3.0]: https://github.com/lolcommits/lolcommits-tranzlate/compare/v0.2.0...v0.3.0
74
84
  [0.2.0]: https://github.com/lolcommits/lolcommits-tranzlate/compare/v0.1.1...v0.2.0
75
85
  [0.1.1]: https://github.com/lolcommits/lolcommits-tranzlate/compare/v0.1.0...v0.1.1
data/README.md CHANGED
@@ -1,10 +1,8 @@
1
1
  # Lolcommits Tranzlate
2
2
 
3
+ [![Build](https://img.shields.io/github/actions/workflow/status/lolcommits/lolcommits-tranzlate/build.yml?branch=main&style=flat)](https://github.com/lolcommits/lolcommits-tranzlate/actions/workflows/build.yml)
3
4
  [![Gem](https://img.shields.io/gem/v/lolcommits-tranzlate.svg?style=flat)](http://rubygems.org/gems/lolcommits-tranzlate)
4
- [![Travis](https://img.shields.io/travis/com/lolcommits/lolcommits-tranzlate/master.svg?style=flat)](https://travis-ci.com/lolcommits/lolcommits-tranzlate)
5
5
  [![Depfu](https://img.shields.io/depfu/lolcommits/lolcommits-tranzlate.svg?style=flat)](https://depfu.com/github/lolcommits/lolcommits-tranzlate)
6
- [![Maintainability](https://api.codeclimate.com/v1/badges/9756257deacd122a4063/maintainability)](https://codeclimate.com/github/lolcommits/lolcommits-tranzlate/maintainability)
7
- [![Test Coverage](https://api.codeclimate.com/v1/badges/9756257deacd122a4063/test_coverage)](https://codeclimate.com/github/lolcommits/lolcommits-tranzlate/test_coverage)
8
6
 
9
7
  [lolcommits](https://lolcommits.github.io/) takes a snapshot with your
10
8
  webcam every time you git commit code, and archives a lolcat style image
@@ -15,11 +13,11 @@ This plugin will TRANZLATE YOAR COMMIT MSG TO
15
13
  LIKEZ DIS:
16
14
 
17
15
  ![lolz
18
- commit](https://github.com/lolcommits/lolcommits-tranzlate/raw/master/assets/images/lolz.jpg)
16
+ commit](https://github.com/lolcommits/lolcommits-tranzlate/raw/main/assets/images/lolz.jpg)
19
17
 
20
18
  ## Requirements
21
19
 
22
- * Ruby >= 2.3
20
+ * Ruby >= 3.1
23
21
  * A webcam
24
22
  * [ImageMagick](http://www.imagemagick.org)
25
23
  * [ffmpeg](https://www.ffmpeg.org) (optional) for animated gif capturing
@@ -72,10 +70,8 @@ and [pull
72
70
  requests](https://github.com/lolcommits/lolcommits-tranzlate/pulls) are
73
71
  welcome on GitHub.
74
72
 
75
- When submitting pull requests, remember to add tests covering any new
76
- behaviour, and ensure all tests are passing on [Travis
77
- CI](https://travis-ci.com/lolcommits/lolcommits-tranzlate). Read the
78
- [contributing
73
+ When submitting pull requests, remember to add tests covering any new behaviour,
74
+ and ensure all tests are passing on CI. Read the [contributing
79
75
  guidelines](https://github.com/lolcommits/lolcommits-tranzlate/blob/master/CONTRIBUTING.md)
80
76
  for more details.
81
77
 
@@ -93,9 +89,7 @@ The gem is available as open source under the terms of
93
89
 
94
90
  ## Links
95
91
 
96
- * [Travis CI](https://travis-ci.com/lolcommits/lolcommits-tranzlate)
97
- * [Test Coverage](https://codeclimate.com/github/lolcommits/lolcommits-tranzlate/test_coverage)
98
- * [Code Climate](https://codeclimate.com/github/lolcommits/lolcommits-tranzlate)
92
+ * [CI](https://github.com/lolcommits/lolcommits-tranzlate/actions/workflows/build.yml)
99
93
  * [RDoc](http://rdoc.info/projects/lolcommits/lolcommits-tranzlate)
100
94
  * [Issues](http://github.com/lolcommits/lolcommits-tranzlate/issues)
101
95
  * [Report a bug](http://github.com/lolcommits/lolcommits-tranzlate/issues/new)
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']
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lolcommits
4
4
  module Tranzlate
5
- VERSION = "0.3.0".freeze
5
+ VERSION = "0.5.0".freeze
6
6
  end
7
7
  end
@@ -26,11 +26,10 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = []
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.required_ruby_version = ">= 2.3"
30
- spec.add_runtime_dependency "lolcommits", ">= 0.14.2"
29
+ spec.required_ruby_version = ">= 3.1"
30
+ spec.add_runtime_dependency "lolcommits", ">= 0.17.2"
31
31
 
32
32
  spec.add_development_dependency "bundler"
33
33
  spec.add_development_dependency "rake"
34
34
  spec.add_development_dependency "minitest"
35
- spec.add_development_dependency "simplecov"
36
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits-tranzlate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Hutchinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-20 00:00:00.000000000 Z
11
+ date: 2024-09-23 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
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: simplecov
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  description: TRANZLATE YOAR LOLCOMMIT MSG TO LOLSPEKK
84
70
  email:
85
71
  - matt@hiddenloop.com
@@ -87,6 +73,8 @@ executables: []
87
73
  extensions: []
88
74
  extra_rdoc_files: []
89
75
  files:
76
+ - ".github/workflows/build.yml"
77
+ - ".github/workflows/push_gem.yml"
90
78
  - ".gitignore"
91
79
  - ".simplecov"
92
80
  - ".travis.yml"
@@ -105,8 +93,6 @@ files:
105
93
  - lib/lolcommits/tranzlate/lolspeak.rb
106
94
  - lib/lolcommits/tranzlate/version.rb
107
95
  - lolcommits-tranzlate.gemspec
108
- - test/lolcommits/plugin/tranzlate_test.rb
109
- - test/test_helper.rb
110
96
  homepage: https://github.com/lolcommits/lolcommits-tranzlate
111
97
  licenses:
112
98
  - LGPL-3.0
@@ -124,17 +110,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
110
  requirements:
125
111
  - - ">="
126
112
  - !ruby/object:Gem::Version
127
- version: '2.3'
113
+ version: '3.1'
128
114
  required_rubygems_version: !ruby/object:Gem::Requirement
129
115
  requirements:
130
116
  - - ">="
131
117
  - !ruby/object:Gem::Version
132
118
  version: '0'
133
119
  requirements: []
134
- rubygems_version: 3.0.3
120
+ rubygems_version: 3.5.16
135
121
  signing_key:
136
122
  specification_version: 4
137
123
  summary: lolcommits lolspekk tranzlation plugin
138
- test_files:
139
- - test/lolcommits/plugin/tranzlate_test.rb
140
- - test/test_helper.rb
124
+ test_files: []
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'test_helper'
4
-
5
- describe Lolcommits::Plugin::Tranzlate do
6
-
7
- include Lolcommits::TestHelpers::GitRepo
8
- include Lolcommits::TestHelpers::FakeIO
9
-
10
- describe 'with a runner' do
11
- def runner
12
- @runner ||= Lolcommits::Runner.new
13
- end
14
-
15
- def plugin
16
- @plugin ||= Lolcommits::Plugin::Tranzlate.new(runner: runner)
17
- end
18
-
19
- describe '#enabled?' do
20
- it 'returns false by default' do
21
- plugin.enabled?.must_equal false
22
- end
23
-
24
- it 'returns true when configured' do
25
- plugin.configuration = { enabled: true }
26
- plugin.enabled?.must_equal true
27
- end
28
- end
29
-
30
- describe '#run_pre_capture' do
31
- before { commit_repo_with_message('my awesome commit') }
32
-
33
- it 'tranzlates the commit message' do
34
- in_repo { plugin.run_pre_capture }
35
- runner.message.must_match(/AWESUM COMMIT/)
36
- end
37
-
38
- after { teardown_repo }
39
- end
40
- end
41
- end
data/test/test_helper.rb DELETED
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
4
-
5
- # lolcommits gem
6
- require 'lolcommits'
7
-
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
15
-
16
- # plugin gem test libs
17
- require 'lolcommits/tranzlate'
18
- require 'minitest/autorun'
19
-
20
- # swallow all debug output during test runs
21
- def debug(msg); end