lolcommits-protonet 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/protonet/version.rb +1 -1
- data/lolcommits-protonet.gemspec +1 -1
- data/test/lolcommits/plugin/protonet_test.rb +8 -8
- 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: 933be7614d7e38ac4345405e52078c3e2cac8f1ee20b8b4baa5c76a646559f54
|
4
|
+
data.tar.gz: 80cea1cdecf071bfcdf806ec0e32ab1b4db4f66a02d4e3e5456c4c3a2ae00cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00cd34bdaa1e7f0b9581dc369a1f301fe8a6114042b096b83fa1c8e1cfce691f0845a8fd569622fbf202cc73df1ae5976ede665bbb2da72e4b48fc0397d9e193
|
7
|
+
data.tar.gz: c47bc37533f22263ca994166ec1b716efa8cffc76140d146fe19243dbb3ee83cf1b6add0cd7b40f730ea693295fa88042d2f77f95e8e8e2d8b287b2dd6430cbd
|
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`)
|
@@ -63,7 +67,8 @@ adheres to [Semantic Versioning][Semver].
|
|
63
67
|
### Changed
|
64
68
|
- Initial release
|
65
69
|
|
66
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.
|
70
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.5.0...HEAD
|
71
|
+
[0.5.0]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.4.0...v0.5.0
|
67
72
|
[0.4.0]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.3.0...v0.4.0
|
68
73
|
[0.3.0]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.2.0...v0.3.0
|
69
74
|
[0.2.0]: https://github.com/lolcommits/lolcommits-protonet/compare/v0.1.1...v0.2.0
|
data/README.md
CHANGED
data/lolcommits-protonet.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"
|
@@ -33,19 +33,19 @@ describe Lolcommits::Plugin::Protonet do
|
|
33
33
|
|
34
34
|
describe "initalizing" do
|
35
35
|
it "assigns runner and all plugin options" do
|
36
|
-
plugin.runner.must_equal runner
|
37
|
-
plugin.options.must_equal [:enabled, :api_endpoint, :api_token]
|
36
|
+
_(plugin.runner).must_equal runner
|
37
|
+
_(plugin.options).must_equal [:enabled, :api_endpoint, :api_token]
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe "#enabled?" do
|
42
42
|
it "is false by default" do
|
43
|
-
plugin.enabled
|
43
|
+
_(plugin.enabled?).must_equal false
|
44
44
|
end
|
45
45
|
|
46
46
|
it "is true when configured" do
|
47
47
|
plugin.configuration = valid_enabled_config
|
48
|
-
plugin.enabled
|
48
|
+
_(plugin.enabled?).must_equal true
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -63,9 +63,9 @@ describe Lolcommits::Plugin::Protonet do
|
|
63
63
|
|
64
64
|
assert_requested :post, api_endpoint, times: 1,
|
65
65
|
headers: {'Content-Type' => /multipart\/form-data/ } do |req|
|
66
|
-
req.body.must_match(/Content-Disposition: form-data;.+name="files\[\]"; filename="lolcommit.jpg.+"/)
|
67
|
-
req.body.must_match 'name="message"'
|
68
|
-
req.body.must_match "plugin-test-repo"
|
66
|
+
_(req.body).must_match(/Content-Disposition: form-data;.+name="files\[\]"; filename="lolcommit.jpg.+"/)
|
67
|
+
_(req.body).must_match 'name="message"'
|
68
|
+
_(req.body).must_match "plugin-test-repo"
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
@@ -91,7 +91,7 @@ describe Lolcommits::Plugin::Protonet do
|
|
91
91
|
configured_plugin_options = plugin.configure_options!
|
92
92
|
end
|
93
93
|
|
94
|
-
configured_plugin_options.must_equal({
|
94
|
+
_(configured_plugin_options).must_equal({
|
95
95
|
enabled: true,
|
96
96
|
api_endpoint: api_endpoint,
|
97
97
|
api_token: inputs[2]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-protonet
|
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: Posts lolcommits to a Protonet box
|