hummingbirdme 0.0.3 → 0.0.4

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: c05db80910f8caa006da1e95329cb96ff07269ab
4
- data.tar.gz: dd9f65bab51f847964a6a4e47f12bbb0740fa2d0
3
+ metadata.gz: 3c21fe069c6777c779e0780348633e67eee60019
4
+ data.tar.gz: d39c1fc34ce38797bce7f22687fc0d42106cde33
5
5
  SHA512:
6
- metadata.gz: eae81d5ee833a50a70facf88911eefdaf972b1f9da2c770b01fb9ebf669afe6cebab9bc345a4b5502aab4855c4b887b11a74ad1eac73bcb3983dd49cf907d8c4
7
- data.tar.gz: 7d4fa40d88b39ebe22c3a51e79af678ebe306d8338d62aea4c386c4b3e6b2618c0a709671b3448507ccffd0fa70770d377c725eaabd4c93e499c12ae9353a796
6
+ metadata.gz: 6e8979107533a6dc34025f936d9937a10dc12a2cb873567f5663d29de27e9e00a066f06b25a83740f7abbf9c1bfab92fa726a2cf67d5f920b8510677468a8039
7
+ data.tar.gz: cd23014a67dbbf956fec00b8cf31237cb83dee86432c4ddbf6d5e9cc91213c3fee5df7a28624482186ec7f0552452475261231823cb4d76a90748dc1984ae560
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
- # Hummingbirdme
1
+ #Hummingbird.me API v1 Methods
2
+ [https://github.com/hummingbird-me/hummingbird](https://github.com/hummingbird-me/hummingbird)
2
3
 
3
- TODO: Write a gem description
4
+ I am doing this for my self but please feel free to use this ruby gem.
5
+ This is still a work in progres. Changes will be made durring the process.
4
6
 
5
7
  ## Installation
6
8
 
@@ -18,11 +20,26 @@ Or install it yourself as:
18
20
 
19
21
  ## Usage
20
22
 
21
- TODO: Write usage instructions here
23
+ Search Anime with an id or title
24
+
25
+ Hummingbirdme.find(22)
26
+
27
+ Get any user feed by adding a username
28
+
29
+ Hummingbirdme.user_feed(username)
30
+
31
+ Check to see what a user has favorited
32
+
33
+ Hummingbirdme.user_favorite_anime(username)
34
+
35
+ Get a users library
36
+
37
+ Hummingbirdme.user_library(username)
38
+
22
39
 
23
40
  ## Contributing
24
41
 
25
- 1. Fork it ( https://github.com/[my-github-username]/hummingbirdme/fork )
42
+ 1. Fork it ( https://github.com/Wesly-Mezarina/hummingbirdme/fork )
26
43
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
44
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
45
  4. Push to the branch (`git push origin my-new-feature`)
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Hummingbirdme::VERSION
9
9
  spec.authors = ["Wesly Mezarina"]
10
10
  spec.email = ["wesly@mezarina.me"]
11
- spec.summary = "A really easy way to use Hummingbird.me APi."
11
+ spec.summary = "A really easy way to use Hummingbird.me API."
12
12
  spec.description = "An easy way to help use Hummingbird.me API"
13
13
  spec.homepage = "https://github.com/Wesly-Mezarina/hummingbirdme"
14
14
  spec.license = "MIT"
data/lib/hummingbirdme.rb CHANGED
@@ -5,7 +5,19 @@ module Hummingbirdme
5
5
  include HTTParty
6
6
  base_uri 'hummingbird.me/api/v1'
7
7
 
8
- def self.find(id)
9
- get("/anime/#{id}.json")
8
+ def self.anime(id)
9
+ get("/anime/#{id}.json").parsed_response
10
+ end
11
+
12
+ def self.user_feed(username)
13
+ get("/users/#{username}/feed").parsed_response
14
+ end
15
+
16
+ def self.user_favorite_anime(username)
17
+ get("/users/#{username}/favorite_anime").parsed_response
18
+ end
19
+
20
+ def self.user_library(username)
21
+ get("/users/#{username}/library").parsed_response
10
22
  end
11
23
  end
@@ -1,3 +1,3 @@
1
1
  module Hummingbirdme
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hummingbirdme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesly Mezarina
@@ -90,5 +90,5 @@ rubyforge_project:
90
90
  rubygems_version: 2.2.2
91
91
  signing_key:
92
92
  specification_version: 4
93
- summary: A really easy way to use Hummingbird.me APi.
93
+ summary: A really easy way to use Hummingbird.me API.
94
94
  test_files: []