wes-data-api 10.8.0 → 10.9.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
  SHA1:
3
- metadata.gz: eb7f6ad2e174bf26384bbc6693e306b9125b42b9
4
- data.tar.gz: 51cade22a009435caec498ab2daddc4e80361d77
3
+ metadata.gz: fd0e46c320b1302fc4aefb73bce7cfb1a280540f
4
+ data.tar.gz: e7047e1bc49bdc87b4ce1d954e31ba0e89cc81ad
5
5
  SHA512:
6
- metadata.gz: e793137780860df8b9a436ddd1047acb25ddfaa75889992fcd3b38ccba990359edd9f80aafb59d680f5388f6ef384e2565c0a7d2f09e646b760b1036bdf1a59c
7
- data.tar.gz: 020dcb2f995eb7a219dec960b293c03791e024708c6d5280d50d39063bf6763bf8f29f1d28c6c0118c9051b6c4336f3321ac2a615a51c232e157aa9ccf9d0587
6
+ metadata.gz: 45062d807b19f1f90c24671eeb793f828bdd41bfe476de71c471fc7ee4e7c218e206f5012d2833a89ddc1ab4648b1f0ec3cdc554e7679d6530561c652e6aeeb1
7
+ data.tar.gz: 48688675a4935e2cf6d7d0fada8fc8761f737f2303bc015771a81028f962035dfe79b60ba329a6e05e62ce5753d21362a874b13b861d671c3dcad79c3d9b3336
@@ -38,7 +38,7 @@ module Wes
38
38
  if fetch
39
39
  fetch_submission
40
40
  else
41
- es::Data::API::Model::Submission.new(
41
+ Wes::Data::API::Model::Submission.new(
42
42
  @attributes.submission.first
43
43
  )
44
44
  end
@@ -13,6 +13,7 @@ module Wes
13
13
  collectives: 'collectives',
14
14
  creator_user: 'creator-user',
15
15
  creator_users: 'creator-users',
16
+ feed: 'feed',
16
17
  rewards: 'rewards',
17
18
  reward: 'reward',
18
19
  showcase: 'showcase',
@@ -14,11 +14,17 @@ module Wes
14
14
  end
15
15
 
16
16
  def find(key, value)
17
- route = generate_route(key, value)
17
+ route = generate_route(key, value)
18
18
  attributes = client.get(route).first
19
19
  attributes.nil? ? nil : model_klass.new(attributes)
20
20
  end
21
21
 
22
+ def feed
23
+ route = [routes.videos, routes.feed].join('/')
24
+ attributes = client.get(route)
25
+ attributes.map { |a| model_klass.new(a) }
26
+ end
27
+
22
28
  private
23
29
 
24
30
  def generate_route(key, value)
data/lib/wes/data/api.rb CHANGED
@@ -5,7 +5,7 @@ require 'wes/data/api/configuration'
5
5
  module Wes
6
6
  module Data
7
7
  module API
8
- VERSION = '10.8.0'.freeze
8
+ VERSION = '10.9.0'.freeze
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wes-data-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.8.0
4
+ version: 10.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-19 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler