muck-friends 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/Rakefile +0 -1
  2. data/VERSION +1 -1
  3. data/app/controllers/muck/friends_controller.rb +65 -45
  4. data/app/helpers/muck_friends_helper.rb +2 -2
  5. data/app/models/friend_mailer.rb +1 -0
  6. data/app/views/friends/_friend_icon.html.erb +1 -1
  7. data/app/views/friends/_friend_tiny_icon.html.erb +1 -0
  8. data/lib/active_record/acts/muck_friend.rb +24 -14
  9. data/lib/active_record/acts/muck_friend_user.rb +4 -5
  10. data/lib/muck_friends.rb +2 -2
  11. data/locales/ar.yml +17 -9
  12. data/locales/bg.yml +18 -10
  13. data/locales/ca.yml +17 -9
  14. data/locales/cs.yml +17 -9
  15. data/locales/da.yml +17 -9
  16. data/locales/de.yml +17 -9
  17. data/locales/el.yml +17 -9
  18. data/locales/en.yml +2 -2
  19. data/locales/es.yml +17 -9
  20. data/locales/et.yml +17 -9
  21. data/locales/fa.yml +17 -9
  22. data/locales/fi.yml +17 -9
  23. data/locales/fr.yml +17 -9
  24. data/locales/gl.yml +18 -10
  25. data/locales/hi.yml +17 -9
  26. data/locales/hr.yml +17 -9
  27. data/locales/hu.yml +17 -9
  28. data/locales/id.yml +17 -9
  29. data/locales/it.yml +17 -9
  30. data/locales/iw.yml +17 -9
  31. data/locales/ja.yml +17 -9
  32. data/locales/ko.yml +17 -9
  33. data/locales/lt.yml +17 -9
  34. data/locales/lv.yml +17 -9
  35. data/locales/mt.yml +17 -9
  36. data/locales/nl.yml +17 -9
  37. data/locales/no.yml +17 -9
  38. data/locales/pl.yml +17 -9
  39. data/locales/pt-PT.yml +17 -9
  40. data/locales/ro.yml +17 -9
  41. data/locales/ru.yml +17 -9
  42. data/locales/sk.yml +17 -9
  43. data/locales/sl.yml +17 -9
  44. data/locales/sq.yml +17 -9
  45. data/locales/sr.yml +17 -9
  46. data/locales/sv.yml +17 -9
  47. data/locales/th.yml +17 -9
  48. data/locales/tl.yml +17 -9
  49. data/locales/tr.yml +18 -10
  50. data/locales/uk.yml +17 -9
  51. data/locales/vi.yml +17 -9
  52. data/locales/zh-CN.yml +17 -9
  53. data/locales/zh-TW.yml +17 -9
  54. data/locales/zh.yml +17 -9
  55. data/muck-friends.gemspec +3 -2
  56. data/test/rails_root/test/functional/default_controller_test.rb +3 -3
  57. data/test/rails_root/test/unit/friend_test.rb +118 -125
  58. data/test/rails_root/test/unit/user_test.rb +3 -3
  59. metadata +3 -2
@@ -91,14 +91,14 @@ class UserTest < ActiveSupport::TestCase
91
91
  setup do
92
92
  assert @quentin.follow(@aaron)
93
93
  end
94
- should "stop following the user" do
94
+ should "stop following the other user but retain follow for other user " do
95
95
  assert @aaron.become_friends_with(@quentin)
96
96
  assert @quentin.drop_friend(@aaron)
97
97
  assert !@quentin.followings.any?{|f| f.id == @aaron.id}
98
98
  assert @aaron.followings.any?{|f| f.id == @quentin.id}
99
99
  end
100
- should "stop being friends with the user but retain follow" do
101
- assert @quentin.drop_friend(@aaron)
100
+ should "stop being friends with the user but retain follow for other user" do
101
+ assert !@quentin.drop_friend(@aaron) # @aaron wasn't following @quentin so drop_friend will return false indicating that a friend object wasn't found to let @aaron continue following @quentin
102
102
  assert !@quentin.followings.any?{|f| f.id == @aaron.id}
103
103
  end
104
104
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-friends
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
  - Justin Ball
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-12 00:00:00 -06:00
12
+ date: 2009-08-13 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -69,6 +69,7 @@ files:
69
69
  - app/views/friends/_friend_icon.html.erb
70
70
  - app/views/friends/_friend_requests.html.erb
71
71
  - app/views/friends/_friend_simple.html.erb
72
+ - app/views/friends/_friend_tiny_icon.html.erb
72
73
  - app/views/friends/_mutual_friends.html.erb
73
74
  - app/views/friends/index.html.erb
74
75
  - config/muck_friends_routes.rb