em-twitter 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/.gemtest +0 -0
  2. data/.gitignore +40 -0
  3. data/.rspec +3 -0
  4. data/.simplecov +1 -0
  5. data/.travis.yml +8 -0
  6. data/.yardopts +3 -0
  7. data/Gemfile +7 -0
  8. data/Guardfile +6 -0
  9. data/LICENSE.md +20 -0
  10. data/README.md +117 -0
  11. data/Rakefile +15 -0
  12. data/em-twitter.gemspec +31 -0
  13. data/examples/stream.rb +61 -0
  14. data/lib/em-twitter.rb +35 -0
  15. data/lib/em-twitter/client.rb +111 -0
  16. data/lib/em-twitter/connection.rb +273 -0
  17. data/lib/em-twitter/decoders/base_decoder.rb +11 -0
  18. data/lib/em-twitter/decoders/gzip_decoder.rb +14 -0
  19. data/lib/em-twitter/proxy.rb +25 -0
  20. data/lib/em-twitter/reconnectors/application_failure.rb +50 -0
  21. data/lib/em-twitter/reconnectors/network_failure.rb +51 -0
  22. data/lib/em-twitter/request.rb +126 -0
  23. data/lib/em-twitter/response.rb +48 -0
  24. data/lib/em-twitter/version.rb +5 -0
  25. data/lib/em_twitter.rb +1 -0
  26. data/smoke.rb +66 -0
  27. data/spec/em-twitter/client_spec.rb +55 -0
  28. data/spec/em-twitter/connection_error_handling_spec.rb +12 -0
  29. data/spec/em-twitter/connection_reconnect_spec.rb +139 -0
  30. data/spec/em-twitter/connection_spec.rb +148 -0
  31. data/spec/em-twitter/decoders/base_decoder_spec.rb +15 -0
  32. data/spec/em-twitter/decoders/gzip_decoder_spec.rb +20 -0
  33. data/spec/em-twitter/proxy_spec.rb +23 -0
  34. data/spec/em-twitter/reconnectors/application_failure_spec.rb +74 -0
  35. data/spec/em-twitter/reconnectors/network_failure_spec.rb +80 -0
  36. data/spec/em-twitter/request_spec.rb +77 -0
  37. data/spec/em-twitter/response_spec.rb +89 -0
  38. data/spec/em_twitter_spec.rb +19 -0
  39. data/spec/spec_helper.rb +68 -0
  40. metadata +207 -0
metadata ADDED
@@ -0,0 +1,207 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: em-twitter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Steve Agalloco
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-05-12 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: eventmachine
16
+ requirement: &70306082567780 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0.beta.4
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70306082567780
25
+ - !ruby/object:Gem::Dependency
26
+ name: http_parser.rb
27
+ requirement: &70306082567280 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '0.5'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70306082567280
36
+ - !ruby/object:Gem::Dependency
37
+ name: simple_oauth
38
+ requirement: &70306082566820 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '0.1'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70306082566820
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: &70306082566440 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70306082566440
58
+ - !ruby/object:Gem::Dependency
59
+ name: rdiscount
60
+ requirement: &70306082565980 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70306082565980
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: &70306082565560 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70306082565560
80
+ - !ruby/object:Gem::Dependency
81
+ name: simplecov
82
+ requirement: &70306082565140 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70306082565140
91
+ - !ruby/object:Gem::Dependency
92
+ name: yard
93
+ requirement: &70306082557720 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *70306082557720
102
+ - !ruby/object:Gem::Dependency
103
+ name: mockingbird
104
+ requirement: &70306082556980 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.1.1
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *70306082556980
113
+ - !ruby/object:Gem::Dependency
114
+ name: guard-rspec
115
+ requirement: &70306082556480 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *70306082556480
124
+ description: Twitter Streaming API client for EventMachine
125
+ email: steve.agalloco@gmail.com
126
+ executables: []
127
+ extensions: []
128
+ extra_rdoc_files: []
129
+ files:
130
+ - .gemtest
131
+ - .gitignore
132
+ - .rspec
133
+ - .simplecov
134
+ - .travis.yml
135
+ - .yardopts
136
+ - Gemfile
137
+ - Guardfile
138
+ - LICENSE.md
139
+ - README.md
140
+ - Rakefile
141
+ - em-twitter.gemspec
142
+ - examples/stream.rb
143
+ - lib/em-twitter.rb
144
+ - lib/em-twitter/client.rb
145
+ - lib/em-twitter/connection.rb
146
+ - lib/em-twitter/decoders/base_decoder.rb
147
+ - lib/em-twitter/decoders/gzip_decoder.rb
148
+ - lib/em-twitter/proxy.rb
149
+ - lib/em-twitter/reconnectors/application_failure.rb
150
+ - lib/em-twitter/reconnectors/network_failure.rb
151
+ - lib/em-twitter/request.rb
152
+ - lib/em-twitter/response.rb
153
+ - lib/em-twitter/version.rb
154
+ - lib/em_twitter.rb
155
+ - smoke.rb
156
+ - spec/em-twitter/client_spec.rb
157
+ - spec/em-twitter/connection_error_handling_spec.rb
158
+ - spec/em-twitter/connection_reconnect_spec.rb
159
+ - spec/em-twitter/connection_spec.rb
160
+ - spec/em-twitter/decoders/base_decoder_spec.rb
161
+ - spec/em-twitter/decoders/gzip_decoder_spec.rb
162
+ - spec/em-twitter/proxy_spec.rb
163
+ - spec/em-twitter/reconnectors/application_failure_spec.rb
164
+ - spec/em-twitter/reconnectors/network_failure_spec.rb
165
+ - spec/em-twitter/request_spec.rb
166
+ - spec/em-twitter/response_spec.rb
167
+ - spec/em_twitter_spec.rb
168
+ - spec/spec_helper.rb
169
+ homepage: https://github.com/spagalloco/em-twitter
170
+ licenses: []
171
+ post_install_message:
172
+ rdoc_options: []
173
+ require_paths:
174
+ - lib
175
+ required_ruby_version: !ruby/object:Gem::Requirement
176
+ none: false
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ requirements: []
188
+ rubyforge_project:
189
+ rubygems_version: 1.8.10
190
+ signing_key:
191
+ specification_version: 3
192
+ summary: Twitter Streaming API client for EventMachine
193
+ test_files:
194
+ - spec/em-twitter/client_spec.rb
195
+ - spec/em-twitter/connection_error_handling_spec.rb
196
+ - spec/em-twitter/connection_reconnect_spec.rb
197
+ - spec/em-twitter/connection_spec.rb
198
+ - spec/em-twitter/decoders/base_decoder_spec.rb
199
+ - spec/em-twitter/decoders/gzip_decoder_spec.rb
200
+ - spec/em-twitter/proxy_spec.rb
201
+ - spec/em-twitter/reconnectors/application_failure_spec.rb
202
+ - spec/em-twitter/reconnectors/network_failure_spec.rb
203
+ - spec/em-twitter/request_spec.rb
204
+ - spec/em-twitter/response_spec.rb
205
+ - spec/em_twitter_spec.rb
206
+ - spec/spec_helper.rb
207
+ has_rdoc: