lolcommits-loltext 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51d6d7c8bb936f01b7547edc01220ae9039f5e9e
|
4
|
+
data.tar.gz: 4c0d237d372dc538e31cb79121fed7266e15d1b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7f36e5c3b3f66683861f32824e4885c6a90540eb74a1f89589f3caa0e52ff5f01f9b343c22e2c0e5f91451c5aaac226a3aaa77d2fd955da3dde8cf7ac00c78b
|
7
|
+
data.tar.gz: 1a543e9e05fc31bf792480bcbcc5a36566afbfa0108f93849acae8204f5b72d2a72285f9f5db13a05660caf9c995a05ca89e6873d29b733702804bba1af7fe94
|
@@ -18,12 +18,13 @@ module Lolcommits
|
|
18
18
|
end
|
19
19
|
|
20
20
|
# Returns position(s) of when this plugin should run during the capture
|
21
|
-
# process.
|
21
|
+
# process. We want to add text to the image after capturing, but before
|
22
|
+
# capture is ready for sharing.
|
22
23
|
#
|
23
|
-
# @return [Array] the position(s) (:
|
24
|
+
# @return [Array] the position(s) (:post_capture)
|
24
25
|
#
|
25
26
|
def self.runner_order
|
26
|
-
[:
|
27
|
+
[:post_capture]
|
27
28
|
end
|
28
29
|
|
29
30
|
##
|
@@ -82,7 +83,7 @@ module Lolcommits
|
|
82
83
|
#
|
83
84
|
# Annotates the image with the git commit message and sha text
|
84
85
|
#
|
85
|
-
def
|
86
|
+
def run_post_capture
|
86
87
|
debug 'Annotating image via MiniMagick'
|
87
88
|
image = MiniMagick::Image.open(runner.main_image)
|
88
89
|
if config_option(:overlay, :enabled)
|
data/lolcommits-loltext.gemspec
CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
|
36
36
|
spec.required_ruby_version = ">= 2.0.0"
|
37
37
|
|
38
|
-
spec.add_development_dependency "lolcommits", ">= 0.9.
|
38
|
+
spec.add_development_dependency "lolcommits", ">= 0.9.5"
|
39
39
|
spec.add_development_dependency "bundler"
|
40
40
|
spec.add_development_dependency "rake"
|
41
41
|
spec.add_development_dependency "minitest"
|
@@ -14,7 +14,7 @@ describe Lolcommits::Plugin::Loltext do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'should run on post capturing' do
|
17
|
-
::Lolcommits::Plugin::Loltext.runner_order.must_equal [:
|
17
|
+
::Lolcommits::Plugin::Loltext.runner_order.must_equal [:post_capture]
|
18
18
|
end
|
19
19
|
|
20
20
|
describe 'default font' do
|
@@ -34,13 +34,13 @@ describe Lolcommits::Plugin::Loltext do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def plugin
|
37
|
-
@plugin ||= Lolcommits::Plugin::Loltext.new(runner)
|
37
|
+
@plugin ||= Lolcommits::Plugin::Loltext.new(runner: runner)
|
38
38
|
end
|
39
39
|
|
40
40
|
def valid_enabled_config
|
41
41
|
@config ||= OpenStruct.new(
|
42
42
|
read_configuration: {
|
43
|
-
|
43
|
+
'loltext'=> { 'enabled' => true }
|
44
44
|
}
|
45
45
|
)
|
46
46
|
end
|
@@ -58,7 +58,7 @@ describe Lolcommits::Plugin::Loltext do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
it 'should true when configured' do
|
61
|
-
plugin.
|
61
|
+
plugin.config = valid_enabled_config
|
62
62
|
plugin.enabled?.must_equal true
|
63
63
|
end
|
64
64
|
end
|
@@ -117,7 +117,7 @@ describe Lolcommits::Plugin::Loltext do
|
|
117
117
|
end
|
118
118
|
|
119
119
|
it 'should indicate when configured' do
|
120
|
-
plugin.
|
120
|
+
plugin.config = valid_enabled_config
|
121
121
|
plugin.configured?.must_equal true
|
122
122
|
end
|
123
123
|
|
@@ -127,7 +127,7 @@ describe Lolcommits::Plugin::Loltext do
|
|
127
127
|
end
|
128
128
|
|
129
129
|
it 'should be true for a valid configuration' do
|
130
|
-
plugin.
|
130
|
+
plugin.config = valid_enabled_config
|
131
131
|
plugin.valid_configuration?.must_equal true
|
132
132
|
end
|
133
133
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-loltext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Hutchinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lolcommits
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.5
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.
|
26
|
+
version: 0.9.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|