twitter_to_csv 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -2
- data/.rvmrc +1 -1
- data/Gemfile +1 -3
- data/README.markdown +34 -4
- data/bin/twitter_to_csv +60 -11
- data/lib/twitter_to_csv/afinn/AFINN-111.txt +2478 -0
- data/lib/twitter_to_csv/afinn/AFINN-96.txt +1480 -0
- data/lib/twitter_to_csv/afinn/AFINN-README.txt +43 -0
- data/lib/twitter_to_csv/csv_builder.rb +137 -17
- data/lib/twitter_to_csv/twitter_watcher.rb +24 -16
- data/lib/twitter_to_csv/version.rb +1 -1
- data/spec/csv_builder_spec.rb +253 -9
- data/twitter_to_csv.gemspec +4 -3
- metadata +53 -13
data/twitter_to_csv.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = TwitterToCsv::VERSION
|
8
8
|
s.authors = ["Andrew Cantino"]
|
9
9
|
s.email = ["andrew@iterationlabs.com"]
|
10
|
-
s.homepage = ""
|
11
|
-
s.summary = %q{Dump the Twitter streaming API to a CSV or JSON file}
|
10
|
+
s.homepage = "https://github.com/iterationlabs/twitter_to_csv"
|
11
|
+
s.summary = %q{Dump the Twitter streaming API to a CSV or JSON file and then filter, handle retweets, apply sentiment analysis, and more.}
|
12
12
|
s.description = %q{}
|
13
13
|
|
14
14
|
s.rubyforge_project = "twitter_to_csv"
|
@@ -19,7 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_development_dependency "rspec"
|
22
|
-
s.add_runtime_dependency 'twitter-stream'
|
22
|
+
s.add_runtime_dependency 'twitter-stream', '>=0.1.16'
|
23
|
+
s.add_runtime_dependency 'elif'
|
23
24
|
s.add_runtime_dependency 'em-http-request'
|
24
25
|
s.add_runtime_dependency 'unsupervised-language-detection'
|
25
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_to_csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,31 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: twitter-stream
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.1.16
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.1.16
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: elif
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
28
49
|
none: false
|
29
50
|
requirements:
|
30
51
|
- - ! '>='
|
@@ -32,10 +53,15 @@ dependencies:
|
|
32
53
|
version: '0'
|
33
54
|
type: :runtime
|
34
55
|
prerelease: false
|
35
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
36
62
|
- !ruby/object:Gem::Dependency
|
37
63
|
name: em-http-request
|
38
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
39
65
|
none: false
|
40
66
|
requirements:
|
41
67
|
- - ! '>='
|
@@ -43,10 +69,15 @@ dependencies:
|
|
43
69
|
version: '0'
|
44
70
|
type: :runtime
|
45
71
|
prerelease: false
|
46
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
47
78
|
- !ruby/object:Gem::Dependency
|
48
79
|
name: unsupervised-language-detection
|
49
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
50
81
|
none: false
|
51
82
|
requirements:
|
52
83
|
- - ! '>='
|
@@ -54,7 +85,12 @@ dependencies:
|
|
54
85
|
version: '0'
|
55
86
|
type: :runtime
|
56
87
|
prerelease: false
|
57
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
58
94
|
description: ''
|
59
95
|
email:
|
60
96
|
- andrew@iterationlabs.com
|
@@ -71,13 +107,16 @@ files:
|
|
71
107
|
- Rakefile
|
72
108
|
- bin/twitter_to_csv
|
73
109
|
- lib/twitter_to_csv.rb
|
110
|
+
- lib/twitter_to_csv/afinn/AFINN-111.txt
|
111
|
+
- lib/twitter_to_csv/afinn/AFINN-96.txt
|
112
|
+
- lib/twitter_to_csv/afinn/AFINN-README.txt
|
74
113
|
- lib/twitter_to_csv/csv_builder.rb
|
75
114
|
- lib/twitter_to_csv/twitter_watcher.rb
|
76
115
|
- lib/twitter_to_csv/version.rb
|
77
116
|
- spec/csv_builder_spec.rb
|
78
117
|
- spec/spec_helper.rb
|
79
118
|
- twitter_to_csv.gemspec
|
80
|
-
homepage:
|
119
|
+
homepage: https://github.com/iterationlabs/twitter_to_csv
|
81
120
|
licenses: []
|
82
121
|
post_install_message:
|
83
122
|
rdoc_options: []
|
@@ -97,8 +136,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
136
|
version: '0'
|
98
137
|
requirements: []
|
99
138
|
rubyforge_project: twitter_to_csv
|
100
|
-
rubygems_version: 1.8.
|
139
|
+
rubygems_version: 1.8.24
|
101
140
|
signing_key:
|
102
141
|
specification_version: 3
|
103
|
-
summary: Dump the Twitter streaming API to a CSV or JSON file
|
142
|
+
summary: Dump the Twitter streaming API to a CSV or JSON file and then filter, handle
|
143
|
+
retweets, apply sentiment analysis, and more.
|
104
144
|
test_files: []
|