stream-ruby 2.9.3 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stream/collections.rb +8 -0
- data/lib/stream/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c46f30b8b5b9225d17473b0f6d40dc62e8ef622a060dfd5bf89725878f5c131d
|
4
|
+
data.tar.gz: ee771c68ca17e54afa507590dc57b19a11ae87623b7a83909f596aee2a607137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a976e51b5f9b88b9c436ebb528a721c7b1e316e36815710ec981bf6ccc0149ec7e8dabef2594ecd9ca986c4e9e52e018a88a0b7b793497a8d49b0d816277879
|
7
|
+
data.tar.gz: c348cafe7287e8b3e97b7d1404405793a99b7737056f1eee7e12b13201a75698547e5fb150dc2c213ccac65e871ecfc51eb548c2af04135cd5599619fbb839ec
|
data/lib/stream/collections.rb
CHANGED
@@ -24,6 +24,14 @@ module Stream
|
|
24
24
|
make_collection_request(:delete, params, {})
|
25
25
|
end
|
26
26
|
|
27
|
+
def create_reference(collection, id)
|
28
|
+
"SO:#{collection}:#{id}"
|
29
|
+
end
|
30
|
+
|
31
|
+
def create_user_reference(id)
|
32
|
+
create_reference('user', id)
|
33
|
+
end
|
34
|
+
|
27
35
|
private
|
28
36
|
|
29
37
|
def make_collection_request(method, params, data)
|
data/lib/stream/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stream-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommaso Barbugli
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|