vidsy-data-api 0.14.0 → 0.15.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/submission.rb +8 -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: 9c8ad33461ffa0e7880bb177397e382ca7711caa
|
4
|
+
data.tar.gz: 91bd7d53e7a0eeecaea0d1c25dd66a6fb23936d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbcbe83485aab14c56470c6ce39a8553ba0e64d045879345fc9d333e06a27006691cec9b34124a7e020c676e938e039a4ec493f17aa7e3eccd5871ca450ad6fd
|
7
|
+
data.tar.gz: 64f92cc50c09ca9e29e9e0b2e5ab2303ba4c0b77d0166f5879f143d1976b10d8fbdb1cdd6aa565d71a8075e65c8397c649aa0da837e0ed5b3f62566f239fe8e5
|
@@ -9,10 +9,18 @@ module Vidsy
|
|
9
9
|
new.create options
|
10
10
|
end
|
11
11
|
|
12
|
+
def self.find(id)
|
13
|
+
new.find id
|
14
|
+
end
|
15
|
+
|
12
16
|
def create(options)
|
13
17
|
client.post(routes.submission, options).first
|
14
18
|
end
|
15
19
|
|
20
|
+
def find(id)
|
21
|
+
client.get("#{routes.submission}/#{id}").first
|
22
|
+
end
|
23
|
+
|
16
24
|
private
|
17
25
|
|
18
26
|
def client
|
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.15.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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|