social_stream 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # Database foreign keys
2
+ require 'foreigner'
1
3
  # jQuery
2
4
  require 'jquery-rails'
3
5
  # Permalinks:
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "0.1.5".freeze
2
+ VERSION = "0.1.6".freeze
3
3
  end
@@ -60,7 +60,7 @@ namespace :db do
60
60
  users = available_users.dup - Array(u)
61
61
  user_relations = %w( Friend ).map{ |r| Relation.mode('User', 'User').find_by_name(r) }
62
62
 
63
- Forgery::Basic.number.times do
63
+ Forgery::Basic.number(:at_most => users.size).times do
64
64
  user = users.delete_at((rand * users.size).to_i)
65
65
  u.ties.create :receiver => user.actor,
66
66
  :relation => user_relations.random
@@ -68,7 +68,7 @@ namespace :db do
68
68
  groups = available_groups.dup
69
69
  group_relations = Relation.mode('User', 'Group')
70
70
 
71
- Forgery::Basic.number.times do
71
+ Forgery::Basic.number(:at_most => groups.size).times do
72
72
  group = groups.delete_at((rand * groups.size).to_i)
73
73
  u.ties.create :receiver => group.actor,
74
74
  :relation => group_relations.random
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Antonio Tapiador