lolcommits-lolsrv 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/lolsrv/version.rb +1 -1
- data/lolcommits-lolsrv.gemspec +1 -1
- data/test/lolcommits/plugin/lolsrv_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: 4d5eb7a731797cfabe3d7f16fa920dd9b08b3b0ee5ec3c6b67aa7cdaa4270005
|
4
|
+
data.tar.gz: 49c43cc1ddc3ac9153de85cc16c10f09de9295b476d6fa0782512083c9ed959d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15c1edb56209e0eb7e6fb8f17e2a3bdee9ee5af297234b972b38a0d31104bcec2f37626f5a65c962dd12c264dd01bc2b64e4c1723f14575db4e67f90160957ff
|
7
|
+
data.tar.gz: d2090478125f5f97af6fbad2839e1f0236949dff9347c8a67df1a24c61ee273a522f6a4e9bf1b28958ca5cee8c4cdbeb17f2a35df1eb2d71ba92ce6930b08b1d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,10 @@ project 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`)
|
@@ -76,7 +80,8 @@ project adheres to [Semantic Versioning][Semver].
|
|
76
80
|
### Changed
|
77
81
|
- Initial release
|
78
82
|
|
79
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits-lolsrv/compare/v0.
|
83
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits-lolsrv/compare/v0.5.0...HEAD
|
84
|
+
[0.5.0]: https://github.com/lolcommits/lolcommits-lolsrv/compare/v0.4.0...v0.5.0
|
80
85
|
[0.4.0]: https://github.com/lolcommits/lolcommits-lolsrv/compare/v0.3.0...v0.4.0
|
81
86
|
[0.3.0]: https://github.com/lolcommits/lolcommits-lolsrv/compare/v0.2.0...v0.3.0
|
82
87
|
[0.2.0]: https://github.com/lolcommits/lolcommits-lolsrv/compare/v0.1.1...v0.2.0
|
data/README.md
CHANGED
data/lolcommits-lolsrv.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = []
|
33
33
|
spec.require_paths = ["lib"]
|
34
34
|
|
35
|
-
spec.required_ruby_version = ">= 2.
|
35
|
+
spec.required_ruby_version = ">= 2.4"
|
36
36
|
|
37
37
|
spec.add_runtime_dependency "rest-client", ">= 2.1.0"
|
38
38
|
spec.add_runtime_dependency "lolcommits", ">= 0.14.2"
|
@@ -30,12 +30,12 @@ describe Lolcommits::Plugin::Lolsrv do
|
|
30
30
|
|
31
31
|
describe "#enabled?" do
|
32
32
|
it "it is disabled by default" do
|
33
|
-
plugin.enabled
|
33
|
+
_(plugin.enabled?).must_equal false
|
34
34
|
end
|
35
35
|
|
36
36
|
it "is true when configured" do
|
37
37
|
plugin.configuration = valid_enabled_config
|
38
|
-
plugin.enabled
|
38
|
+
_(plugin.enabled?).must_equal true
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
@@ -65,9 +65,9 @@ describe Lolcommits::Plugin::Lolsrv do
|
|
65
65
|
assert_requested :get, "https://lolsrv.com/lols", times: 1
|
66
66
|
assert_requested :post, "https://lolsrv.com/uplol", times: 1,
|
67
67
|
headers: {'Content-Type' => /multipart\/form-data/ } do |req|
|
68
|
-
req.body.must_match "sha456"
|
69
|
-
req.body.must_match "plugin-test-repo"
|
70
|
-
req.body.must_match "name=\"lol\"; filename="
|
68
|
+
_(req.body).must_match "sha456"
|
69
|
+
_(req.body).must_match "plugin-test-repo"
|
70
|
+
_(req.body).must_match "name=\"lol\"; filename="
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
@@ -97,7 +97,7 @@ describe Lolcommits::Plugin::Lolsrv do
|
|
97
97
|
configured_plugin_options = plugin.configure_options!
|
98
98
|
end
|
99
99
|
|
100
|
-
configured_plugin_options.must_equal({
|
100
|
+
_(configured_plugin_options).must_equal({
|
101
101
|
enabled: true,
|
102
102
|
server: "https://my-lolsrv.com"
|
103
103
|
})
|
@@ -106,12 +106,12 @@ describe Lolcommits::Plugin::Lolsrv do
|
|
106
106
|
describe "#valid_configuration?" do
|
107
107
|
it "returns false for an invalid configuration" do
|
108
108
|
plugin.configuration = { server: "gibberish" }
|
109
|
-
plugin.valid_configuration
|
109
|
+
_(plugin.valid_configuration?).must_equal false
|
110
110
|
end
|
111
111
|
|
112
112
|
it "returns true with a valid configuration" do
|
113
113
|
plugin.configuration = valid_enabled_config
|
114
|
-
plugin.valid_configuration
|
114
|
+
_(plugin.valid_configuration?).must_equal true
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-lolsrv
|
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
|
@@ -171,14 +171,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
171
|
requirements:
|
172
172
|
- - ">="
|
173
173
|
- !ruby/object:Gem::Version
|
174
|
-
version: '2.
|
174
|
+
version: '2.4'
|
175
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
181
|
+
rubygems_version: 3.1.2
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Sync lolcommits to a remote server
|