lolcommits-sample_plugin 0.3.0 → 0.4.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/sample_plugin/version.rb +1 -1
- data/lolcommits-plugin-sample.gemspec +1 -1
- data/test/lolcommits/plugin/sample_plugin_test.rb +9 -8
- 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: e0ffe9fd14e59f028f2881574a9c751c7f7a30eef2389ed4b318764af767788c
|
4
|
+
data.tar.gz: f178c6cd63b5eb23dfd5099018d24172802a8f799bce8d25e876af3d5ba68402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5624a9283d099d28f88c409a82eeda9080149dbdcdbf885e15431540701080a8aff37f3fdac522c8c9132bdfe7238bd36d6a8d76c3e9a0f9e8b6832c7633b76
|
7
|
+
data.tar.gz: 7fd9f771eb7479ecc947f12b5d9dd25e0b88bffe802e1eb611a8700e8efda57249d528d186c70aebdc950a132a96ddfac1be24933811f97f144eb43bee7448e6
|
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.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.
|
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.
|
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
|
@@ -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 }.
|
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
|
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
|
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
|
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
|
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.
|
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:
|
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.
|
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.
|
148
|
+
rubygems_version: 3.1.2
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Example gem for lolcommits plugin development
|