lolcommits-dotcom 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: 903b2d2b7084fc80fe09656d345514eb602be10c81b84741d558bdb4a7be9117
4
- data.tar.gz: e22564c4c0c4135ae1debfb65359a9f34491f22513b067dd2f0bfacd1f0a075e
3
+ metadata.gz: '0843e12a03d1f4e54661982f835b70d8cda7cbeb20c2688cd26cb13c45ecc503'
4
+ data.tar.gz: 5706f51ae8baa9705ebc67fdf55d2ffd334476f3c06e45bb4b941aa56319bd6f
5
5
  SHA512:
6
- metadata.gz: 192d6547da428e65b864cb7be16eee645a613874e2e46527a618433dc0dc3642174cc30a9ea8425880febca2840a3ae0323ec39e5e80a2b279efde1042a2de7c
7
- data.tar.gz: ed6163c52f3022792e4e1a86769e6e4c7312db82ebfdb8ab9fa0a8a828fe1cddbd0c700d24cf79a1b20ab504f6b96c769f3f5b518396e90c2f12b7d3e1b30c4b
6
+ metadata.gz: df027fece1e54db1c26bfaa237832c1a7ba1b7418ea37ef4ee17abeabbd23c1883ba5179cc32767666a50c7bdee49776a9d62d3997a0a83a095213ead0508cfe
7
+ data.tar.gz: 5f9a87a515febd8e467205cd32cf0000c25a0d77386aa2ab19c80b85ea05f9d24e6d9b6cd4bc1a96c4220df8b2605eb88b19dbc988425b5e7d1ada0104996eef
@@ -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 @@ 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.4.0...HEAD
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
@@ -19,7 +19,7 @@ pull-requests are welcome!
19
19
 
20
20
  ## Requirements
21
21
 
22
- * Ruby >= 2.3
22
+ * Ruby >= 2.4
23
23
  * A webcam
24
24
  * [ImageMagick](http://www.imagemagick.org)
25
25
  * [ffmpeg](https://www.ffmpeg.org) (optional) for animated gif capturing
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lolcommits
4
4
  module Dotcom
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,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?.must_equal false
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?.must_equal true
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?.must_equal false
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?.must_equal true
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.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-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.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