acts_as_messenger 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/acts_as_messenger.gemspec +2 -5
- data/lib/acts_as_messenger/message.rb +1 -1
- data/lib/acts_as_messenger/thread.rb +1 -1
- metadata +2 -12
data/Rakefile
CHANGED
@@ -11,7 +11,6 @@ begin
|
|
11
11
|
gem.homepage = "http://github.com/mnelson/acts_as_messenger"
|
12
12
|
gem.authors = ["Mike Nelson"]
|
13
13
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
|
-
gem.add_development_dependency "active_record"
|
15
14
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
15
|
end
|
17
16
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/acts_as_messenger.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_messenger}
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "0.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Mike Nelson"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-03}
|
13
13
|
s.description = %q{Standard facebook-style messaging system. Not bound to any friendship structure. Integrates directly into your User model. Allows for users to comment on a thread, leave a thread, and be updated when a thread is commented on.}
|
14
14
|
s.email = %q{mdnelson30@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -56,14 +56,11 @@ Gem::Specification.new do |s|
|
|
56
56
|
|
57
57
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
58
58
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
59
|
-
s.add_development_dependency(%q<active_record>, [">= 0"])
|
60
59
|
else
|
61
60
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
62
|
-
s.add_dependency(%q<active_record>, [">= 0"])
|
63
61
|
end
|
64
62
|
else
|
65
63
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
66
|
-
s.add_dependency(%q<active_record>, [">= 0"])
|
67
64
|
end
|
68
65
|
end
|
69
66
|
|
@@ -7,7 +7,7 @@ module SocialButterfly
|
|
7
7
|
|
8
8
|
module ClassMethods
|
9
9
|
def acts_as_messenger
|
10
|
-
has_many :recipients, :as => :receiver
|
10
|
+
has_many :recipients, :as => :receiver, :include => :message_thread
|
11
11
|
has_many :unread_recipients, :source => :recipients, :class_name => 'Recipient', :as => :receiver, :conditions => {:read => false}
|
12
12
|
has_many :read_recipients, :source => :recipients, :class_name => 'Recipient', :as => :receiver, :conditions => {:read => true}
|
13
13
|
|
@@ -14,7 +14,7 @@ module SocialButterfly
|
|
14
14
|
validates_inclusion_of :private_thread, :in => [true, false]
|
15
15
|
|
16
16
|
belongs_to :author, :class_name => 'User'
|
17
|
-
has_many :comments, :as => :commentable, :dependent => :destroy
|
17
|
+
has_many :comments, :as => :commentable, :dependent => :destroy, :include => :author
|
18
18
|
has_many :comment_participants, :through => :comments, :source => :author, :uniq => true
|
19
19
|
|
20
20
|
named_scope :by_user, lambda {|user| user && {:conditions => ['author_id = ?', user.id]} || {}}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_messenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Nelson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-03 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,16 +22,6 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.2.9
|
24
24
|
version:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: active_record
|
27
|
-
type: :development
|
28
|
-
version_requirement:
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: "0"
|
34
|
-
version:
|
35
25
|
description: Standard facebook-style messaging system. Not bound to any friendship structure. Integrates directly into your User model. Allows for users to comment on a thread, leave a thread, and be updated when a thread is commented on.
|
36
26
|
email: mdnelson30@gmail.com
|
37
27
|
executables: []
|