tekeya 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/tekeya.rb CHANGED
@@ -41,7 +41,7 @@ module Tekeya
41
41
  module Activity
42
42
  extend ActiveSupport::Autoload
43
43
 
44
- autoload :FeedItem
44
+ autoload :Item
45
45
  autoload :Resque
46
46
 
47
47
  module Resque
data/lib/tekeya/entity.rb CHANGED
@@ -312,13 +312,13 @@ module Tekeya
312
312
  acts_keys = ::Tekeya.redis.zrange(pkey, 0, -1)
313
313
  # Retrieve the aggregates
314
314
  acts_keys.each do |act_key|
315
- acts << ::Tekeya::Feed::Activity::FeedItem.from_redis(act_key, self)
315
+ acts << ::Tekeya::Feed::Activity::Item.from_redis(act_key, self)
316
316
  end
317
317
  else
318
318
  # Retrieve the activities from the DB
319
319
  db_recent_activities = self.activities.recent
320
320
  db_recent_activities.each do |activity|
321
- acts << ::Tekeya::Feed::Activity::FeedItem.from_db(activity, self)
321
+ acts << ::Tekeya::Feed::Activity::Item.from_db(activity, self)
322
322
  end
323
323
  end
324
324
 
@@ -339,14 +339,14 @@ module Tekeya
339
339
  acts_keys = ::Tekeya.redis.zrange(fkey, 0, -1)
340
340
  # Retrieve the aggregates
341
341
  acts_keys.each do |act_key|
342
- acts << ::Tekeya::Feed::Activity::FeedItem.from_redis(act_key, self)
342
+ acts << ::Tekeya::Feed::Activity::Item.from_redis(act_key, self)
343
343
  end
344
344
  else
345
345
  # Retrieve the activities from the DB
346
346
  (self.tracking + [self]).each do |tracker|
347
347
  db_recent_activities = tracker.activities.recent
348
348
  db_recent_activities.each do |activity|
349
- acts << ::Tekeya::Feed::Activity::FeedItem.from_db(activity, tracker)
349
+ acts << ::Tekeya::Feed::Activity::Item.from_db(activity, tracker)
350
350
  end
351
351
  end
352
352
  end
@@ -1,7 +1,7 @@
1
1
  module Tekeya
2
2
  module Feed
3
3
  module Activity
4
- class FeedItem
4
+ class Item
5
5
  attr_reader :activity_id, :activity_type, :attachments, :actor, :timestamp
6
6
 
7
7
  def initialize(activity_id, activity_type, attachments, actor, timestamp)
@@ -16,7 +16,7 @@ module Tekeya
16
16
  #
17
17
  # @param [String] key the aggregate key of the activity
18
18
  # @param [Tekeya::Entity] act_actor the activty actor; when nil the actor is retrieved from the aggregate key
19
- # @return [Tekeya::Feed::FeedItem] the feed item
19
+ # @return [Tekeya::Feed::Activity::Item] the feed item
20
20
  def self.from_redis(key, act_actor = nil)
21
21
  key_components = key.split(':')
22
22
 
@@ -42,7 +42,7 @@ module Tekeya
42
42
  #
43
43
  # @param [Tekeya::Activity] activity the source activity
44
44
  # @param [Tekeya::Entity] act_actor the activty actor; when nil the actor is retrieved from the activity
45
- # @return [Tekeya::Feed::FeedItem] the feed item
45
+ # @return [Tekeya::Feed::Activity::Item] the feed item
46
46
  def self.from_db(activity, act_actor = nil)
47
47
  act_id = activity.id.to_s
48
48
  act_type = activity.activity_type.to_sym
@@ -1,3 +1,3 @@
1
1
  module Tekeya
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tekeya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-05 00:00:00.000000000 Z
13
+ date: 2012-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: redis
17
- requirement: &70335164985160 !ruby/object:Gem::Requirement
17
+ requirement: &70286481928400 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70335164985160
25
+ version_requirements: *70286481928400
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rebat
28
- requirement: &70335164984420 !ruby/object:Gem::Requirement
28
+ requirement: &70286481921620 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.1.4
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70335164984420
36
+ version_requirements: *70286481921620
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: resque
39
- requirement: &70335164983360 !ruby/object:Gem::Requirement
39
+ requirement: &70286481918560 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.23.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70335164983360
47
+ version_requirements: *70286481918560
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: railties
50
- requirement: &70335164982180 !ruby/object:Gem::Requirement
50
+ requirement: &70286481911860 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '3.1'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70335164982180
58
+ version_requirements: *70286481911860
59
59
  description: a social engine for Rails applications based on Redis and RebatDB
60
60
  email:
61
61
  - omar.mekky@mashsolvents.com
@@ -95,7 +95,7 @@ files:
95
95
  - lib/tekeya/errors/tekeya_relation_already_exists.rb
96
96
  - lib/tekeya/errors/tekeya_relation_non_existent.rb
97
97
  - lib/tekeya/feed/activity.rb
98
- - lib/tekeya/feed/activity/feed_item.rb
98
+ - lib/tekeya/feed/activity/item.rb
99
99
  - lib/tekeya/feed/activity/resque.rb
100
100
  - lib/tekeya/feed/activity/resque/activity_fanout.rb
101
101
  - lib/tekeya/feed/activity/resque/delete_activity.rb