stream_rails 1.1 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/stream_rails/activity.rb +1 -1
- data/lib/stream_rails/feed_manager.rb +5 -5
- data/lib/stream_rails/version.rb +1 -1
- metadata +24 -25
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NmE5ZDQ0MDljOTgzYTdkNjNhMTFiMzU2YTdlZmZiZTg4N2Q3ZDM3MA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 016dba86836c2294b0a5577de9174c1b875505c4
|
4
|
+
data.tar.gz: 33db2c3a74a97944e7c4dab79d44d6894d30ac3c
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NTcwZDY5ZjZjNzEyZThlNGMyMmY5MGJmM2Y0YjhiZjFiYWE2OTI3YmYwYzQx
|
11
|
-
ZTI3ODM4M2VjYTc2MmNhNjQ1YWY1YzI0NmFiYTIzMmU3MzIwMGM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
N2U1NjU0YWFlMGZhMDZmMDY3MDliY2Y5YmM5YThjYTM4MzBlYmI1YTU5YjVj
|
14
|
-
ZDk1YTQ1YWFmODljOTE4NDkyOTdmNDk0NTVlYWNlNDBlZjM0Y2U3Y2JjMjg4
|
15
|
-
OGY3ZWU2NTI1OTc2M2QwYmY4ZjQyNjFiNWViNTQwZDIzNTNhN2I=
|
6
|
+
metadata.gz: d16e76cfdec6cc77c2392e3311204b80b28bc6f634a43adf48104ce3563e27d53560bbd62546d53e57570c11238509f6a2064533b0cc40dc8ea59dae9c66a5f2
|
7
|
+
data.tar.gz: caed45788f3ab7001043badac5bf66b2a5e69daad42756f808746430bb6490fe3046474aa39a7ba762a1e03aa92391ac47050fda96108996287809bc93579b18
|
@@ -11,7 +11,7 @@ module StreamRails
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def get_user_feed(user_id)
|
14
|
-
@client.feed(
|
14
|
+
@client.feed(@user_feed, user_id)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get_news_feeds(user_id)
|
@@ -19,18 +19,18 @@ module StreamRails
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def get_notification_feed(user_id)
|
22
|
-
@client.feed(
|
22
|
+
@client.feed(@notification_feed, user_id)
|
23
23
|
end
|
24
24
|
|
25
25
|
def get_feed(feed_type, user_id)
|
26
|
-
@client.feed(
|
26
|
+
@client.feed(feed_type, user_id)
|
27
27
|
end
|
28
28
|
|
29
29
|
def follow_user(user_id, target_id)
|
30
30
|
target_feed = self.get_user_feed(target_id)
|
31
31
|
@news_feeds.each do |_, feed|
|
32
32
|
news_feed = self.get_feed(feed, user_id)
|
33
|
-
news_feed.follow(target_feed.
|
33
|
+
news_feed.follow(target_feed.slug, target_feed.user_id)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -38,7 +38,7 @@ module StreamRails
|
|
38
38
|
target_feed = self.get_user_feed(target_id)
|
39
39
|
@news_feeds.each do |_, feed|
|
40
40
|
news_feed = self.get_feed(feed, user_id)
|
41
|
-
news_feed.unfollow(target_feed.
|
41
|
+
news_feed.unfollow(target_feed.slug, target_feed.user_id)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
data/lib/stream_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,139 +1,139 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stream_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '2.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommaso Barbugli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10
|
11
|
+
date: 2014-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: stream-ruby
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '2.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activerecord
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 3.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 3.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: fakeweb
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sqlite3
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '2.10'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '2.10'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: simplecov
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 0.7.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 0.7.1
|
139
139
|
description:
|
@@ -167,12 +167,12 @@ require_paths:
|
|
167
167
|
- lib
|
168
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
|
-
- -
|
170
|
+
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: 1.9.2
|
173
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
|
-
- -
|
175
|
+
- - ">="
|
176
176
|
- !ruby/object:Gem::Version
|
177
177
|
version: '0'
|
178
178
|
requirements: []
|
@@ -182,4 +182,3 @@ signing_key:
|
|
182
182
|
specification_version: 4
|
183
183
|
summary: A gem that provides a client interface for getstream.io
|
184
184
|
test_files: []
|
185
|
-
has_rdoc: true
|