beemo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -2
- data/lib/beemo/user.rb +5 -3
- data/lib/beemo/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: 76b8dd329db862dcb32780268ae527d6e5602f07
|
4
|
+
data.tar.gz: e7cf3358429f3d2de9527e053a583fd3bf64742a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d05b8c81c245758427fe96754707954a15c55252356506a212b41735faaf5a26039279fc6d2e7f71b9720a2f045504b62c44a1d9f95ee401294ccc0ee45accea
|
7
|
+
data.tar.gz: 836ba51e1732bc441a13cb1f829474e9ef4dcc4a5247ea7dfa7ce64775b45d7c8f270d103ddecb386500eed8a538e0bc38947169bbe53577559c3eb8fc275db7
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Beemo
|
2
2
|
|
3
|
-
|
3
|
+
This is a terrible wrapper for the Vimeo API
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -20,7 +20,20 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Configure
|
24
|
+
--------
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
Beemo.configuration[:access_token] = ENV["VIMEO_ACCESS_TOKEN"]
|
28
|
+
```
|
29
|
+
Use
|
30
|
+
-----
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
Beemo::User.search("search_term") # => A list of users
|
34
|
+
Beemo::User.user_info("uid") # => A specific user
|
35
|
+
```
|
36
|
+
|
24
37
|
|
25
38
|
## Contributing
|
26
39
|
|
data/lib/beemo/user.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
class Beemo::User
|
2
2
|
include HTTParty
|
3
3
|
base_uri "https://api.vimeo.com/"
|
4
|
-
attr_accessor :name, :location, :uid
|
4
|
+
attr_accessor :name, :location, :uid, :profile_pics, :url
|
5
5
|
|
6
6
|
def initialize(data)
|
7
|
-
@name
|
7
|
+
@name = data["name"]
|
8
8
|
@location = data["location"]
|
9
|
-
@uid
|
9
|
+
@uid = data["uri"].split("/").last
|
10
|
+
@profile_pics = data["pictures"]
|
11
|
+
@url = data["link"]
|
10
12
|
end
|
11
13
|
|
12
14
|
def self.default_headers
|
data/lib/beemo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beemo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bookis Smuin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|