party_boy 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
data/lib/party_boy.rb CHANGED
@@ -147,6 +147,23 @@ module Party
147
147
  end
148
148
  end
149
149
 
150
+ def respond_to?(name)
151
+ if !super(name)
152
+ case name
153
+ when /^(.+)ss_followers$/
154
+ true
155
+ when /^(.+)s_followers$/, /^(.+)_followers$/
156
+ true
157
+ when /^following_(.+)$/
158
+ true
159
+ else
160
+ false
161
+ end
162
+ else
163
+ true
164
+ end
165
+ end
166
+
150
167
  private
151
168
 
152
169
  def relationships_to(type)
data/party_boy.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{party_boy}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
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-02}
12
+ s.date = %q{2010-02-24}
13
13
  s.description = %q{Models relationships between AR models. Allows you to follow, friend, and block other AR's. Consists of two mixins: acts_as_followable and acts_as_friend. These options allow an AR to inherit either a twitter-like follower system or a facebook-like friend system.}
14
14
  s.email = %q{mdnelson30@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -2,4 +2,6 @@ class FollowerClass < ActiveRecord::Base
2
2
  include Party::Boy
3
3
 
4
4
  acts_as_followable
5
+
6
+ alias_attribute :favorite_businesses, :following_businesses
5
7
  end
@@ -172,6 +172,7 @@ describe "party_boy -- follower" do
172
172
 
173
173
  u.following.size.should eql(3)
174
174
  u.following_businesses.size.should eql(2)
175
+ u.favorite_businesses.size.should eql(2)
175
176
  u.following_users.size.should eql(1)
176
177
 
177
178
  b.follow(u)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: party_boy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
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-02 00:00:00 -05:00
12
+ date: 2010-02-24 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency