myanimelist 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -2
- data/lib/myanimelist/anime.rb +1 -1
- data/lib/myanimelist/manga.rb +1 -1
- data/lib/myanimelist/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60ee360b5bd08a49364d81064109805a61cc58d8
|
4
|
+
data.tar.gz: 6dce9b0faaae0d0aaec913d0c8914118fc19cba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 808261cb089aeaa457579bfade0b3473cbb3d2d34d46fbd47a8e0539a7dfeba93cd4f59b27ff6399151c76f52b0bd23798e847013c8a45329b5e5b93e7e708ef
|
7
|
+
data.tar.gz: 64dd32a27dd3a9d7e8d9580502fcd5aaadc07768d6613c23a6fff4a1a4c59f2c8d5dd8556670c10b1ebcecba720f2d50f7ebaf6b6ee41e89fa00c8f42567cef5
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# MyAnimeList
|
2
2
|
An API for http://myanimelist.net for searching animes and mangas up to date!
|
3
3
|
For additional documentation, visit: http://myanimelist.net/modules.php?go=api
|
4
4
|
## Installation
|
5
5
|
|
6
6
|
Add this line to your application's Gemfile:
|
7
7
|
|
8
|
-
gem 'myanimelist', '~> 0.0.
|
8
|
+
gem 'myanimelist', '~> 0.0.6'
|
9
9
|
|
10
10
|
And then execute:
|
11
11
|
|
@@ -42,6 +42,29 @@ If you are not using rails make sure to set this up before you can start searchi
|
|
42
42
|
|
43
43
|
Simple isn't it?
|
44
44
|
|
45
|
+
##Example
|
46
|
+
```ruby
|
47
|
+
MyAnimeList.search_anime('Fairy Tail')
|
48
|
+
|
49
|
+
#will result to the followinghash
|
50
|
+
|
51
|
+
=> [{"id"=>"6702",
|
52
|
+
"title"=>"Fairy Tail",
|
53
|
+
"english"=>nil,
|
54
|
+
"synonyms"=>nil,
|
55
|
+
"episodes"=>"175",
|
56
|
+
"score"=>"8.57",
|
57
|
+
"type"=>"TV",
|
58
|
+
"status"=>"Finished Airing",
|
59
|
+
"start_date"=>"2009-10-12",
|
60
|
+
"end_date"=>"2013-03-30",
|
61
|
+
"synopsis"=>
|
62
|
+
"Set in an imaginary world, the Earth Land, there exists a Mage Guild called Fairy Tail...",
|
63
|
+
"image"=>"http://cdn.myanimelist.net/images/anime/5/18179.jpg"}
|
64
|
+
}]
|
65
|
+
|
66
|
+
```
|
67
|
+
|
45
68
|
## Contributing
|
46
69
|
|
47
70
|
1. Fork it
|
data/lib/myanimelist/anime.rb
CHANGED
@@ -13,7 +13,7 @@ module MyAnimeList
|
|
13
13
|
def get_search(name)
|
14
14
|
response = RestClient::Request.new(
|
15
15
|
method: :get,
|
16
|
-
url: "
|
16
|
+
url: "https://myanimelist.net/api/anime/search.xml?q=#{CGI::escape name}",
|
17
17
|
user: @myanimelist_username,
|
18
18
|
password: @myanimelist_password,
|
19
19
|
content_type: :xml ).execute
|
data/lib/myanimelist/manga.rb
CHANGED
@@ -13,7 +13,7 @@ module MyAnimeList
|
|
13
13
|
def get_search(name)
|
14
14
|
response = RestClient::Request.new(
|
15
15
|
method: :get,
|
16
|
-
url: "
|
16
|
+
url: "https://myanimelist.net/api/manga/search.xml?q=#{CGI::escape name}",
|
17
17
|
user: @myanimelist_username,
|
18
18
|
password: @myanimelist_password,
|
19
19
|
content_type: :xml ).execute
|
data/lib/myanimelist/version.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myanimelist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harvey Ico
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rest-client
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: The API for MyAnimeList.net
|
@@ -73,7 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
77
77
|
- Gemfile
|
78
78
|
- LICENSE.txt
|
79
79
|
- README.md
|
@@ -95,17 +95,17 @@ require_paths:
|
|
95
95
|
- lib
|
96
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- -
|
98
|
+
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.6.11
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: This gem will helps you to make your life easier and better :)
|