lolcommits-uploldz 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '079cd7224d6d8e332e9a123f58d26c8bcc8d811d4bf46a0593892ccdb2a4a7c9'
4
- data.tar.gz: 520793261e7f3cdb66c345a6c3b5a4c5c3580c6e98fffd26eb8176818641ab04
3
+ metadata.gz: bee544c23f02c94fdd7295ce65586d9db2d03801a5ffafd559b21deae86dc372
4
+ data.tar.gz: '0682a692c7c699b4ddf2bf7af8f5ce9284d7c22d82c18c3bed0b835666347b94'
5
5
  SHA512:
6
- metadata.gz: 7ef5bdd4e6886022ca9089d8c9b0cf946d1347e3c82bcccc1e00244aae1b265700faeadb4c9424d1b26fefead984a1ba2c1cbff34cde95b254f151db7f6eb2e9
7
- data.tar.gz: cb57d1e675a863a2e45bc8db0ee579cc1ab577f35b1790ee84bc5ed4c29eb8a246949c24bbdc0a0ca8369aba2633bb28bd8a5b9490692fe23896c8e9e3b5857b
6
+ metadata.gz: d123d8a27c07ecba9084248c6eb126704c0bb87bb0a5fd28d80cfd7f530864b8b47e0139098e9d1c55c2167004d2b7af7caa6961d7a630ed0713d2849ce9a8bd
7
+ data.tar.gz: 9812f778e27c59a72fe1e9b4f941f62e04334d27a8f3d6ef4e1e12cb49197138cf8cb80628442bca18cd8ac562b6b584e713c2a526d85de32b621bcc1f0d3e7d
@@ -2,10 +2,10 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.3.8
6
- - 2.4.6
7
- - 2.5.5
8
- - 2.6.3
5
+ - 2.4.9
6
+ - 2.5.7
7
+ - 2.6.5
8
+ - 2.7.0
9
9
  - ruby-head
10
10
 
11
11
  before_install:
@@ -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.4.0...HEAD
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
@@ -27,7 +27,7 @@ password).
27
27
 
28
28
  ## Requirements
29
29
 
30
- * Ruby >= 2.3
30
+ * Ruby >= 2.4
31
31
  * A webcam
32
32
  * [ImageMagick](http://www.imagemagick.org)
33
33
  * [ffmpeg](https://www.ffmpeg.org) (optional) for animated gif capturing
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lolcommits
4
4
  module Uploldz
5
- VERSION = "0.4.0".freeze
5
+ VERSION = "0.5.0".freeze
6
6
  end
7
7
  end
@@ -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.3"
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?.must_equal false
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?.must_equal true
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?.must_equal false
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?.must_equal true
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.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: 2019-08-25 00:00:00.000000000 Z
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.3'
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.0.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