pork_sandwich 0.4.15 → 0.4.16

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.4.15
1
+ 0.4.16
@@ -29,7 +29,6 @@ module Pork
29
29
  retry
30
30
  end
31
31
  end
32
-
33
32
  end
34
33
  end
35
34
 
@@ -37,7 +36,7 @@ end
37
36
 
38
37
 
39
38
  ACCOUNT_INFO = lambda do |user_object, auth_object|
40
- @pull_data = auth_object.user(user_object.search)
39
+ @pull_data = Twitter.user(user_object.search)
41
40
  {:pull_data => @pull_data, :db_object => $SAVER.save(@pull_data, &TWITTER_ACCOUNT_SAVE)}
42
41
  end
43
42
 
@@ -128,6 +127,9 @@ TWEETS = lambda do |user, auth_object|
128
127
  @tweet_db_ids = []
129
128
  @pull_data = auth_object.user_timeline(rules)
130
129
  @pull_data.each do |result|
130
+ if user.since_tweet_id
131
+
132
+ end
131
133
  @tweet_db_ids << $SAVER.save(result, &USER_TWEET_SAVE).id
132
134
  end
133
135
  # rules[:reactions] ? $REACTION_PROCESSOR.process_reactions(@tweet_db_objects) : nil
@@ -1,6 +1,6 @@
1
1
  module Pork
2
2
  class TwitterUser
3
- attr_accessor :twitter_id, :twitter_screen_name, :crawled, :user_info, :db_object, :puller, :desired_follower_count, :desired_friend_count
3
+ attr_accessor :twitter_id, :twitter_screen_name, :crawled, :user_info, :db_object, :puller, :desired_follower_count, :desired_friend_count, :since_tweet_id
4
4
  attr_reader :tweet_db_ids, :follower_relationship_db_ids, :friend_relationship_db_ids
5
5
 
6
6
 
@@ -16,6 +16,7 @@ module Pork
16
16
  @friend_relationship_db_ids = nil
17
17
  @desired_follower_count = opts[:desired_follower_count]
18
18
  @desired_friend_count = opts[:desired_friend_count]
19
+ @since_tweet_id = opts[:since_tweet_id]
19
20
  end
20
21
 
21
22
  def crawled?
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 15
9
- version: 0.4.15
8
+ - 16
9
+ version: 0.4.16
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Gilbert
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-03-10 00:00:00 -05:00
18
+ date: 2010-03-11 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency