lolcommits-dotcom 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/dotcom/version.rb +1 -1
- data/lolcommits-dotcom.gemspec +1 -1
- data/test/lolcommits/plugin/dotcom_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: '0843e12a03d1f4e54661982f835b70d8cda7cbeb20c2688cd26cb13c45ecc503'
|
4
|
+
data.tar.gz: 5706f51ae8baa9705ebc67fdf55d2ffd334476f3c06e45bb4b941aa56319bd6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df027fece1e54db1c26bfaa237832c1a7ba1b7418ea37ef4ee17abeabbd23c1883ba5179cc32767666a50c7bdee49776a9d62d3997a0a83a095213ead0508cfe
|
7
|
+
data.tar.gz: 5f9a87a515febd8e467205cd32cf0000c25a0d77386aa2ab19c80b85ea05f9d24e6d9b6cd4bc1a96c4220df8b2605eb88b19dbc988425b5e7d1ada0104996eef
|
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-23
|
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`)
|
@@ -72,7 +76,8 @@ project adheres to [Semantic Versioning][Semver].
|
|
72
76
|
### Changed
|
73
77
|
- Initial release
|
74
78
|
|
75
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.
|
79
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.5.0...HEAD
|
80
|
+
[0.5.0]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.4.0...v0.5.0
|
76
81
|
[0.4.0]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.3.2...v0.4.0
|
77
82
|
[0.3.2]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.3.1...v0.3.2
|
78
83
|
[0.3.1]: https://github.com/lolcommits/lolcommits-dotcom/compare/v0.3.0...v0.3.1
|
data/README.md
CHANGED
data/lolcommits-dotcom.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,19 +31,19 @@ describe Lolcommits::Plugin::Dotcom 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 [:enabled, :api_key, :api_secret, :repo_id]
|
34
|
+
_(plugin.runner).must_equal runner
|
35
|
+
_(plugin.options).must_equal [:enabled, :api_key, :api_secret, :repo_id]
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
describe "#enabled?" do
|
40
40
|
it "is false by default" do
|
41
|
-
plugin.enabled
|
41
|
+
_(plugin.enabled?).must_equal false
|
42
42
|
end
|
43
43
|
|
44
44
|
it "is true when configured" do
|
45
45
|
plugin.configuration = valid_enabled_config
|
46
|
-
plugin.enabled
|
46
|
+
_(plugin.enabled?).must_equal true
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -62,14 +62,14 @@ describe Lolcommits::Plugin::Dotcom do
|
|
62
62
|
"https://lolcommits.com/git_commits.json",
|
63
63
|
times: 1,
|
64
64
|
headers: {'Content-Type' => /multipart\/form-data/ } do |req|
|
65
|
-
req.body.must_match 'name="git_commit[sha]"'
|
66
|
-
req.body.must_match 'name="git_commit[repo_external_id]"'
|
67
|
-
req.body.must_match(/Content-Disposition: form-data;.+name="git_commit\[image\]"; filename="lolcommit.jpg.+"/)
|
68
|
-
req.body.must_match 'name="key"'
|
69
|
-
req.body.must_match 'name="t"'
|
70
|
-
req.body.must_match 'name="token"'
|
71
|
-
req.body.must_match 'aaa8e2404ef6013556db5a9828apikey'
|
72
|
-
req.body.must_match 'aaa8e2404ef6013556db5a9828repoid'
|
65
|
+
_(req.body).must_match 'name="git_commit[sha]"'
|
66
|
+
_(req.body).must_match 'name="git_commit[repo_external_id]"'
|
67
|
+
_(req.body).must_match(/Content-Disposition: form-data;.+name="git_commit\[image\]"; filename="lolcommit.jpg.+"/)
|
68
|
+
_(req.body).must_match 'name="key"'
|
69
|
+
_(req.body).must_match 'name="t"'
|
70
|
+
_(req.body).must_match 'name="token"'
|
71
|
+
_(req.body).must_match 'aaa8e2404ef6013556db5a9828apikey'
|
72
|
+
_(req.body).must_match 'aaa8e2404ef6013556db5a9828repoid'
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
@@ -90,7 +90,7 @@ describe Lolcommits::Plugin::Dotcom do
|
|
90
90
|
configured_plugin_options = plugin.configure_options!
|
91
91
|
end
|
92
92
|
|
93
|
-
configured_plugin_options.must_equal({
|
93
|
+
_(configured_plugin_options).must_equal({
|
94
94
|
enabled: true,
|
95
95
|
api_key: "aaa8e2404ef6013556db5a9828apikey",
|
96
96
|
api_secret: "aaa8e2404ef6013556db5a9apisecret",
|
@@ -101,12 +101,12 @@ describe Lolcommits::Plugin::Dotcom do
|
|
101
101
|
describe "#valid_configuration?" do
|
102
102
|
it "returns false for an invalid configuration" do
|
103
103
|
plugin.configuration = { repo_id: "gibberish" }
|
104
|
-
plugin.valid_configuration
|
104
|
+
_(plugin.valid_configuration?).must_equal false
|
105
105
|
end
|
106
106
|
|
107
107
|
it "returns true with a valid configuration" do
|
108
108
|
plugin.configuration = valid_enabled_config
|
109
|
-
plugin.valid_configuration
|
109
|
+
_(plugin.valid_configuration?).must_equal true
|
110
110
|
end
|
111
111
|
end
|
112
112
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-dotcom
|
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-23 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
|