lita-twitter 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +5 -4
- data/lib/lita/adapters/twitter.rb +6 -11
- data/lib/lita/twitter/version.rb +1 -1
- data/lita-twitter.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1db20866978948eda6bb7e003fe76d7262886a9e
|
4
|
+
data.tar.gz: d4fecacd0718abb2e554d4ef481b0539982bda31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b14b5da4944e413cf29e1044e4c32d31a20a491b591227b20d87756fdaf60e8ffa32864ec167cd408acbfc05f9375c596ad79f102928fa480f680c7188706ac
|
7
|
+
data.tar.gz: af92c1330b28bd081710f7e6f24b9ba5e95c2a74587133514dfaf138ad4078f1e9001a2153af0d42eda6724ecb59ab609d26f3c1faf4c7022ba02e2d5daa3f13
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -29,10 +29,11 @@ Lita.configure do |config|
|
|
29
29
|
config.robot.name = "your-bot-name"
|
30
30
|
config.robot.log_level = :info
|
31
31
|
config.robot.adapter = :twitter
|
32
|
-
|
33
|
-
config.
|
34
|
-
config.
|
35
|
-
config.
|
32
|
+
|
33
|
+
config.adapters.twitter.api_key = "***"
|
34
|
+
config.adapters.twitter.api_secret = "***"
|
35
|
+
config.adapters.twitter.access_token = "***"
|
36
|
+
config.adapters.twitter.access_token_secret = "***"
|
36
37
|
end
|
37
38
|
```
|
38
39
|
|
@@ -4,7 +4,11 @@ require 'lita/adapters/twitter/connector'
|
|
4
4
|
module Lita
|
5
5
|
module Adapters
|
6
6
|
class Twitter < Adapter
|
7
|
-
|
7
|
+
config :api_key, required: true
|
8
|
+
config :api_secret, required: true
|
9
|
+
config :access_token, required: true
|
10
|
+
config :access_token_secret, required: true
|
11
|
+
config :debug, default: false
|
8
12
|
|
9
13
|
def initialize(robot)
|
10
14
|
super
|
@@ -48,16 +52,7 @@ module Lita
|
|
48
52
|
"@#{name}"
|
49
53
|
end
|
50
54
|
|
51
|
-
private
|
52
|
-
def config
|
53
|
-
Lita.config.adapter
|
54
|
-
end
|
55
|
-
|
56
|
-
def debug
|
57
|
-
config.debug || false
|
58
|
-
end
|
59
|
-
|
60
55
|
Lita.register_adapter(:twitter, Twitter)
|
61
56
|
end
|
62
57
|
end
|
63
|
-
end
|
58
|
+
end
|
data/lib/lita/twitter/version.rb
CHANGED
data/lita-twitter.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_runtime_dependency "lita", ">=
|
22
|
+
spec.add_runtime_dependency "lita", ">= 4.0"
|
23
23
|
spec.add_runtime_dependency "twitter", ">= 5.0.0"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.5"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-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
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
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: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: twitter
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,8 +118,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.4.5
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: A Twitter adapter for Lita.
|
125
125
|
test_files: []
|
126
|
+
has_rdoc:
|