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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f98b8b58d796c88411770e8527cf42e744a8eb1321ba195a26320021d1697788
4
- data.tar.gz: e2e4bc61511e1847cc9b1ff7130f44e4b07106a3e652da677124e6104c6b9bcc
3
+ metadata.gz: c46f30b8b5b9225d17473b0f6d40dc62e8ef622a060dfd5bf89725878f5c131d
4
+ data.tar.gz: ee771c68ca17e54afa507590dc57b19a11ae87623b7a83909f596aee2a607137
5
5
  SHA512:
6
- metadata.gz: e76f57de1bf59425e296a30d83399a2a274f1a65bbd444919d1015c379e6e05585db8a4f0693faa910e1a2747c864c99e0e52738350802b4ddb7fb8fd5656976
7
- data.tar.gz: 114a26054d265d538fe36f6f1e83fe20051bf1c17fba36394121a4dc4fbd9a6d40bfd45fb9fca164587d4fef2abb45759f524b957c1fd4656ed8e1c168e3bf18
6
+ metadata.gz: 6a976e51b5f9b88b9c436ebb528a721c7b1e316e36815710ec981bf6ccc0149ec7e8dabef2594ecd9ca986c4e9e52e018a88a0b7b793497a8d49b0d816277879
7
+ data.tar.gz: c348cafe7287e8b3e97b7d1404405793a99b7737056f1eee7e12b13201a75698547e5fb150dc2c213ccac65e871ecfc51eb548c2af04135cd5599619fbb839ec
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Stream
2
- VERSION = '2.9.3'.freeze
2
+ VERSION = '2.10.0'.freeze
3
3
  end
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.9.3
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-08-02 00:00:00.000000000 Z
13
+ date: 2018-09-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday