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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7174d801da7ef2e7b7c376863e3417db8b241bd9
4
- data.tar.gz: 24467ad5337df6bb1d1ed2a9f0a0d44c7d29a5d0
3
+ metadata.gz: fd4317310219e2581cbb801f686099884ff18568
4
+ data.tar.gz: ce45b47f8de11b64d9ac9f506e94d00a76352046
5
5
  SHA512:
6
- metadata.gz: e8c1a775eba29a916120b93c8ec49add0d624856a1d5f42a94eb9e394fbf36fcaa012c9f2e50420925527761b22a513a315c90428376081920d4f6dad5863461
7
- data.tar.gz: 5af2ed26e623e949d4df408ee0cbb716e2464fcac7c29ac9083e3422ca186a19b88af640f95064d17c6ba5cf3fdabf67501489f80a52b936930fabe7da24b666
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}"
@@ -1,7 +1,7 @@
1
1
  module Vidsy
2
2
  module Data
3
3
  module API
4
- VERSION = "0.7.1"
4
+ VERSION = "0.8.0"
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.7.1
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-03 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler