social_stream-base 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/app/models/actor.rb CHANGED
@@ -65,7 +65,8 @@ class Actor < ActiveRecord::Base
65
65
  :through => :sent_contacts,
66
66
  :uniq => true
67
67
 
68
- has_many :relations
68
+ has_many :relations,
69
+ :dependent => :destroy
69
70
 
70
71
  scope :alphabetic, order('actors.name')
71
72
 
@@ -25,10 +25,13 @@ class Contact < ActiveRecord::Base
25
25
  belongs_to :receiver,
26
26
  :class_name => "Actor"
27
27
 
28
- has_many :ties
29
- has_many :relations, :through => :ties
28
+ has_many :ties,
29
+ :dependent => :destroy
30
+ has_many :relations,
31
+ :through => :ties
30
32
 
31
- has_many :activities
33
+ has_many :activities,
34
+ :dependent => :destroy
32
35
 
33
36
  scope :sent_by, lambda { |a|
34
37
  where(:sender_id => Actor.normalize_id(a))
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.8.1".freeze
3
+ VERSION = "0.8.2".freeze
4
4
  end
5
5
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  # CRUD controllers
24
24
  s.add_runtime_dependency('inherited_resources', '~> 1.3.0')
25
25
  # Slug generation
26
- s.add_runtime_dependency('stringex', '~> 1.2.0')
26
+ s.add_runtime_dependency('stringex', '~> 1.3.0')
27
27
  # Avatar attachments
28
28
  s.add_runtime_dependency('avatars_for_rails', '~> 0.1.3')
29
29
  # jQuery
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-base
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
9
+ - 2
10
+ version: 0.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - GING - DIT - UPM
@@ -107,12 +107,12 @@ dependencies:
107
107
  requirements:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
- hash: 31
110
+ hash: 27
111
111
  segments:
112
112
  - 1
113
- - 2
113
+ - 3
114
114
  - 0
115
- version: 1.2.0
115
+ version: 1.3.0
116
116
  type: :runtime
117
117
  version_requirements: *id006
118
118
  - !ruby/object:Gem::Dependency