vidsy-data-api 0.9.0 → 0.10.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: ab586295c4cf7c18378463b18f7a2db2d1c75cb9
4
- data.tar.gz: b2ef8e375a4efdd22fba7f10d890986c7fcf6cc4
3
+ metadata.gz: 2d2754ab65ca610ae8f1f319c2be55dbecd7d2e7
4
+ data.tar.gz: 9e21fbbf771e671b218b0224d7725e482cfeadfd
5
5
  SHA512:
6
- metadata.gz: c7b7d7cd91362ff63759796a0e2068193334a3f0b8e29d5879067bce3628041f1d13614069cc62ed94e4d5ba976305f044eabea56782e8d039ec532a7f1acc85
7
- data.tar.gz: 80bdf8e5c1f5674d815b4b704b551e0c8604091daa4a8996a2045d935d09e05cf1d71762d519aa9e48a267e0c8fbb10e39e4ff9590d6650712bb5101049e3952
6
+ metadata.gz: a321ac4727889271239098c8739984e454d3aaf1be2cc592866a5dd53e8141b224feabb9f811896af73a43160a73a5d94263b8b8f94278a82307f0c07f3e06e1
7
+ data.tar.gz: d89400f6d90369f5478dc198a2fc7ea0775deca661d507aefce05b689d4b608fcdab126c000fc6894c6e47c5b86a681c84bc7a5b6ef267419ce4e8b1591d220e
@@ -13,6 +13,10 @@ module Vidsy
13
13
  new.find id
14
14
  end
15
15
 
16
+ def self.find_by_email(email)
17
+ new.find_by_email email
18
+ end
19
+
16
20
  def create(options)
17
21
  client.post(routes.user, options).first
18
22
  end
@@ -21,6 +25,11 @@ module Vidsy
21
25
  client.get("#{routes.user}/#{id}").first
22
26
  end
23
27
 
28
+ def find_by_email(email)
29
+ binding.pry
30
+ client.get("#{routes.user}?email=#{email}").first
31
+ end
32
+
24
33
  private
25
34
 
26
35
  def client
@@ -1,7 +1,7 @@
1
1
  module Vidsy
2
2
  module Data
3
3
  module API
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.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.9.0
4
+ version: 0.10.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-16 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler