lolcommits-uploldz 0.6.0 → 0.6.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: e25d6e8591f09c0f55e4b91884a3b30325ff6e60b923265bc5a578544bc45978
4
- data.tar.gz: 226a8ccb7d019742ec8ac66a9dab6f003f8354a67cff30638196a3c7cf93d40e
3
+ metadata.gz: 9839173622884d12ac7c3f1243af76787ca33081eeb49cb5b67f574b8c6ea308
4
+ data.tar.gz: 7b3153491fd97da4968eb71a7115532426c96775d2c88085eac45cce4a2a30b3
5
5
  SHA512:
6
- metadata.gz: a7cae83c182b5baac0f3bdce7ae2e45857a2368d39982ce11515f382ff3bd9e7565181e2bcf2116575ab828b7b86906622eff4007b4720e21e9dbff79a3d2c0d
7
- data.tar.gz: 0b1c91c9a6ae28f5b03b20e2425e384f9837f88592fc82f2193e04376d16ff7fd509a2d5ab47bf534afd1f7db6767d860f9eae76afa6dbfaed2a1f2e4d62c9e1
6
+ metadata.gz: e54aa0308cd1017edc8535e0aa466e620a1c2151c014699a0b5af134542549baccf091673893987604426ca019c753a1792195be1b9a680b68de5adc9694d88e
7
+ data.tar.gz: 86166151ae1810ebd6a21482b0855b4fc34e7eb79cf05a66c75a0e537b09cfd0a4b534c81026cb823637fff6f311cb8ac203f0aed1acd8cfeac6e898af5663ec
@@ -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,11 @@ adheres to [Semantic Versioning][Semver].
9
9
 
10
10
  - Your contribution here!
11
11
 
12
+ ## [0.6.1] - 2024-12-29
13
+ ### Changed
14
+ - Push gems with bundler (not GitHub actions)
15
+ - Updated documentation links
16
+
12
17
  ## [0.6.0] - 2024-09-24
13
18
  ### Removed
14
19
  - Support for Ruby < 3.1 (older rubies no longer supported)
@@ -70,7 +75,8 @@ adheres to [Semantic Versioning][Semver].
70
75
  ### Changed
71
76
  - Initial release
72
77
 
73
- [Unreleased]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.6.0...HEAD
78
+ [Unreleased]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.6.1...HEAD
79
+ [0.6.1]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.6.0...v0.6.1
74
80
  [0.6.0]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.5.0...v0.6.0
75
81
  [0.5.0]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.4.0...v0.5.0
76
82
  [0.4.0]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.3.0...v0.4.0
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,16 +1,16 @@
1
1
  # Lolcommits Uploldz
2
2
 
3
- [![Build](https://img.shields.io/github/actions/workflow/status/lolcommits/lolcommits-uploldz/build.yml?branch=main&style=flat)](https://github.com/lolcommits/lolcommits-uploldz/actions/workflows/build.yml)
3
+ [![CI](https://img.shields.io/github/actions/workflow/status/lolcommits/lolcommits-uploldz/ci.yml?branch=main&style=flat&label=CI)](https://github.com/lolcommits/lolcommits-uploldz/actions/workflows/ci.yml)
4
4
  [![Gem](https://img.shields.io/gem/v/lolcommits-uploldz.svg?style=flat)](http://rubygems.org/gems/lolcommits-uploldz)
5
5
  [![Depfu](https://img.shields.io/depfu/lolcommits/lolcommits-uploldz.svg?style=flat)](https://depfu.com/github/lolcommits/lolcommits-uploldz)
6
6
 
7
- [lolcommits](https://lolcommits.github.io/) takes a snapshot with your
8
- webcam every time you git commit code, and archives a lolcat style image
9
- 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!
10
10
 
11
- This plugin uploads each lolcommit to a remote server after capturing.
12
- You configure the plugin by setting a remote endpoint to handle the HTTP
13
- post request. The following params will be sent:
11
+ This plugin uploads each lolcommit to a remote server after capturing. You
12
+ configure the plugin by setting a remote endpoint to handle the HTTP post
13
+ request. The following params will be sent:
14
14
 
15
15
  * `file` - captured lolcommit file
16
16
  * `message` - the commit message
@@ -20,8 +20,7 @@ post request. The following params will be sent:
20
20
  * `author_email` - the commit author email address
21
21
  * `key` - optional key (string) from plugin config
22
22
 
23
- You can also set an optional HTTP Basic Auth header (username and/or
24
- password).
23
+ You can also set an optional HTTP Basic Auth header (username and/or password).
25
24
 
26
25
  ## Requirements
27
26
 
@@ -43,19 +42,19 @@ Then configure to enable and set the remote endpoint:
43
42
  # set the remote endpoint (must begin with http(s)://)
44
43
  # optionally set a key (sent in params) and/or HTTP Basic Auth credentials
45
44
 
46
- That's it! Provided the endpoint responds correctly, your next lolcommit
47
- will be uploaded to it. To disable use:
45
+ That's it! Provided the endpoint responds correctly, your next lolcommit will be
46
+ uploaded to it. To disable use:
48
47
 
49
48
  $ lolcommits --config -p uploldz
50
49
  # and set enabled to `false`
51
50
 
52
51
  ## Development
53
52
 
54
- Check out this repo and run `bin/setup`, this will install all
55
- dependencies and generate docs. Use `bundle exec rake` to run all tests.
53
+ Check out this repo and run `bin/setup`, this will install all dependencies and
54
+ generate docs. Use `bundle exec rake` to run all tests.
56
55
 
57
- You can also run `bin/console` for an interactive prompt that will allow
58
- you to experiment with the gem code.
56
+ You can also run `bin/console` for an interactive prompt that will allow you to
57
+ experiment with the gem code.
59
58
 
60
59
  ## Tests
61
60
 
@@ -72,27 +71,23 @@ Generate docs for this gem with:
72
71
  ## Troubles?
73
72
 
74
73
  If you think something is broken or missing, please raise a new
75
- [issue](https://github.com/lolcommits/lolcommits-uploldz/issues). Take a
76
- moment to check it hasn't been raised in the past (and possibly closed).
74
+ [issue](https://github.com/lolcommits/lolcommits-uploldz/issues). Take a moment
75
+ to check it hasn't been raised in the past (and possibly closed).
77
76
 
78
77
  ## Contributing
79
78
 
80
- Bug [reports](https://github.com/lolcommits/lolcommits-uploldz/issues)
81
- and [pull
82
- requests](https://github.com/lolcommits/lolcommits-uploldz/pulls) are
83
- welcome on GitHub.
79
+ Bug [reports](https://github.com/lolcommits/lolcommits-uploldz/issues) and [pull
80
+ requests](https://github.com/lolcommits/lolcommits-uploldz/pulls) are welcome on
81
+ GitHub.
84
82
 
85
- When submitting pull requests, remember to add tests covering any new
86
- behaviour, and ensure all tests are passing on [Travis
87
- CI](https://travis-ci.com/lolcommits/lolcommits-uploldz). Read the
88
- [contributing
89
- guidelines](https://github.com/lolcommits/lolcommits-uploldz/blob/master/CONTRIBUTING.md)
83
+ When submitting pull requests, remember to add tests covering any new behaviour,
84
+ and ensure all tests are passing. Read the [contributing
85
+ guidelines](https://github.com/lolcommits/lolcommits-loltext/blob/master/CONTRIBUTING.md)
90
86
  for more details.
91
87
 
92
- This project is intended to be a safe, welcoming space for
93
- collaboration, and contributors are expected to adhere to the
94
- [Contributor Covenant](http://contributor-covenant.org) code of conduct.
95
- See
88
+ This project is intended to be a safe, welcoming space for collaboration, and
89
+ contributors are expected to adhere to the [Contributor
90
+ Covenant](http://contributor-covenant.org) code of conduct. See
96
91
  [here](https://github.com/lolcommits/lolcommits-uploldz/blob/master/CODE_OF_CONDUCT.md)
97
92
  for more details.
98
93
 
@@ -103,8 +98,8 @@ The gem is available as open source under the terms of
103
98
 
104
99
  ## Links
105
100
 
106
- * [CI](https://github.com/lolcommits/lolcommits-uploldz/actions/workflows/build.yml)
107
- * [RDoc](http://rdoc.info/projects/lolcommits/lolcommits-uploldz)
101
+ * [CI](https://github.com/lolcommits/lolcommits-uploldz/actions/workflows/ci.yml)
102
+ * [RDoc](https://rubydoc.info/gems/lolcommits-uploldz)
108
103
  * [Issues](http://github.com/lolcommits/lolcommits-uploldz/issues)
109
104
  * [Report a bug](http://github.com/lolcommits/lolcommits-uploldz/issues/new)
110
105
  * [Gem](http://rubygems.org/gems/lolcommits-uploldz)
data/Rakefile CHANGED
@@ -18,4 +18,4 @@ Rake::TestTask.new(:test) do |t|
18
18
  t.test_files = FileList["test/**/*_test.rb"]
19
19
  end
20
20
 
21
- task :default => ['test']
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,13 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rest_client'
4
- require 'base64'
5
- require 'lolcommits/plugin/base'
3
+ require "rest-client"
4
+ require "base64"
5
+ require "lolcommits/plugin/base"
6
6
 
7
7
  module Lolcommits
8
8
  module Plugin
9
9
  class Uploldz < Base
10
-
11
10
  attr_accessor :endpoint
12
11
 
13
12
  ##
@@ -96,7 +95,7 @@ module Lolcommits
96
95
  password = configuration[:optional_http_auth_password]
97
96
  return unless user || password
98
97
 
99
- 'Basic ' + Base64.encode64("#{user}:#{password}").chomp
98
+ "Basic " + Base64.encode64("#{user}:#{password}").chomp
100
99
  end
101
100
  end
102
101
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lolcommits
4
4
  module Uploldz
5
- VERSION = "0.6.0".freeze
5
+ VERSION = "0.6.1".freeze
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lolcommits/uploldz/version'
4
- require 'lolcommits/plugin/uploldz'
3
+ require "lolcommits/uploldz/version"
4
+ require "lolcommits/plugin/uploldz"
@@ -5,9 +5,9 @@ require 'lolcommits/uploldz/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "lolcommits-uploldz"
7
7
  spec.version = Lolcommits::Uploldz::VERSION
8
- spec.authors = ["Matthew Hutchinson"]
9
- spec.email = ["matt@hiddenloop.com"]
10
- spec.summary = %q{Uploads lolcommits to a remote server}
8
+ spec.authors = [ "Matthew Hutchinson" ]
9
+ spec.email = [ "matt@hiddenloop.com" ]
10
+ spec.summary = %q(Uploads lolcommits to a remote server)
11
11
  spec.homepage = "https://github.com/lolcommits/lolcommits-uploldz"
12
12
  spec.license = "LGPL-3.0"
13
13
 
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.metadata = {
20
20
  "homepage_uri" => "https://github.com/lolcommits/lolcommits-uploldz",
21
+ "documentation_uri" => "https://rubydoc.info/gems/lolcommits-uploldz",
21
22
  "changelog_uri" => "https://github.com/lolcommits/lolcommits-uploldz/blob/master/CHANGELOG.md",
22
23
  "source_code_uri" => "https://github.com/lolcommits/lolcommits-uploldz",
23
24
  "bug_tracker_uri" => "https://github.com/lolcommits/lolcommits-uploldz/issues",
@@ -28,7 +29,7 @@ Gem::Specification.new do |spec|
28
29
  spec.test_files = `git ls-files -- {test,features}/*`.split("\n")
29
30
  spec.bindir = "bin"
30
31
  spec.executables = []
31
- spec.require_paths = ["lib"]
32
+ spec.require_paths = [ "lib" ]
32
33
 
33
34
  spec.required_ruby_version = ">= 3.1"
34
35
 
Binary file
@@ -0,0 +1,116 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "test_helper"
4
+
5
+ describe Lolcommits::Plugin::Uploldz do
6
+ include Lolcommits::TestHelpers::GitRepo
7
+ include Lolcommits::TestHelpers::FakeIO
8
+
9
+ def valid_enabled_config
10
+ {
11
+ enabled: true,
12
+ endpoint: "https://uploldz.com/uplol",
13
+ optional_http_auth_username: "joe",
14
+ optional_http_auth_password: "1234"
15
+ }
16
+ end
17
+
18
+ describe "initalizing" do
19
+ it "assigns runner and all plugin options" do
20
+ _(plugin.runner).wont_be_nil
21
+ _(plugin.options).must_equal [
22
+ :enabled,
23
+ :endpoint,
24
+ :optional_key,
25
+ :optional_http_auth_username,
26
+ :optional_http_auth_password
27
+ ]
28
+ end
29
+ end
30
+
31
+ describe "#enabled?" do
32
+ it "is false by default" do
33
+ _(plugin.enabled?).must_equal false
34
+ end
35
+
36
+ it "is true when configured" do
37
+ plugin.configuration = valid_enabled_config
38
+ _(plugin.enabled?).must_equal true
39
+ end
40
+ end
41
+
42
+ describe "run_capture_ready" do
43
+ before { commit_repo_with_message("first commit!") }
44
+ after { teardown_repo }
45
+
46
+ it "syncs lolcommits" do
47
+ captured_img_path = File.expand_path("./test/images/lolcommit.jpg")
48
+
49
+ in_repo do
50
+ plugin.configuration = valid_enabled_config
51
+ plugin.runner.lolcommit_path = captured_img_path
52
+
53
+ stub_request(:post, "https://uploldz.com/uplol").to_return(status: 200)
54
+
55
+ plugin.run_capture_ready
56
+
57
+ assert_requested :post, "https://uploldz.com/uplol", times: 1,
58
+ headers: { "Content-Type" => /multipart\/form-data/ } do |req|
59
+ _(req.body).must_match(/Content-Disposition: form-data;.+name="file"; filename="lolcommit.jpg"/)
60
+ _(req.body).must_match 'name="repo"'
61
+ _(req.body).must_match 'name="author_name"'
62
+ _(req.body).must_match 'name="author_email"'
63
+ _(req.body).must_match 'name="sha"'
64
+ _(req.body).must_match 'name="key"'
65
+ _(req.body).must_match "plugin-test-repo"
66
+ _(req.body).must_match "first commit!"
67
+ end
68
+ end
69
+ end
70
+ end
71
+
72
+ describe "configuration" do
73
+ it "allows plugin options to be configured" do
74
+ # enabled, endpoint, key, user, password
75
+ inputs = %w[
76
+ true
77
+ https://my-server.com/uplol
78
+ key-123
79
+ joe
80
+ 1337pass
81
+ ]
82
+ configured_plugin_options = {}
83
+
84
+ fake_io_capture(inputs: inputs) do
85
+ configured_plugin_options = plugin.configure_options!
86
+ end
87
+
88
+ _(configured_plugin_options).must_equal({
89
+ enabled: true,
90
+ endpoint: "https://my-server.com/uplol",
91
+ optional_key: "key-123",
92
+ optional_http_auth_username: "joe",
93
+ optional_http_auth_password: "1337pass"
94
+ })
95
+ end
96
+
97
+ describe "#valid_configuration?" do
98
+ it "returns false for an invalid configuration" do
99
+ plugin.configuration = { endpoint: "gibberish" }
100
+ _(plugin.valid_configuration?).must_equal false
101
+ end
102
+
103
+ it "returns true with a valid configuration" do
104
+ plugin.configuration = valid_enabled_config
105
+ _(plugin.valid_configuration?).must_equal true
106
+ end
107
+ end
108
+ end
109
+
110
+ private
111
+ def plugin
112
+ @plugin ||= Lolcommits::Plugin::Uploldz.new(
113
+ runner: Lolcommits::Runner.new
114
+ )
115
+ end
116
+ end
@@ -0,0 +1,18 @@
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
+ # plugin gem test libs
13
+ require "lolcommits/uploldz"
14
+ require "webmock/minitest"
15
+ require "minitest/autorun"
16
+
17
+ # swallow all debug output during test runs
18
+ def debug(msg); end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits-uploldz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.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: 2024-09-28 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: rest-client
@@ -103,35 +103,38 @@ executables: []
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
- - ".github/workflows/build.yml"
107
- - ".github/workflows/push_gem.yml"
106
+ - ".github/workflows/ci.yml"
108
107
  - ".gitignore"
109
- - ".simplecov"
110
- - ".travis.yml"
108
+ - ".quickhook/pre-commit/ruby-lint"
109
+ - ".rubocop.yml"
111
110
  - CHANGELOG.md
112
111
  - CODE_OF_CONDUCT.md
113
112
  - CONTRIBUTING.md
114
113
  - Gemfile
115
114
  - LICENSE
116
- - PULL_REQUEST_TEMPLATE.md
117
115
  - README.md
118
116
  - Rakefile
119
117
  - bin/console
118
+ - bin/rubocop
120
119
  - bin/setup
121
120
  - lib/lolcommits/plugin/uploldz.rb
122
121
  - lib/lolcommits/uploldz.rb
123
122
  - lib/lolcommits/uploldz/version.rb
124
123
  - lolcommits-uploldz.gemspec
124
+ - test/images/lolcommit.jpg
125
+ - test/lolcommits/plugin/uploldz_test.rb
126
+ - test/test_helper.rb
125
127
  homepage: https://github.com/lolcommits/lolcommits-uploldz
126
128
  licenses:
127
129
  - LGPL-3.0
128
130
  metadata:
129
131
  homepage_uri: https://github.com/lolcommits/lolcommits-uploldz
132
+ documentation_uri: https://rubydoc.info/gems/lolcommits-uploldz
130
133
  changelog_uri: https://github.com/lolcommits/lolcommits-uploldz/blob/master/CHANGELOG.md
131
134
  source_code_uri: https://github.com/lolcommits/lolcommits-uploldz
132
135
  bug_tracker_uri: https://github.com/lolcommits/lolcommits-uploldz/issues
133
136
  allowed_push_host: https://rubygems.org
134
- post_install_message:
137
+ post_install_message:
135
138
  rdoc_options: []
136
139
  require_paths:
137
140
  - lib
@@ -146,8 +149,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
149
  - !ruby/object:Gem::Version
147
150
  version: '0'
148
151
  requirements: []
149
- rubygems_version: 3.5.16
150
- signing_key:
152
+ rubygems_version: 3.5.22
153
+ signing_key:
151
154
  specification_version: 4
152
155
  summary: Uploads lolcommits to a remote server
153
- test_files: []
156
+ test_files:
157
+ - test/images/lolcommit.jpg
158
+ - test/lolcommits/plugin/uploldz_test.rb
159
+ - test/test_helper.rb
@@ -1,34 +0,0 @@
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
@@ -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/.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.1
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=a11f4b88e9bad7b922ca0ce5c70e369d1fd704c1b7c08c5b9e273e29a8c73345
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.