lolcommits-uploldz 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +56 -0
- data/.quickhook/pre-commit/ruby-lint +3 -0
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +7 -1
- data/Gemfile +5 -1
- data/README.md +27 -32
- data/Rakefile +1 -1
- data/bin/rubocop +5 -0
- data/lib/lolcommits/plugin/uploldz.rb +4 -5
- data/lib/lolcommits/uploldz/version.rb +1 -1
- data/lib/lolcommits/uploldz.rb +2 -2
- data/lolcommits-uploldz.gemspec +5 -4
- data/test/images/lolcommit.jpg +0 -0
- data/test/lolcommits/plugin/uploldz_test.rb +116 -0
- data/test/test_helper.rb +18 -0
- metadata +18 -12
- data/.github/workflows/build.yml +0 -34
- data/.github/workflows/push_gem.yml +0 -25
- data/.simplecov +0 -9
- data/.travis.yml +0 -29
- data/PULL_REQUEST_TEMPLATE.md +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9839173622884d12ac7c3f1243af76787ca33081eeb49cb5b67f574b8c6ea308
|
4
|
+
data.tar.gz: 7b3153491fd97da4968eb71a7115532426c96775d2c88085eac45cce4a2a30b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/.rubocop.yml
ADDED
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.
|
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
data/README.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
# Lolcommits Uploldz
|
2
2
|
|
3
|
-
[](https://github.com/lolcommits/lolcommits-uploldz/actions/workflows/ci.yml)
|
4
4
|
[](http://rubygems.org/gems/lolcommits-uploldz)
|
5
5
|
[](https://depfu.com/github/lolcommits/lolcommits-uploldz)
|
6
6
|
|
7
|
-
[lolcommits](https://lolcommits.github.io/) takes a snapshot with your
|
8
|
-
|
9
|
-
|
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
|
-
|
13
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
82
|
-
|
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
|
-
|
87
|
-
|
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
|
-
|
94
|
-
|
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/
|
107
|
-
* [RDoc](
|
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
data/bin/rubocop
ADDED
@@ -1,13 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
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
|
-
|
98
|
+
"Basic " + Base64.encode64("#{user}:#{password}").chomp
|
100
99
|
end
|
101
100
|
end
|
102
101
|
end
|
data/lib/lolcommits/uploldz.rb
CHANGED
data/lolcommits-uploldz.gemspec
CHANGED
@@ -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
|
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
|
data/test/test_helper.rb
ADDED
@@ -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.
|
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-
|
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/
|
107
|
-
- ".github/workflows/push_gem.yml"
|
106
|
+
- ".github/workflows/ci.yml"
|
108
107
|
- ".gitignore"
|
109
|
-
- ".
|
110
|
-
- ".
|
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.
|
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
|
data/.github/workflows/build.yml
DELETED
@@ -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
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
|
data/PULL_REQUEST_TEMPLATE.md
DELETED
@@ -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.
|