flexible_feeds 0.3.6 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjgzNmE4YzZmMzgzOWE0NDY4OWQ0OWRlYTE1NGI0Y2U1ODI2ZWUwZQ==
4
+ MTU2MWIxMGE1OWRlNjI0MzhlNjQwNmM4MjgyMTkwZjUwODAzNmViMw==
5
5
  data.tar.gz: !binary |-
6
- MWNlYzEwYTRhMzFhNmNlMTkwMWU2ZDgyY2FhNWMwYjhmNjcxNjcyOQ==
6
+ NDIzNDM4NTYxNGU1YzQ3YzlhOWNkNTE3OTI4YjVlYTk5YTQ1NGIwNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmU1NTNlZmY5OGM4NTk0ZmUzZjM0NGQ1ZjNiNTg1ZWE2MTExNzI0ZmJhYTU0
10
- MjEwNjA3YWJkOGNiODJjZGNmMGM5NzM2ZmQ1OGFhNGJhZGIzM2Y5MDAxYjg1
11
- MWFiMGQ5OTRiMjZkN2U0MmNmZjdjYWI3ZjkxM2Q4NDA0YmRkMGQ=
9
+ NjU2OTAxMzI3N2Q2ODM4NjdkZDEyNTU3OTgwNDAyNWEwNGVhYzY1ODcwZmFk
10
+ MDhjNTVmMWYzMzljZTg0MDZkZjJhYjEwMmZiNTAyNmY1YjM2ZmMzMTIyZTUy
11
+ ZDc4OWI0NDZlZmRjMTE2ZjVlNWYzZWFhZGRhZjZlYWQ0Njk4NjU=
12
12
  data.tar.gz: !binary |-
13
- NzYwYjYwYjJiYzk1YmFmY2U5ZGFjYzVkMmUwZGU3MjIyYTlhMDMyYTBkMjU3
14
- ZWU4Y2ZmM2ExODU0NWQyNjBlYmQ0OTc3MzFlZjk5NDYzMmFlZjY5MDUxNTRh
15
- N2VkN2Q1Njc1OWQ3OTE1NjQzZDhhZjUyMjZiZDhmOGUzMzJmZTc=
13
+ YjMwYTQzMjA1YjcxYTZiNDRiZmI5MzliY2UxN2M2MzY4NWFhMWEwMGUwNTYz
14
+ ZWY5OTAzZGFkZTZlY2ZlZDYwZGVjODQ4M2EzZTQyNzMwYWYwYWMyYjY0NmMx
15
+ Y2ZjZWE1NDgxZWNhYTBhZDgxNzMzZDhmMTgwN2IxNzJmMGYzMDY=
@@ -1,7 +1,6 @@
1
1
  module FlexibleFeeds
2
2
  class Event < ActiveRecord::Base
3
3
  belongs_to :ancestor, class_name: "FlexibleFeeds::Event"
4
- belongs_to :creator, polymorphic: true
5
4
  belongs_to :eventable, polymorphic: true
6
5
  belongs_to :parent, class_name: "FlexibleFeeds::Event"
7
6
 
@@ -3,8 +3,6 @@ class CreateFlexibleFeedsEvents < ActiveRecord::Migration
3
3
  create_table :flexible_feeds_events do |t|
4
4
  t.string :eventable_type
5
5
  t.integer :eventable_id
6
- t.integer :creator_id
7
- t.string :creator_type
8
6
 
9
7
  t.integer :parent_id
10
8
  t.integer :ancestor_id
@@ -30,8 +28,5 @@ class CreateFlexibleFeedsEvents < ActiveRecord::Migration
30
28
  add_index :flexible_feeds_events,
31
29
  [:eventable_id, :eventable_type],
32
30
  name: "flexible_feeds_events_on_eventable"
33
- add_index :flexible_feeds_events,
34
- [:creator_id, :creator_type],
35
- name: "flexible_feeds_events_on_creator"
36
31
  end
37
32
  end
@@ -16,9 +16,6 @@ module FlexibleFeeds
16
16
  cattr_accessor :default_feeds
17
17
  self.default_feeds = options[:add_to_feeds] || :default_custom_feeds
18
18
 
19
- cattr_accessor :created_by
20
- self.created_by = options[:created_by]
21
-
22
19
  if options[:is_parent] === true
23
20
  acts_as_parent
24
21
  elsif options[:is_parent].present?
@@ -50,16 +47,12 @@ module FlexibleFeeds
50
47
  end
51
48
 
52
49
  private
53
- def creator
54
- send(created_by) if created_by.present?
55
- end
56
-
57
50
  def post_to_default_feeds
58
51
  post_to_feeds(public_send(default_feeds))
59
52
  end
60
53
 
61
54
  def create_event_if_nil
62
- create_event!(creator: creator) if event.nil?
55
+ create_event! if event.nil?
63
56
  end
64
57
 
65
58
  def create_event_for(destinations)
@@ -1,3 +1,3 @@
1
1
  module FlexibleFeeds
2
- VERSION = "0.3.6"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexible_feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - timothycommoner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-21 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails