pork_sandwich 0.4.14 → 0.4.15

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.14
1
+ 0.4.15
@@ -10,7 +10,7 @@ module Pork
10
10
  @crawled = opts[:crawled]
11
11
  @user_info = opts[:user_info]
12
12
  @db_object = opts[:db_object]
13
- @puller = nil
13
+ @puller = opts[:puller]
14
14
  @tweet_db_ids = nil
15
15
  @follower_relationship_db_ids = nil
16
16
  @friend_relationship_db_ids = nil
@@ -32,7 +32,7 @@ module Pork
32
32
 
33
33
  def pull_tweets
34
34
  pull_result = self.puller.pull(self, &TWEETS)
35
- @tweet_db_ids = pull_result[:db_ids]
35
+ @tweet_db_ids = pull_result[:db_ids] if pull_result
36
36
  return true
37
37
  end
38
38
 
@@ -44,28 +44,28 @@ module Pork
44
44
 
45
45
  def update_account_info
46
46
  pull_result = self.puller.pull(self, &ACCOUNT_INFO)
47
- @user_info, @db_object, @twitter_id, @twitter_screen_name = pull_result[:pull_data], pull_result[:db_object], pull_result[:db_object].twitter_id, pull_result[:db_object].screen_name
47
+ @user_info, @db_object, @twitter_id, @twitter_screen_name = pull_result[:pull_data], pull_result[:db_object], pull_result[:db_object].twitter_id, pull_result[:db_object].screen_name if pull_result
48
48
  return true
49
49
  end
50
50
 
51
51
  def pull_followers
52
52
  pull_result = self.puller.pull(self, &FOLLOWERS)
53
- @follower_relationship_db_ids = pull_result[:follower_relationship_db_ids]
53
+ @follower_relationship_db_ids = pull_result[:follower_relationship_db_ids] if pull_result
54
54
  end
55
55
 
56
56
  def pull_friends
57
57
  pull_result = self.puller.pull(self, &FRIENDS)
58
- @friend_relationship_db_ids = pull_result[:friend_relationship_db_ids]
58
+ @friend_relationship_db_ids = pull_result[:friend_relationship_db_ids] if pull_result
59
59
  end
60
60
 
61
61
  def pull_follower_ids
62
62
  pull_result = self.puller.pull(self, &FOLLOWER_IDS)
63
- @follower_relationship_db_ids = pull_result[:follower_relationship_db_ids]
63
+ @follower_relationship_db_ids = pull_result[:follower_relationship_db_ids] if pull_result
64
64
  end
65
65
 
66
66
  def pull_friend_ids
67
67
  pull_result = self.puller.pull(self, &FRIEND_IDS)
68
- @friend_relationship_db_ids = pull_result[:friend_relationship_db_ids]
68
+ @friend_relationship_db_ids = pull_result[:friend_relationship_db_ids] if pull_result
69
69
  end
70
70
 
71
71
  def puller
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 14
9
- version: 0.4.14
8
+ - 15
9
+ version: 0.4.15
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Gilbert