social_stream 0.1.3 → 0.1.4

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/app/models/group.rb CHANGED
@@ -1,12 +1,4 @@
1
1
  class Group < ActiveRecord::Base
2
- validates_presence_of :name
3
-
4
- scope :alphabetic, includes(:actor).order('actors.name')
5
-
6
- def logo
7
- "group.png"
8
- end
9
-
10
2
  def followers
11
3
  sender_subjects(:user, :relations => 'follower')
12
4
  end
data/app/models/user.rb CHANGED
@@ -6,7 +6,7 @@ class User < ActiveRecord::Base
6
6
  # Setup accessible (or protected) attributes for your model
7
7
  attr_accessible :name, :email, :password, :password_confirmation, :remember_me
8
8
 
9
- validates_presence_of :name, :email
9
+ validates_presence_of :email
10
10
  validates_format_of :email, :with => Devise.email_regexp, :allow_blank => true
11
11
  # TODO: uniqueness of email, which is in actor
12
12
 
@@ -24,6 +24,10 @@ module SocialStream
24
24
  :to => :actor!
25
25
 
26
26
 
27
+ validates_presence_of :name
28
+
29
+ scope :alphabetic, includes(:actor).order('actors.name')
30
+
27
31
  scope :with_sent_ties, joins(:actor => :sent_ties)
28
32
  scope :with_received_ties, joins(:actor => :received_ties)
29
33
 
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "0.1.3".freeze
2
+ VERSION = "0.1.4".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Antonio Tapiador