lolcommits-uploldz 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -1
- data/lib/lolcommits/uploldz/version.rb +1 -1
- data/lolcommits-uploldz.gemspec +1 -1
- data/test/lolcommits/plugin/uploldz_test.rb +15 -15
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bee544c23f02c94fdd7295ce65586d9db2d03801a5ffafd559b21deae86dc372
|
4
|
+
data.tar.gz: '0682a692c7c699b4ddf2bf7af8f5ce9284d7c22d82c18c3bed0b835666347b94'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d123d8a27c07ecba9084248c6eb126704c0bb87bb0a5fd28d80cfd7f530864b8b47e0139098e9d1c55c2167004d2b7af7caa6961d7a630ed0713d2849ce9a8bd
|
7
|
+
data.tar.gz: 9812f778e27c59a72fe1e9b4f941f62e04334d27a8f3d6ef4e1e12cb49197138cf8cb80628442bca18cd8ac562b6b584e713c2a526d85de32b621bcc1f0d3e7d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,10 @@ adheres to [Semantic Versioning][Semver].
|
|
9
9
|
|
10
10
|
- Your contribution here!
|
11
11
|
|
12
|
+
## [0.5.0] - 2020-01-24
|
13
|
+
### Removed
|
14
|
+
- Support for Ruby < 2.4 (older rubies no longer supported)
|
15
|
+
|
12
16
|
## [0.4.0] - 2019-08-25
|
13
17
|
### Changed
|
14
18
|
- Require an up-to-date `rest-client` (`>= 2.1.0`)
|
@@ -62,7 +66,8 @@ adheres to [Semantic Versioning][Semver].
|
|
62
66
|
### Changed
|
63
67
|
- Initial release
|
64
68
|
|
65
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.
|
69
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.5.0...HEAD
|
70
|
+
[0.5.0]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.4.0...v0.5.0
|
66
71
|
[0.4.0]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.3.0...v0.4.0
|
67
72
|
[0.3.0]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.2.0...v0.3.0
|
68
73
|
[0.2.0]: https://github.com/lolcommits/lolcommits-uploldz/compare/v0.1.1...v0.2.0
|
data/README.md
CHANGED
data/lolcommits-uploldz.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = []
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.required_ruby_version = ">= 2.
|
33
|
+
spec.required_ruby_version = ">= 2.4"
|
34
34
|
|
35
35
|
spec.add_runtime_dependency "rest-client", ">= 2.1.0"
|
36
36
|
spec.add_runtime_dependency "lolcommits", ">= 0.14.2"
|
@@ -31,8 +31,8 @@ describe Lolcommits::Plugin::Uploldz do
|
|
31
31
|
|
32
32
|
describe "initalizing" do
|
33
33
|
it "assigns runner and all plugin options" do
|
34
|
-
plugin.runner.must_equal runner
|
35
|
-
plugin.options.must_equal [
|
34
|
+
_(plugin.runner).must_equal runner
|
35
|
+
_(plugin.options).must_equal [
|
36
36
|
:enabled,
|
37
37
|
:endpoint,
|
38
38
|
:optional_key,
|
@@ -44,12 +44,12 @@ describe Lolcommits::Plugin::Uploldz do
|
|
44
44
|
|
45
45
|
describe "#enabled?" do
|
46
46
|
it "is false by default" do
|
47
|
-
plugin.enabled
|
47
|
+
_(plugin.enabled?).must_equal false
|
48
48
|
end
|
49
49
|
|
50
50
|
it "is true when configured" do
|
51
51
|
plugin.configuration = valid_enabled_config
|
52
|
-
plugin.enabled
|
52
|
+
_(plugin.enabled?).must_equal true
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
@@ -67,14 +67,14 @@ describe Lolcommits::Plugin::Uploldz do
|
|
67
67
|
|
68
68
|
assert_requested :post, "https://uploldz.com/uplol", times: 1,
|
69
69
|
headers: {'Content-Type' => /multipart\/form-data/ } do |req|
|
70
|
-
req.body.must_match(/Content-Disposition: form-data;.+name="file"; filename="lolcommit.jpg.+"/)
|
71
|
-
req.body.must_match 'name="repo"'
|
72
|
-
req.body.must_match 'name="author_name"'
|
73
|
-
req.body.must_match 'name="author_email"'
|
74
|
-
req.body.must_match 'name="sha"'
|
75
|
-
req.body.must_match 'name="key"'
|
76
|
-
req.body.must_match "plugin-test-repo"
|
77
|
-
req.body.must_match "first commit!"
|
70
|
+
_(req.body).must_match(/Content-Disposition: form-data;.+name="file"; filename="lolcommit.jpg.+"/)
|
71
|
+
_(req.body).must_match 'name="repo"'
|
72
|
+
_(req.body).must_match 'name="author_name"'
|
73
|
+
_(req.body).must_match 'name="author_email"'
|
74
|
+
_(req.body).must_match 'name="sha"'
|
75
|
+
_(req.body).must_match 'name="key"'
|
76
|
+
_(req.body).must_match "plugin-test-repo"
|
77
|
+
_(req.body).must_match "first commit!"
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|
@@ -96,7 +96,7 @@ describe Lolcommits::Plugin::Uploldz do
|
|
96
96
|
configured_plugin_options = plugin.configure_options!
|
97
97
|
end
|
98
98
|
|
99
|
-
configured_plugin_options.must_equal({
|
99
|
+
_(configured_plugin_options).must_equal({
|
100
100
|
enabled: true,
|
101
101
|
endpoint: "https://my-server.com/uplol",
|
102
102
|
optional_key: "key-123",
|
@@ -108,12 +108,12 @@ describe Lolcommits::Plugin::Uploldz do
|
|
108
108
|
describe "#valid_configuration?" do
|
109
109
|
it "returns false for an invalid configuration" do
|
110
110
|
plugin.configuration = { endpoint: "gibberish" }
|
111
|
-
plugin.valid_configuration
|
111
|
+
_(plugin.valid_configuration?).must_equal false
|
112
112
|
end
|
113
113
|
|
114
114
|
it "returns true with a valid configuration" do
|
115
115
|
plugin.configuration = valid_enabled_config
|
116
|
-
plugin.valid_configuration
|
116
|
+
_(plugin.valid_configuration?).must_equal true
|
117
117
|
end
|
118
118
|
end
|
119
119
|
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.
|
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:
|
11
|
+
date: 2020-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -167,14 +167,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
167
|
requirements:
|
168
168
|
- - ">="
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version: '2.
|
170
|
+
version: '2.4'
|
171
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
173
|
- - ">="
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
|
-
rubygems_version: 3.
|
177
|
+
rubygems_version: 3.1.2
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: Uploads lolcommits to a remote server
|