libgen_api 0.1.1 → 0.1.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 +4 -4
- data/README.md +3 -3
- data/lib/libgen_api/version.rb +1 -1
- data/libgen_api.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1b18fd4f17c9db6876be5b58031da3cd0806d7f148d769d50dadbc4ca9601ed
|
4
|
+
data.tar.gz: 33e81320e681dda5de00d846235b4b256b9bc3b94c695ad242b6c9756b33fef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed08da53eb029be9d93dc22556572f8f3b51c32c94b91a871471cee2b2c8a5111834a69aeddedaab389c943ab71f764c6ebf4c8502c4ff2f289ebd41a482f9b9
|
7
|
+
data.tar.gz: 8e80d0bdea3558579fad82de7ddae47c0c3af167abe86e7a02a1833b95b09a199f939a226358c23e91e512992074b77f18db3d5e834dbc1d880c161a55187ba3
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Welcome to the `libgen_api` gem!
|
4
4
|
|
5
|
-
This gem allows you to search library genesis easily and relatively
|
5
|
+
This gem allows you to search library genesis easily and relatively quickly.
|
6
6
|
|
7
7
|
## Advice
|
8
8
|
|
@@ -39,7 +39,7 @@ This method will return in order the id's of the books shown in your search resu
|
|
39
39
|
Books can be retrieved using their ids.
|
40
40
|
|
41
41
|
The method `get_book()` can be used to retrieve an individual books information where as the method `get_books()` can be used to retrieve multiple books.
|
42
|
-
`get_book()` has two parameters, `id` and `fields`. `id` is any books id number whilst `fields` contains an array of which fields you are interested in looking at. A list of fields can be found [here](http://garbage.world/posts/libgen/). By default the `title`, `author` and `md5` fields are requested. It returns a hash with each selected field being a key that can be used to access its value.
|
42
|
+
`get_book()` has two parameters, `id` and `fields`. `id` is any books id number whilst `fields` contains an array of which fields you are interested in looking at. A list of fields can be found [here](http://garbage.world/posts/libgen/) and [here](https://forum.mhut.org/viewtopic.php?f=17&t=6874). By default the `title`, `author` and `md5` fields are requested. It returns a hash with each selected field being a key that can be used to access its value.
|
43
43
|
|
44
44
|
`get_books()` works basically the same excepts its first argument is `ids` which accepts an array of ids. It returns an array of hashes for each book requested.
|
45
45
|
|
@@ -88,4 +88,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
88
88
|
|
89
89
|
## Thanks
|
90
90
|
|
91
|
-
I'd like to thank the
|
91
|
+
I'd like to thank Alex Dunn the author of [this](http://garbage.world/posts/libgen/) and [libgen.js](https://github.com/dunn/libgen.js/), not to mention the creators and maintainers of Library Genesis. They were all very helpful in creating this gem.
|
data/lib/libgen_api/version.rb
CHANGED
data/libgen_api.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = "An API that can be used to search Library Genesis"
|
13
13
|
spec.description = "An API that can be used to search Library Genesis. In the early stages."
|
14
|
-
spec.homepage = "https://
|
14
|
+
spec.homepage = "https://gitlab.com/libgen1/libgen_api"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Specify which files should be added to the gem when it is released.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libgen_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sag0Sag0
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -104,7 +104,6 @@ files:
|
|
104
104
|
- ".gitignore"
|
105
105
|
- CHANGELOG.md
|
106
106
|
- Gemfile
|
107
|
-
- Gemfile.lock
|
108
107
|
- LICENSE.txt
|
109
108
|
- README.md
|
110
109
|
- Rakefile
|
@@ -113,7 +112,7 @@ files:
|
|
113
112
|
- lib/libgen_api.rb
|
114
113
|
- lib/libgen_api/version.rb
|
115
114
|
- libgen_api.gemspec
|
116
|
-
homepage: https://
|
115
|
+
homepage: https://gitlab.com/libgen1/libgen_api
|
117
116
|
licenses:
|
118
117
|
- MIT
|
119
118
|
metadata: {}
|