vidsy-data-api 0.7.1 → 0.8.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/challenge.rb +9 -0
- 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: fd4317310219e2581cbb801f686099884ff18568
|
4
|
+
data.tar.gz: ce45b47f8de11b64d9ac9f506e94d00a76352046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c262b8232d63f5a7c7277ab249f0b7280c4659f95f135b9833bee1e40d91cacdc067a667e062875449ff2afa410f01fa474a1032bceb38699119a0901251c750
|
7
|
+
data.tar.gz: 3f786f34719216ea5de90db2c1446070a5612b948f11d6568d583ad48c70e1e623ec8deb587ed60a09de6d896d55c5bcb046f2fd4fe66b1221a02bd1eb07d1b4
|
@@ -13,10 +13,19 @@ module Vidsy
|
|
13
13
|
new.find id
|
14
14
|
end
|
15
15
|
|
16
|
+
def self.open
|
17
|
+
new.open
|
18
|
+
end
|
19
|
+
|
16
20
|
def find(id)
|
17
21
|
client.get("#{routes.challenge}/#{id}").first
|
18
22
|
end
|
19
23
|
|
24
|
+
def open
|
25
|
+
binding.pry
|
26
|
+
client.get "#{routes.challenges}/open"
|
27
|
+
end
|
28
|
+
|
20
29
|
def videos
|
21
30
|
raise(ArgumentError, "ID not set for Challenge") if id.nil?
|
22
31
|
client.get "#{routes.challenge}/#{id}#{routes.videos}"
|
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.8.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-02-
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|