em-twitter 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/em-twitter.gemspec +1 -1
- data/lib/em-twitter/client.rb +2 -2
- data/lib/em-twitter/request.rb +11 -4
- data/lib/em-twitter/version.rb +1 -1
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 073f50a221b40cd0bca13f4eaa88b4dfe27f838b
|
4
|
+
data.tar.gz: dec59eb20f85b6582318ab9befa87586fcfdd8d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09236b7b2bdb73dc9b9709e02284a9e0f8cb9f60c6a95f7e15c58bdd42ecb9765690426e591e69b4091095d092955afa44707dabf503c2afdeedb00eb40ec29b
|
7
|
+
data.tar.gz: da7c001ff38f4a0e33c3eb903f2b9f0b1d797bc904db5ba7e56dbead497eaf22cf1153e4bb047127edb0a146640949570f503a53d6fd6dfcef10c1c908ac3c53
|
data/em-twitter.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'em-twitter/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'em-twitter'
|
8
8
|
spec.version = EventMachine::Twitter::VERSION
|
9
|
-
spec.homepage = 'https://github.com/
|
9
|
+
spec.homepage = 'https://github.com/tweetstream/em-twitter'
|
10
10
|
spec.licenses = ['MIT']
|
11
11
|
|
12
12
|
spec.authors = ["Steve Agalloco"]
|
data/lib/em-twitter/client.rb
CHANGED
@@ -114,8 +114,8 @@ module EventMachine
|
|
114
114
|
@connection.send(method, *args, &block)
|
115
115
|
end
|
116
116
|
|
117
|
-
def respond_to?(method,
|
118
|
-
@connection.respond_to?(method,
|
117
|
+
def respond_to?(method, include_all=false)
|
118
|
+
@connection.respond_to?(method, include_all) || super(method, include_all)
|
119
119
|
end
|
120
120
|
|
121
121
|
private
|
data/lib/em-twitter/request.rb
CHANGED
@@ -96,10 +96,17 @@ module EventMachine
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def oauth_header
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
99
|
+
SimpleOAuth::Header.new(@options[:method], full_uri, oauth_url_params, oauth_params)
|
100
|
+
end
|
101
|
+
|
102
|
+
def oauth_url_params
|
103
|
+
get? ? {} : params
|
104
|
+
end
|
105
|
+
|
106
|
+
def oauth_params
|
107
|
+
SimpleOAuth::Header::ATTRIBUTE_KEYS.inject({}) do |hash, key|
|
108
|
+
hash[key] = @options[:oauth][key] if @options[:oauth].key?(key)
|
109
|
+
hash
|
103
110
|
end
|
104
111
|
end
|
105
112
|
|
data/lib/em-twitter/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-twitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Agalloco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.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
26
|
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: http_parser.rb
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.6'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: simple_oauth
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: buftok
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '1.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
82
|
version: '1.0'
|
83
83
|
description: Twitter Streaming API client for EventMachine
|
@@ -87,12 +87,13 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- .yardopts
|
90
|
+
- ".yardopts"
|
91
91
|
- CONTRIBUTING.md
|
92
92
|
- LICENSE.md
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
95
|
- em-twitter.gemspec
|
96
|
+
- lib/em-twitter.rb
|
96
97
|
- lib/em-twitter/client.rb
|
97
98
|
- lib/em-twitter/connection.rb
|
98
99
|
- lib/em-twitter/decoders/base_decoder.rb
|
@@ -103,7 +104,6 @@ files:
|
|
103
104
|
- lib/em-twitter/request.rb
|
104
105
|
- lib/em-twitter/response.rb
|
105
106
|
- lib/em-twitter/version.rb
|
106
|
-
- lib/em-twitter.rb
|
107
107
|
- lib/em_twitter.rb
|
108
108
|
- spec/em-twitter/client_spec.rb
|
109
109
|
- spec/em-twitter/connection_error_handling_spec.rb
|
@@ -118,7 +118,7 @@ files:
|
|
118
118
|
- spec/em-twitter/response_spec.rb
|
119
119
|
- spec/em_twitter_spec.rb
|
120
120
|
- spec/spec_helper.rb
|
121
|
-
homepage: https://github.com/
|
121
|
+
homepage: https://github.com/tweetstream/em-twitter
|
122
122
|
licenses:
|
123
123
|
- MIT
|
124
124
|
metadata: {}
|
@@ -128,17 +128,17 @@ require_paths:
|
|
128
128
|
- lib
|
129
129
|
required_ruby_version: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.2.2
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Twitter Streaming API client for EventMachine
|