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.
- data/lib/social_stream/rails.rb +2 -0
- data/lib/social_stream/version.rb +1 -1
- data/lib/tasks/db/populate.rake +2 -2
- metadata +3 -3
data/lib/social_stream/rails.rb
CHANGED
data/lib/tasks/db/populate.rake
CHANGED
@@ -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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Antonio Tapiador
|