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 +4 -4
- data/lib/vidsy/data/api/user.rb +16 -1
- data/lib/vidsy/data/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4af539266505efd5b63254c071447d0af39d2b54
|
4
|
+
data.tar.gz: f2e237c0a0d95a93beda5bc0714959d8993ec2f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2dc4030e2f43ca027318a84cc5b8829614e4d5e4a20cafe383d6a8d02bc7f7a641c62e4138cc25c8ad21ae0513f063c3a70746fb0aa4ec65b11ebba43312685
|
7
|
+
data.tar.gz: 0bdbe3304d65fae19dc0a305e9cda554128c1386628f516f74261976793afaad6399f140b0cbe7824561c655fc12037092357450a02b648471a594a9eae53174
|
data/lib/vidsy/data/api/user.rb
CHANGED
@@ -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
|
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
|
|
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.
|
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-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|