twitter-stream 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of twitter-stream might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -189,7 +189,7 @@ module Twitter
189
189
 
190
190
  content = @options[:content]
191
191
 
192
- unless q = query.empty?
192
+ unless (q = query).empty?
193
193
  if @options[:method].to_s.upcase == 'GET'
194
194
  request_uri << "?#{q}"
195
195
  else
@@ -60,6 +60,16 @@ describe JSONStream do
60
60
  $close_connection = false
61
61
  end
62
62
 
63
+ it "should add no params" do
64
+ connect_stream
65
+ $recieved_data.should include('/1/statuses/filter.json HTTP')
66
+ end
67
+
68
+ it "should add custom params" do
69
+ connect_stream :params => {:name => 'test'}
70
+ $recieved_data.should include('?name=test')
71
+ end
72
+
63
73
  it "should parse headers" do
64
74
  connect_stream
65
75
  stream.code.should == 200
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{twitter-stream}
8
- s.version = "0.1.9"
8
+ s.version = "0.1.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vladimir Kolesnikov"]
12
- s.date = %q{2010-09-30}
12
+ s.date = %q{2010-10-05}
13
13
  s.description = %q{Simple Ruby client library for twitter streaming API. Uses EventMachine for connection handling. Adheres to twitter's reconnection guidline. JSON format only.}
14
14
  s.email = %q{voloko@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -27,11 +27,10 @@ Gem::Specification.new do |s|
27
27
  "spec/twitter/json_stream.rb",
28
28
  "twitter-stream.gemspec"
29
29
  ]
30
- s.has_rdoc = true
31
30
  s.homepage = %q{http://github.com/voloko/twitter-stream}
32
31
  s.rdoc_options = ["--charset=UTF-8"]
33
32
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.1}
33
+ s.rubygems_version = %q{1.3.7}
35
34
  s.summary = %q{Twitter realtime API client}
36
35
  s.test_files = [
37
36
  "spec/spec_helper.rb",
@@ -41,12 +40,9 @@ Gem::Specification.new do |s|
41
40
 
42
41
  if s.respond_to? :specification_version then
43
42
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
- s.specification_version = 2
43
+ s.specification_version = 3
45
44
 
46
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<eventmachine>, [">= 0.12.8"])
48
- s.add_runtime_dependency(%q<roauth>, [">= 0.0.2"])
49
- s.add_development_dependency(%q<rspec>, [">= 1.2.8"])
45
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
46
  s.add_runtime_dependency(%q<eventmachine>, [">= 0.12.8"])
51
47
  s.add_runtime_dependency(%q<roauth>, [">= 0.0.2"])
52
48
  s.add_development_dependency(%q<rspec>, [">= 1.2.8"])
@@ -54,17 +50,11 @@ Gem::Specification.new do |s|
54
50
  s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
55
51
  s.add_dependency(%q<roauth>, [">= 0.0.2"])
56
52
  s.add_dependency(%q<rspec>, [">= 1.2.8"])
57
- s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
58
- s.add_dependency(%q<roauth>, [">= 0.0.2"])
59
- s.add_dependency(%q<rspec>, [">= 1.2.8"])
60
53
  end
61
54
  else
62
55
  s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
63
56
  s.add_dependency(%q<roauth>, [">= 0.0.2"])
64
57
  s.add_dependency(%q<rspec>, [">= 1.2.8"])
65
- s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
66
- s.add_dependency(%q<roauth>, [">= 0.0.2"])
67
- s.add_dependency(%q<rspec>, [">= 1.2.8"])
68
58
  end
69
59
  end
70
60
 
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 10
10
+ version: 0.1.10
5
11
  platform: ruby
6
12
  authors:
7
13
  - Vladimir Kolesnikov
@@ -9,69 +15,57 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-09-30 00:00:00 +04:00
18
+ date: 2010-10-05 00:00:00 +04:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: eventmachine
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 63
30
+ segments:
31
+ - 0
32
+ - 12
33
+ - 8
23
34
  version: 0.12.8
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: roauth
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 0.0.2
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: rspec
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 1.2.8
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: eventmachine
47
35
  type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 0.12.8
54
- version:
36
+ version_requirements: *id001
55
37
  - !ruby/object:Gem::Dependency
56
38
  name: roauth
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
60
42
  requirements:
61
43
  - - ">="
62
44
  - !ruby/object:Gem::Version
45
+ hash: 27
46
+ segments:
47
+ - 0
48
+ - 0
49
+ - 2
63
50
  version: 0.0.2
64
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
65
53
  - !ruby/object:Gem::Dependency
66
54
  name: rspec
67
- type: :development
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
70
58
  requirements:
71
59
  - - ">="
72
60
  - !ruby/object:Gem::Version
61
+ hash: 15
62
+ segments:
63
+ - 1
64
+ - 2
65
+ - 8
73
66
  version: 1.2.8
74
- version:
67
+ type: :development
68
+ version_requirements: *id003
75
69
  description: Simple Ruby client library for twitter streaming API. Uses EventMachine for connection handling. Adheres to twitter's reconnection guidline. JSON format only.
76
70
  email: voloko@gmail.com
77
71
  executables: []
@@ -93,29 +87,37 @@ files:
93
87
  - twitter-stream.gemspec
94
88
  has_rdoc: true
95
89
  homepage: http://github.com/voloko/twitter-stream
90
+ licenses: []
91
+
96
92
  post_install_message:
97
93
  rdoc_options:
98
94
  - --charset=UTF-8
99
95
  require_paths:
100
96
  - lib
101
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
102
99
  requirements:
103
100
  - - ">="
104
101
  - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
105
105
  version: "0"
106
- version:
107
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
+ none: false
108
108
  requirements:
109
109
  - - ">="
110
110
  - !ruby/object:Gem::Version
111
+ hash: 3
112
+ segments:
113
+ - 0
111
114
  version: "0"
112
- version:
113
115
  requirements: []
114
116
 
115
117
  rubyforge_project:
116
- rubygems_version: 1.3.1
118
+ rubygems_version: 1.3.7
117
119
  signing_key:
118
- specification_version: 2
120
+ specification_version: 3
119
121
  summary: Twitter realtime API client
120
122
  test_files:
121
123
  - spec/spec_helper.rb