lolcommits-tumblr 0.4.1 → 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/tumblr/version.rb +1 -1
- data/lolcommits-tumblr.gemspec +1 -1
- data/test/lolcommits/plugin/tumblr_test.rb +7 -7
- 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: 4408b248dddb5998fd1f34b8a33700cbd64fba8ab72a26a3eedc99065bd3661a
|
4
|
+
data.tar.gz: 6feb2dfc6960157600ec8b9e8b6430052bae9cc3f73012bac7ae2e651d414177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b33cd5e2a684e246a4596d87459e9b8ec649dd6f6f0bca46d5a3d8f16c0bfbe808d2a2d98fbff32cbca128ca8ec2df008db7822fb3cbf9e3e2db2b23236ab4d
|
7
|
+
data.tar.gz: c2c460ed764f94669c6335a9dda5333c074a1c1885c5dda7ec285f3e142ffe46d872c860fdf6fc7b26e90c224528c0e6fc4a000a4ffa923839bce9559e88b4cb
|
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.1] - 2019-08-16
|
13
17
|
### Added
|
14
18
|
- allow erb captions, thanks to @xurizaemon
|
@@ -67,7 +71,8 @@ project adheres to [Semantic Versioning][Semver].
|
|
67
71
|
### Changed
|
68
72
|
- Initial release
|
69
73
|
|
70
|
-
[Unreleased]: https://github.com/lolcommits/lolcommits-tumblr/compare/v0.
|
74
|
+
[Unreleased]: https://github.com/lolcommits/lolcommits-tumblr/compare/v0.5.0...HEAD
|
75
|
+
[0.5.0]: https://github.com/lolcommits/lolcommits-tumblr/compare/v0.4.1...v0.5.0
|
71
76
|
[0.4.1]: https://github.com/lolcommits/lolcommits-tumblr/compare/v0.4.0...v0.4.1
|
72
77
|
[0.4.0]: https://github.com/lolcommits/lolcommits-tumblr/compare/v0.3.0...v0.4.0
|
73
78
|
[0.3.0]: https://github.com/lolcommits/lolcommits-tumblr/compare/v0.2.0...v0.3.0
|
data/README.md
CHANGED
data/lolcommits-tumblr.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('tumblr_client')
|
36
36
|
spec.add_runtime_dependency('webrick')
|
@@ -34,12 +34,12 @@ describe Lolcommits::Plugin::Tumblr do
|
|
34
34
|
|
35
35
|
describe "#enabled?" do
|
36
36
|
it "is false by default" do
|
37
|
-
plugin.enabled
|
37
|
+
_(plugin.enabled?).must_equal false
|
38
38
|
end
|
39
39
|
|
40
40
|
it "is true when configured" do
|
41
41
|
plugin.configuration = valid_enabled_config
|
42
|
-
plugin.enabled
|
42
|
+
_(plugin.enabled?).must_equal true
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -61,11 +61,11 @@ describe Lolcommits::Plugin::Tumblr do
|
|
61
61
|
)
|
62
62
|
|
63
63
|
output = fake_io_capture { plugin.run_capture_ready }
|
64
|
-
output.must_match "done! https://my-tumblr.tumblr.com/post/123456789"
|
64
|
+
_(output).must_match "done! https://my-tumblr.tumblr.com/post/123456789"
|
65
65
|
|
66
66
|
assert_requested :post, "https://api.tumblr.com/v2/blog/my-tumblr.tumblr.com/post", times: 1,
|
67
67
|
headers: { "Content-Type" => /multipart\/form-data/, "Accept" => "application/json" } do |req|
|
68
|
-
req.body.must_match 'filename="lolcommit.jpg'
|
68
|
+
_(req.body).must_match 'filename="lolcommit.jpg'
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
@@ -74,12 +74,12 @@ describe Lolcommits::Plugin::Tumblr do
|
|
74
74
|
describe "valid_configuration?" do
|
75
75
|
it "returns invalid config when partially configured" do
|
76
76
|
plugin.configuration = { tumblr_name: "fire" }
|
77
|
-
plugin.valid_configuration
|
77
|
+
_(plugin.valid_configuration?).must_equal false
|
78
78
|
end
|
79
79
|
|
80
80
|
it "returns true with a valid configuration" do
|
81
81
|
plugin.configuration = valid_enabled_config
|
82
|
-
plugin.valid_configuration
|
82
|
+
_(plugin.valid_configuration?).must_equal true
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
@@ -118,7 +118,7 @@ describe Lolcommits::Plugin::Tumblr do
|
|
118
118
|
configured_plugin_options = plugin.configure_options!
|
119
119
|
end
|
120
120
|
|
121
|
-
configured_plugin_options.must_equal({
|
121
|
+
_(configured_plugin_options).must_equal({
|
122
122
|
enabled: true,
|
123
123
|
access_token: "tumblr-access-token",
|
124
124
|
secret: "tumblr-secret",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-tumblr
|
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: tumblr_client
|
@@ -195,14 +195,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
195
|
requirements:
|
196
196
|
- - ">="
|
197
197
|
- !ruby/object:Gem::Version
|
198
|
-
version: '2.
|
198
|
+
version: '2.4'
|
199
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
201
|
- - ">="
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
|
-
rubygems_version: 3.
|
205
|
+
rubygems_version: 3.1.2
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Post lolcommits to Tumblr
|