twss 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gemspec
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ twss (0.0.3)
5
+ classifier (>= 1.3.1)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ addressable (2.2.5)
11
+ classifier (1.3.3)
12
+ fast-stemmer (>= 1.0.0)
13
+ faraday (0.6.1)
14
+ addressable (~> 2.2.4)
15
+ multipart-post (~> 1.1.0)
16
+ rack (>= 1.1.0, < 2)
17
+ faraday_middleware (0.6.3)
18
+ faraday (~> 0.6.0)
19
+ fast-stemmer (1.0.0)
20
+ git (1.2.5)
21
+ hashie (1.0.0)
22
+ jeweler (1.5.2)
23
+ bundler (~> 1.0.0)
24
+ git (>= 1.2.5)
25
+ rake
26
+ multi_json (1.0.0)
27
+ multi_xml (0.2.2)
28
+ multipart-post (1.1.0)
29
+ rack (1.2.2)
30
+ rake (0.8.7)
31
+ rash (0.3.0)
32
+ hashie (~> 1.0.0)
33
+ simple_oauth (0.1.4)
34
+ twitter (1.4.1)
35
+ faraday (~> 0.6.1)
36
+ faraday_middleware (~> 0.6.3)
37
+ hashie (~> 1.0.0)
38
+ multi_json (~> 1.0.0)
39
+ multi_xml (~> 0.2.0)
40
+ rash (~> 0.3.0)
41
+ simple_oauth (~> 0.1.4)
42
+
43
+ PLATFORMS
44
+ ruby
45
+
46
+ DEPENDENCIES
47
+ classifier (>= 1.3.1)
48
+ jeweler
49
+ twitter
50
+ twss!
@@ -33,7 +33,7 @@ Goals
33
33
 
34
34
  There aren't any, other than to laugh.
35
35
 
36
- I made [twssbot][twssbot] which is a TWSS IRC bot that using twss and [isaac][isaac]
36
+ I made [twssbot][twssbot] which is a TWSS IRC bot that uses twss and [isaac][isaac]
37
37
 
38
38
  I'd love to see some other random applications of twss, but not a twitter bot.
39
39
  For the love of all things good in this world, please don't make a Twitter
data/Rakefile CHANGED
@@ -1,3 +1,6 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
1
4
  $LOAD_PATH.unshift 'lib'
2
5
 
3
6
  require 'twss'
@@ -11,42 +14,3 @@ task :test do
11
14
  end
12
15
  end
13
16
 
14
-
15
- desc "Build a gem"
16
- task :gem => [ :test, :gemspec, :build ]
17
-
18
- begin
19
- begin
20
- require 'jeweler'
21
- rescue LoadError
22
- puts "Jeweler not available. Install it with: "
23
- puts "gem install jeweler"
24
- end
25
-
26
- Jeweler::Tasks.new do |gemspec|
27
- gemspec.name = "twss"
28
- gemspec.summary = "Pre-trained That's What She Said classifier"
29
- gemspec.description = %{Pre-trained "That's What She Said" Bayes classifier.
30
- Given a string, returns true if it's a TWSS joke. Pre-trained from
31
- Twitter #twss. Let the twss mashups begin!}
32
- gemspec.email = "bvandenbos@gmail.com"
33
- gemspec.homepage = "http://github.com/bvandenbos/twss"
34
- gemspec.authors = ["Ben VandenBos"]
35
- gemspec.version = TWSS::Version
36
-
37
- gemspec.add_dependency "classifier", ">= 1.3.1"
38
-
39
- gemspec.add_development_dependency "jeweler"
40
- gemspec.add_development_dependency "twitter"
41
- end
42
- end
43
-
44
-
45
- desc "Push a new version to Gemcutter"
46
- task :publish => [ :test, :gemspec, :build ] do
47
- system "git tag v#{TWSS::Version}"
48
- system "git push origin v#{TWSS::Version}"
49
- system "git push origin master"
50
- system "gem push pkg/twss-#{TWSS::Version}.gem"
51
- system "git clean -fd"
52
- end
@@ -14,7 +14,7 @@ module TWSS
14
14
  o = File.open(filename, 'a')
15
15
  page, per_page = 1, 100
16
16
  begin
17
- Twitter::Search.new(search).per_page(per_page).page(page).each do |tweet|
17
+ Twitter::Search.new.containing(search).per_page(per_page).page(page).each do |tweet|
18
18
  puts tweet.text
19
19
  o.puts tweet.text
20
20
  end
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../lib/twss')
2
- require File.join(File.dirname(__FILE__), '../lib/twss/tweet_collector')
1
+ require File.expand_path('../lib/twss', File.dirname(__FILE__))
2
+ require File.expand_path('../lib/twss/tweet_collector', File.dirname(__FILE__))
3
3
 
4
4
  TWSS::TweetCollector.new(':)', File.join(File.dirname(__FILE__), '../data/non_twss.txt')).run
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../lib/twss')
2
- require File.join(File.dirname(__FILE__), '../lib/twss/tweet_collector')
1
+ require File.expand_path('../lib/twss', File.dirname(__FILE__))
2
+ require File.expand_path('../lib/twss/tweet_collector', File.dirname(__FILE__))
3
3
 
4
4
  TWSS::TweetCollector.new('#twss', File.join(File.dirname(__FILE__), '../data/twss.txt')).run
@@ -1,61 +1,24 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
1
  Gem::Specification.new do |s|
7
- s.name = %q{twss}
8
- s.version = "0.0.2"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
2
+ s.name = "twss"
3
+ s.version = "0.0.3"
4
+ s.platform = Gem::Platform::RUBY
11
5
  s.authors = ["Ben VandenBos"]
12
- s.date = %q{2010-08-12}
6
+ s.email = "bvandenbos@gmail.com"
7
+ s.homepage = "http://github.com/bvandenbos/twss"
8
+ s.summary = "Pre-trained That's What She Said classifier"
13
9
  s.description = %q{Pre-trained "That's What She Said" Bayes classifier.
14
10
  Given a string, returns true if it's a TWSS joke. Pre-trained from
15
11
  Twitter #twss. Let the twss mashups begin!}
16
- s.email = %q{bvandenbos@gmail.com}
17
- s.extra_rdoc_files = [
18
- "README.markdown"
19
- ]
20
- s.files = [
21
- ".gitignore",
22
- "README.markdown",
23
- "Rakefile",
24
- "data/classifier",
25
- "data/non_twss.txt",
26
- "data/twss.txt",
27
- "lib/twss.rb",
28
- "lib/twss/engine.rb",
29
- "lib/twss/trainer.rb",
30
- "lib/twss/tweet_collector.rb",
31
- "script/collect_non_twss.rb",
32
- "script/collect_twss.rb",
33
- "script/train.rb",
34
- "twss.gemspec"
35
- ]
36
- s.homepage = %q{http://github.com/bvandenbos/twss}
37
- s.rdoc_options = ["--charset=UTF-8"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.7}
40
- s.summary = %q{Pre-trained That's What She Said classifier}
41
12
 
42
- if s.respond_to? :specification_version then
43
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
- s.specification_version = 3
13
+ s.required_rubygems_version = ">= 1.3.6"
14
+ s.add_development_dependency "bundler", ">= 1.0.0"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
18
+ s.require_path = 'lib'
45
19
 
46
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<classifier>, [">= 1.3.1"])
48
- s.add_development_dependency(%q<jeweler>, [">= 0"])
49
- s.add_development_dependency(%q<twitter>, [">= 0"])
50
- else
51
- s.add_dependency(%q<classifier>, [">= 1.3.1"])
52
- s.add_dependency(%q<jeweler>, [">= 0"])
53
- s.add_dependency(%q<twitter>, [">= 0"])
54
- end
55
- else
56
- s.add_dependency(%q<classifier>, [">= 1.3.1"])
57
- s.add_dependency(%q<jeweler>, [">= 0"])
58
- s.add_dependency(%q<twitter>, [">= 0"])
59
- end
20
+ s.add_runtime_dependency("classifier", [">= 1.3.1"])
21
+ s.add_development_dependency("twitter", [">= 0"])
22
+
60
23
  end
61
24
 
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twss
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 2
10
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
11
10
  platform: ruby
12
11
  authors:
13
12
  - Ben VandenBos
@@ -15,38 +14,38 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-08-12 00:00:00 -07:00
17
+ date: 2011-04-29 00:00:00 -07:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: classifier
21
+ name: bundler
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 25
30
28
  segments:
31
29
  - 1
32
- - 3
33
- - 1
34
- version: 1.3.1
35
- type: :runtime
30
+ - 0
31
+ - 0
32
+ version: 1.0.0
33
+ type: :development
36
34
  version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
38
- name: jeweler
36
+ name: classifier
39
37
  prerelease: false
40
38
  requirement: &id002 !ruby/object:Gem::Requirement
41
39
  none: false
42
40
  requirements:
43
41
  - - ">="
44
42
  - !ruby/object:Gem::Version
45
- hash: 3
46
43
  segments:
47
- - 0
48
- version: "0"
49
- type: :development
44
+ - 1
45
+ - 3
46
+ - 1
47
+ version: 1.3.1
48
+ type: :runtime
50
49
  version_requirements: *id002
51
50
  - !ruby/object:Gem::Dependency
52
51
  name: twitter
@@ -56,7 +55,6 @@ dependencies:
56
55
  requirements:
57
56
  - - ">="
58
57
  - !ruby/object:Gem::Version
59
- hash: 3
60
58
  segments:
61
59
  - 0
62
60
  version: "0"
@@ -71,10 +69,12 @@ executables: []
71
69
 
72
70
  extensions: []
73
71
 
74
- extra_rdoc_files:
75
- - README.markdown
72
+ extra_rdoc_files: []
73
+
76
74
  files:
77
75
  - .gitignore
76
+ - Gemfile
77
+ - Gemfile.lock
78
78
  - README.markdown
79
79
  - Rakefile
80
80
  - data/classifier
@@ -93,8 +93,8 @@ homepage: http://github.com/bvandenbos/twss
93
93
  licenses: []
94
94
 
95
95
  post_install_message:
96
- rdoc_options:
97
- - --charset=UTF-8
96
+ rdoc_options: []
97
+
98
98
  require_paths:
99
99
  - lib
100
100
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -102,7 +102,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
- hash: 3
106
105
  segments:
107
106
  - 0
108
107
  version: "0"
@@ -111,10 +110,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
110
  requirements:
112
111
  - - ">="
113
112
  - !ruby/object:Gem::Version
114
- hash: 3
115
113
  segments:
116
- - 0
117
- version: "0"
114
+ - 1
115
+ - 3
116
+ - 6
117
+ version: 1.3.6
118
118
  requirements: []
119
119
 
120
120
  rubyforge_project: