twitterstream 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- PostInstall.txt
4
3
  README.rdoc
4
+ README.txt
5
5
  Rakefile
6
6
  lib/twitterstream.rb
7
7
  script/console
data/README.txt ADDED
@@ -0,0 +1,60 @@
1
+ = twitterstream
2
+
3
+ * http://rubyforge.org/projects/twitterstream/
4
+
5
+ == DESCRIPTION:
6
+
7
+ It is the simple library to access the Twitter Streaming API( http://apiwiki.twitter.com/Streaming-API-Documentation ). It works with pure-ruby(don't need C compiler) and rubygems.
8
+
9
+ == FEATURES/PROBLEMS:
10
+
11
+ == SYNOPSIS:
12
+
13
+ require "twitterStream"
14
+ TwitterStream::Client.new("username", "password").sample do |status|
15
+ next unless status['text']
16
+ user = status['user']
17
+ puts "#{user['screen_name']}: #{status['text']}"
18
+ end
19
+
20
+ or
21
+
22
+ require "twitterStream"
23
+ TwitterStream::Client.new("username", "password").track("bit,ly") do |status|
24
+ next unless status['text']
25
+ user = status['user']
26
+ puts "#{user['screen_name']}: #{status['text']}"
27
+ end
28
+
29
+ == REQUIREMENTS:
30
+
31
+ * json
32
+
33
+ == INSTALL:
34
+
35
+ sudo gem install twitterstream
36
+
37
+ == LICENSE:
38
+
39
+ (The MIT License)
40
+
41
+ Copyright (c) 2009 FIXME full name
42
+
43
+ Permission is hereby granted, free of charge, to any person obtaining
44
+ a copy of this software and associated documentation files (the
45
+ 'Software'), to deal in the Software without restriction, including
46
+ without limitation the rights to use, copy, modify, merge, publish,
47
+ distribute, sublicense, and/or sell copies of the Software, and to
48
+ permit persons to whom the Software is furnished to do so, subject to
49
+ the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be
52
+ included in all copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
55
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
56
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
57
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
58
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
59
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
60
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ Hoe.plugin :newgem
12
12
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
13
13
  $hoe = Hoe.spec 'twitterstream' do
14
14
  self.developer 'yayugu', 'yayugu@gmail.com'
15
- # self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
15
+
16
16
  self.rubyforge_name = self.name # TODO this is default value
17
17
  self.extra_deps = [['json','>= 1.2.0']]
18
18
 
data/lib/twitterstream.rb CHANGED
@@ -19,7 +19,7 @@ module Net
19
19
  end
20
20
 
21
21
  module TwitterStream
22
- VERSION = '0.0.2'
22
+ VERSION = '0.0.3'
23
23
 
24
24
  class Client
25
25
  def initialize(username, password)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitterstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - yayugu
@@ -42,12 +42,12 @@ extensions: []
42
42
  extra_rdoc_files:
43
43
  - History.txt
44
44
  - Manifest.txt
45
- - PostInstall.txt
45
+ - README.txt
46
46
  files:
47
47
  - History.txt
48
48
  - Manifest.txt
49
- - PostInstall.txt
50
49
  - README.rdoc
50
+ - README.txt
51
51
  - Rakefile
52
52
  - lib/twitterstream.rb
53
53
  - script/console
data/PostInstall.txt DELETED
@@ -1,7 +0,0 @@
1
-
2
- For more information on twitterstream, see http://twitterstream.rubyforge.org
3
-
4
- NOTE: Change this information in PostInstall.txt
5
- You can also delete it if you don't want it.
6
-
7
-