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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21e8f1de292ad69b7a8a8ceb1094e91c1c06ba64
4
- data.tar.gz: e325cf23fdd962b1b6d07ee7c67793190d2414e0
3
+ metadata.gz: 1db20866978948eda6bb7e003fe76d7262886a9e
4
+ data.tar.gz: d4fecacd0718abb2e554d4ef481b0539982bda31
5
5
  SHA512:
6
- metadata.gz: babcb6376306d1c3ffa13e225ba3c95502ed3cb81b7c5597b5ece7650b5182b4cdd391718068cb75f7e420f9f37e33cf3ddf77ec841f0b79b43464b2e7d5c413
7
- data.tar.gz: c38be9f54969b3ad677f9353276b6709ff9b0d14591ff4999e2ccd47b020b76db386c47013b027bb8ee4f37df104ec224b1a24b5cfbca40dd519329965e3d0ee
6
+ metadata.gz: 1b14b5da4944e413cf29e1044e4c32d31a20a491b591227b20d87756fdaf60e8ffa32864ec167cd408acbfc05f9375c596ad79f102928fa480f680c7188706ac
7
+ data.tar.gz: af92c1330b28bd081710f7e6f24b9ba5e95c2a74587133514dfaf138ad4078f1e9001a2153af0d42eda6724ecb59ab609d26f3c1faf4c7022ba02e2d5daa3f13
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ lita_config.rb
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
- config.adapter.api_key = "***"
33
- config.adapter.api_secret = "***"
34
- config.adapter.access_token = "***"
35
- config.adapter.access_token_secret = "***"
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
- require_configs :api_key, :api_secret, :access_token, :access_token_secret
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
@@ -1,5 +1,5 @@
1
1
  module Lita
2
2
  module Twitter
3
- VERSION = "0.0.7"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -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", ">= 2.5"
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.7
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: 2014-08-06 00:00:00.000000000 Z
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: '2.5'
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: '2.5'
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.2.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: