lolcommits-sample_plugin 0.3.0 → 0.4.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: 012e40f9cc88085939e10c8fe64b3956fc3534f6a9996c0de8876a4cb03108d8
4
- data.tar.gz: 74dfbd40082fd6f60132b4db81b3874b58f2f52c59ca51f800f152104f8272c3
3
+ metadata.gz: e0ffe9fd14e59f028f2881574a9c751c7f7a30eef2389ed4b318764af767788c
4
+ data.tar.gz: f178c6cd63b5eb23dfd5099018d24172802a8f799bce8d25e876af3d5ba68402
5
5
  SHA512:
6
- metadata.gz: 9ac9ae23daae6bebfb0eb55abdbc1af77250ce3995baacf7e197f491c5ff2cd190a2965c7896c375bfe18f6411688fe43a76b24cc16bf017340b202498789559
7
- data.tar.gz: 162a0ad8da9e1bfc1ee52b293d2a9ca670e2c3f53c6adc6a6869501d9fa530bb4842eb04059c4e65ce3d2aea8314f8563d0855416c141a65a2ced2cf410dbddb
6
+ metadata.gz: e5624a9283d099d28f88c409a82eeda9080149dbdcdbf885e15431540701080a8aff37f3fdac522c8c9132bdfe7238bd36d6a8d76c3e9a0f9e8b6832c7633b76
7
+ data.tar.gz: 7fd9f771eb7479ecc947f12b5d9dd25e0b88bffe802e1eb611a8700e8efda57249d528d186c70aebdc950a132a96ddfac1be24933811f97f144eb43bee7448e6
@@ -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.4.0] - 2020-01-24
13
+ ### Removed
14
+ - Support for Ruby < 2.4 (older rubies no longer supported)
15
+
12
16
  ## [0.3.0] - 2019-05-20
13
17
  ### Changed
14
18
  - Requires at least lolcommits >= `0.14.2`
@@ -54,7 +58,8 @@ project adheres to [Semantic Versioning][Semver].
54
58
  ### Changed
55
59
  - Initial release
56
60
 
57
- [Unreleased]: https://github.com/lolcommits/lolcommits-sample_plugin/compare/v0.3.0...HEAD
61
+ [Unreleased]: https://github.com/lolcommits/lolcommits-sample_plugin/compare/v0.4.0...HEAD
62
+ [0.4.0]: https://github.com/lolcommits/lolcommits-sample_plugin/compare/v0.3.0...v0.4.0
58
63
  [0.3.0]: https://github.com/lolcommits/lolcommits-sample_plugin/compare/v0.2.0...v0.3.0
59
64
  [0.2.0]: https://github.com/lolcommits/lolcommits-sample_plugin/compare/v0.1.2...v0.2.0
60
65
  [0.1.2]: https://github.com/lolcommits/lolcommits-sample_plugin/compare/v0.1.1...v0.1.2
data/README.md CHANGED
@@ -227,7 +227,7 @@ repo](https://github.com/lolcommits/lolcommits-sample_plugin/blob/master/test/lo
227
227
 
228
228
  ## Requirements
229
229
 
230
- * Ruby >= 2.3
230
+ * Ruby >= 2.4
231
231
  * A webcam
232
232
  * [ImageMagick](http://www.imagemagick.org)
233
233
  * [ffmpeg](https://www.ffmpeg.org) (optional) for animated gif capturing
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lolcommits
4
4
  module SamplePlugin
5
- VERSION = "0.3.0".freeze
5
+ VERSION = "0.4.0".freeze
6
6
  end
7
7
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = []
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.required_ruby_version = ">= 2.3"
29
+ spec.required_ruby_version = ">= 2.4"
30
30
 
31
31
  spec.add_runtime_dependency "lolcommits", ">= 0.14.2"
32
32
 
@@ -36,7 +36,7 @@ describe Lolcommits::Plugin::SamplePlugin do
36
36
 
37
37
  it 'outputs a message to stdout' do
38
38
  in_repo do
39
- Proc.new { plugin.run_pre_capture }.
39
+ _(Proc.new { plugin.run_pre_capture }).
40
40
  must_output "✨ Say cheese 😁 !\n"
41
41
  end
42
42
  end
@@ -50,7 +50,8 @@ describe Lolcommits::Plugin::SamplePlugin do
50
50
  it 'outputs a message to stdout' do
51
51
  plugin.configuration = valid_enabled_config
52
52
  in_repo do
53
- Proc.new { plugin.run_post_capture }.must_output "📸 📸 📸 📸 📸 Snap!\n"
53
+ _(Proc.new { plugin.run_post_capture }).
54
+ must_output "📸 📸 📸 📸 📸 Snap!\n"
54
55
  end
55
56
  end
56
57
 
@@ -63,7 +64,7 @@ describe Lolcommits::Plugin::SamplePlugin do
63
64
 
64
65
  it 'outputs a message to stdout' do
65
66
  in_repo do
66
- Proc.new { plugin.run_capture_ready }.
67
+ _(Proc.new { plugin.run_capture_ready }).
67
68
  must_output "wow! #{last_commit.sha[0..10]} at /path/to/lolcommit.jpg is your best looking commit yet!\n(it was an image!)\n"
68
69
  end
69
70
  end
@@ -73,12 +74,12 @@ describe Lolcommits::Plugin::SamplePlugin do
73
74
 
74
75
  describe '#enabled?' do
75
76
  it 'returns be false by default' do
76
- plugin.enabled?.must_equal false
77
+ _(plugin.enabled?).must_equal false
77
78
  end
78
79
 
79
80
  it 'returns true when configured' do
80
81
  plugin.configuration = valid_enabled_config
81
- plugin.enabled?.must_equal true
82
+ _(plugin.enabled?).must_equal true
82
83
  end
83
84
  end
84
85
 
@@ -90,17 +91,17 @@ describe Lolcommits::Plugin::SamplePlugin do
90
91
  configured_plugin_options = plugin.configure_options!
91
92
  end
92
93
 
93
- configured_plugin_options.must_equal(valid_enabled_config)
94
+ _(configured_plugin_options).must_equal(valid_enabled_config)
94
95
  end
95
96
 
96
97
  describe '#valid_configuration?' do
97
98
  it 'returns false without config set' do
98
- plugin.valid_configuration?.must_equal(false)
99
+ _(plugin.valid_configuration?).must_equal(false)
99
100
  end
100
101
 
101
102
  it 'returns true for a valid configuration' do
102
103
  plugin.configuration = valid_enabled_config
103
- plugin.valid_configuration?.must_equal true
104
+ _(plugin.valid_configuration?).must_equal true
104
105
  end
105
106
  end
106
107
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits-sample_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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-05-20 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: lolcommits
@@ -138,14 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="
140
140
  - !ruby/object:Gem::Version
141
- version: '2.3'
141
+ version: '2.4'
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.0.3
148
+ rubygems_version: 3.1.2
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Example gem for lolcommits plugin development