lolcommits-twitter 0.0.6 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5aa9f00e900c6713dfe500387b0a600b43e0190735a6f086083c3bb14cfe878
|
4
|
+
data.tar.gz: 175db4e516861fae3211fa8b8bba04c541a4bcc8f56a7271914b9e4e785eaccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef6b22c825267c5d33fc3f7d5deb746fb7b31d2f40e7f6820ca8a76a80d00128e127c50bf23bb89902313ee7959b02ce19934ad25446fd56c14f5b074bea6ad
|
7
|
+
data.tar.gz: 3ecace8802929cd80d0870c3ad7dc6b3abc2ca17be4e9e452aeb2f575fbda9d241e2d54f6329ab9074ae0cb510c81dfbc7f90f74a2445b3b11342a7197c84a9e
|
@@ -8,17 +8,6 @@ module Lolcommits
|
|
8
8
|
|
9
9
|
DEFAULT_SUFFIX = '#lolcommits'.freeze
|
10
10
|
|
11
|
-
##
|
12
|
-
# Returns position(s) of when this plugin should run during the capture
|
13
|
-
# process. We want to post to Twitter when the capture is ready (after all
|
14
|
-
# image processing is complete).
|
15
|
-
#
|
16
|
-
# @return [Array] the position(s)
|
17
|
-
#
|
18
|
-
def self.runner_order
|
19
|
-
[:capture_ready]
|
20
|
-
end
|
21
|
-
|
22
11
|
##
|
23
12
|
# Indicate if the plugin is configured correctly.
|
24
13
|
#
|
data/lolcommits-twitter.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_runtime_dependency "simple_oauth"
|
37
37
|
spec.add_runtime_dependency "addressable"
|
38
38
|
|
39
|
-
spec.add_development_dependency "lolcommits", ">= 0.
|
39
|
+
spec.add_development_dependency "lolcommits", ">= 0.12.0"
|
40
40
|
spec.add_development_dependency "bundler"
|
41
41
|
spec.add_development_dependency "rake"
|
42
42
|
spec.add_development_dependency "minitest"
|
@@ -4,10 +4,6 @@ describe Lolcommits::Plugin::Twitter do
|
|
4
4
|
|
5
5
|
include Lolcommits::TestHelpers::FakeIO
|
6
6
|
|
7
|
-
it 'should run on post capturing' do
|
8
|
-
::Lolcommits::Plugin::Twitter.runner_order.must_equal [:capture_ready]
|
9
|
-
end
|
10
|
-
|
11
7
|
describe 'with a runner' do
|
12
8
|
def runner
|
13
9
|
@_runner ||= Lolcommits::Runner.new
|
@@ -30,27 +26,27 @@ describe Lolcommits::Plugin::Twitter do
|
|
30
26
|
end
|
31
27
|
|
32
28
|
describe '#enabled?' do
|
33
|
-
it '
|
29
|
+
it 'returns false by default' do
|
34
30
|
plugin.enabled?.must_equal false
|
35
31
|
end
|
36
32
|
|
37
|
-
it '
|
33
|
+
it 'returns true when configured' do
|
38
34
|
plugin.configuration = valid_enabled_config
|
39
35
|
plugin.enabled?.must_equal true
|
40
36
|
end
|
41
37
|
end
|
42
38
|
|
43
39
|
describe 'configuration' do
|
44
|
-
it '
|
40
|
+
it 'does not have a valid config by default' do
|
45
41
|
plugin.valid_configuration?.must_equal false
|
46
42
|
end
|
47
43
|
|
48
|
-
it '
|
44
|
+
it 'indicates when configured correctly' do
|
49
45
|
plugin.configuration = valid_enabled_config
|
50
46
|
plugin.valid_configuration?.must_equal true
|
51
47
|
end
|
52
48
|
|
53
|
-
it '
|
49
|
+
it 'allows plugin options to be configured' do
|
54
50
|
stub_request(:post, "#{Lolcommits::Twitter::Client::API_ENDPOINT}/oauth/request_token").
|
55
51
|
to_return(status: 200, body: "oauth_token=mytoken&oauth_token_secret=mytokensercet&oauth_callback_confirmed=true")
|
56
52
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits-twitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.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: 2018-
|
11
|
+
date: 2018-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.12.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.12.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|