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 +4 -4
- data/lib/vidsy/data/api/user.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: 2d2754ab65ca610ae8f1f319c2be55dbecd7d2e7
|
4
|
+
data.tar.gz: 9e21fbbf771e671b218b0224d7725e482cfeadfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a321ac4727889271239098c8739984e454d3aaf1be2cc592866a5dd53e8141b224feabb9f811896af73a43160a73a5d94263b8b8f94278a82307f0c07f3e06e1
|
7
|
+
data.tar.gz: d89400f6d90369f5478dc198a2fc7ea0775deca661d507aefce05b689d4b608fcdab126c000fc6894c6e47c5b86a681c84bc7a5b6ef267419ce4e8b1591d220e
|
data/lib/vidsy/data/api/user.rb
CHANGED
@@ -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
|
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.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-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|