twitter-stream 0.1.10 → 0.1.11

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/Rakefile CHANGED
@@ -1,14 +1,14 @@
1
1
  require 'rubygems'
2
2
 
3
- gem 'rspec', '= 1.3.0'
4
- require 'spec/rake/spectask'
5
-
6
- desc "Run all specs"
7
- Spec::Rake::SpecTask.new('spec') do |t|
8
- t.spec_files = FileList['spec/**/*.rb']
9
- t.spec_opts = %w(-fs --color)
10
- end
11
- task :default => :spec
3
+ # gem 'rspec', '= 1.3.0'
4
+ # require 'spec/rake/spectask'
5
+ #
6
+ # desc "Run all specs"
7
+ # Spec::Rake::SpecTask.new('spec') do |t|
8
+ # t.spec_files = FileList['spec/**/*.rb']
9
+ # t.spec_opts = %w(-fs --color)
10
+ # end
11
+ # task :default => :spec
12
12
 
13
13
  begin
14
14
  require 'jeweler'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
@@ -69,6 +69,7 @@ module Twitter
69
69
  @af_last_reconnect = nil
70
70
  @reconnect_retries = 0
71
71
  @immediate_reconnect = false
72
+ @on_inited_callback = options.delete(:on_inited)
72
73
  @proxy = URI.parse(options[:proxy]) if options[:proxy]
73
74
  end
74
75
 
@@ -122,6 +123,7 @@ module Twitter
122
123
 
123
124
  def post_init
124
125
  reset_state
126
+ @on_inited_callback.call if @on_inited_callback
125
127
  end
126
128
 
127
129
  protected
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-stream
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 10
10
- version: 0.1.10
9
+ - 11
10
+ version: 0.1.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vladimir Kolesnikov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-05 00:00:00 +04:00
18
+ date: 2011-03-14 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -75,7 +75,6 @@ extensions: []
75
75
  extra_rdoc_files:
76
76
  - README.markdown
77
77
  files:
78
- - .gitignore
79
78
  - README.markdown
80
79
  - Rakefile
81
80
  - VERSION
@@ -90,8 +89,8 @@ homepage: http://github.com/voloko/twitter-stream
90
89
  licenses: []
91
90
 
92
91
  post_install_message:
93
- rdoc_options:
94
- - --charset=UTF-8
92
+ rdoc_options: []
93
+
95
94
  require_paths:
96
95
  - lib
97
96
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -115,11 +114,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
114
  requirements: []
116
115
 
117
116
  rubyforge_project:
118
- rubygems_version: 1.3.7
117
+ rubygems_version: 1.5.2
119
118
  signing_key:
120
119
  specification_version: 3
121
120
  summary: Twitter realtime API client
122
121
  test_files:
122
+ - examples/reader.rb
123
123
  - spec/spec_helper.rb
124
124
  - spec/twitter/json_stream.rb
125
- - examples/reader.rb
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- .rake_tasks~
2
- /pkg