siyelo-tweetify 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.5
data/app/models/tweet.rb CHANGED
@@ -3,6 +3,9 @@ class Tweet < ActiveRecord::Base
3
3
  cattr_accessor :search_string
4
4
  @@search_string = "siyelo OR \"siyelo software\""
5
5
 
6
+ cattr_accessor :language
7
+ @@language = "en"
8
+
6
9
  cattr_accessor :search_agent
7
10
  @@search_agent = 'tweetify_agent'
8
11
 
@@ -30,7 +33,7 @@ class Tweet < ActiveRecord::Base
30
33
  begin
31
34
  timeout(read_timeout) do
32
35
  client = TwitterSearch::Client.new(search_agent)
33
- tweets = client.query(:q => search_string, :rpp => tweet_limit, :page => '1')
36
+ tweets = client.query(:q => search_string, :lang => language, :rpp => tweet_limit, :page => '1')
34
37
  end
35
38
  rescue TimeoutError
36
39
  logger.warn("Timeout accessing Twitter: #{$!}, #{$@}")
@@ -1,4 +1,4 @@
1
- class CreateTweets < ActiveRecord::Migration
1
+ class TweetifyCreateTweets < ActiveRecord::Migration
2
2
  def self.up
3
3
  create_table :tweets do |t|
4
4
  t.string :type
@@ -4,7 +4,7 @@ class TweetifyInstallGenerator < Rails::Generator::Base
4
4
  def manifest
5
5
  record do |m|
6
6
 
7
- m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "tweetify_create_blog_posts"
7
+ m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "tweetify_create_tweets"
8
8
 
9
9
  m.directory "config/initializers"
10
10
  m.template "tweetify.rb", "config/initializers/tweetify.rb"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siyelo-tweetify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Glenn Roberts
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-04 00:00:00 +02:00
18
+ date: 2010-06-08 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency