vidsy-data-api 0.12.0 → 0.13.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: 9903ef5ae3121cce5f213664628af2c2590cb90a
4
- data.tar.gz: 9938f75ee8e6a64e73001babd12b456ab046354a
3
+ metadata.gz: 4af539266505efd5b63254c071447d0af39d2b54
4
+ data.tar.gz: f2e237c0a0d95a93beda5bc0714959d8993ec2f9
5
5
  SHA512:
6
- metadata.gz: 68d21e6decd6a13563d29ddb68b5dfd44ce7262cd1154be3b576880f14a8464a7ff0c2ae04a9bf26183cc999ed13c381ecd60b633c0f0280535ebc714af530d9
7
- data.tar.gz: ee38ed832469d83d4f45880239129845363f795d9b7c7b3c02f2f838b8e364ccca5ebbabcbac1c31f26321e1a81fee06e5674eed839e2f69075a508c11d60142
6
+ metadata.gz: f2dc4030e2f43ca027318a84cc5b8829614e4d5e4a20cafe383d6a8d02bc7f7a641c62e4138cc25c8ad21ae0513f063c3a70746fb0aa4ec65b11ebba43312685
7
+ data.tar.gz: 0bdbe3304d65fae19dc0a305e9cda554128c1386628f516f74261976793afaad6399f140b0cbe7824561c655fc12037092357450a02b648471a594a9eae53174
@@ -21,6 +21,11 @@ module Vidsy
21
21
  new.find_by_email email
22
22
  end
23
23
 
24
+ def closed_submissions
25
+ raise(ArgumentError, "ID not set for User") if id.nil?
26
+ client.get "#{routes.user}/#{id}#{routes.submissions}/closed"
27
+ end
28
+
24
29
  def create(options)
25
30
  client.post(routes.user, options).first
26
31
  end
@@ -33,8 +38,18 @@ module Vidsy
33
38
  client.get("#{routes.user}?email=#{email}").first
34
39
  end
35
40
 
41
+ def open_submissions
42
+ raise(ArgumentError, "ID not set for User") if id.nil?
43
+ client.get "#{routes.user}/#{id}#{routes.submissions}/open"
44
+ end
45
+
46
+ def submissions
47
+ raise(ArgumentError, "ID not set for User") if id.nil?
48
+ client.get "#{routes.user}/#{id}#{routes.submissions}"
49
+ end
50
+
36
51
  def videos
37
- raise(ArgumentError, "ID not set for Video") if id.nil?
52
+ raise(ArgumentError, "ID not set for User") if id.nil?
38
53
  client.get "#{routes.user}/#{id}#{routes.videos}"
39
54
  end
40
55
 
@@ -1,7 +1,7 @@
1
1
  module Vidsy
2
2
  module Data
3
3
  module API
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidsy-data-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Revett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-14 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler