beemo 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51212db1425a5bab27e74f61a35991fd5e9bef6c
4
- data.tar.gz: a9aaf7586e2ecfa0827488bc7ba0dc7d1b54bb2d
3
+ metadata.gz: 76b8dd329db862dcb32780268ae527d6e5602f07
4
+ data.tar.gz: e7cf3358429f3d2de9527e053a583fd3bf64742a
5
5
  SHA512:
6
- metadata.gz: 2908136af964917268bcefca8964bc48af9dbcb6112cc68dde6eddcb7e99d99df5a81a7f89c8eac1c7997708c4f99127ab576c4df95fad8b82612d46f71f8e70
7
- data.tar.gz: e43ab0aacf3a1d56fff21879e2029c7e1692ccd21e922c08ceb4f228a2d8879fda136d0fae5b9f2643e5f75f0279a0e2336b9d06e8858a7315197a80c37258c9
6
+ metadata.gz: d05b8c81c245758427fe96754707954a15c55252356506a212b41735faaf5a26039279fc6d2e7f71b9720a2f045504b62c44a1d9f95ee401294ccc0ee45accea
7
+ data.tar.gz: 836ba51e1732bc441a13cb1f829474e9ef4dcc4a5247ea7dfa7ce64775b45d7c8f270d103ddecb386500eed8a538e0bc38947169bbe53577559c3eb8fc275db7
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Beemo
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -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 = data["name"]
7
+ @name = data["name"]
8
8
  @location = data["location"]
9
- @uid = data["uri"].split("/").last
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
@@ -1,3 +1,3 @@
1
1
  module Beemo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-20 00:00:00.000000000 Z
11
+ date: 2014-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler