nnmClub_api 0.1.0 → 0.1.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -4
  3. data/lib/nnmClub_api/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ce245f8e634a48d98757a38effa29e3b12b3295
4
- data.tar.gz: 02c33eb4380d1fd6f74f6dc8cd31a4813e21492e
3
+ metadata.gz: ace972f2078b5d339710e7b709c4b64892d92d74
4
+ data.tar.gz: b6d2c2bbad9c91ceb4cee4240680cb9a7d4ede82
5
5
  SHA512:
6
- metadata.gz: 664329d108174f638eb427945307d910f54636f1b0fc464b5d0abafbac5aab39473746cdf849790e83bf4cbb0b0a904f04a06fec9b830b326a85f6f102f00b38
7
- data.tar.gz: 4fe5cd73fdcadea74e4381073c0410aebc814b7fdb052df0bc4efbb5e4c804d396f76ab06d11ad2d708e75fafecb7f1096c258c0677da64d294f7d2a05043aca
6
+ metadata.gz: 123c3443d0449aca73c3d62887a4cf4a8cf26f61f7bd5c241d1fa38bf1f8d3fe5c0e1806054f9f2aac039990a9d2a9b54ec3dd13d9a0c2dc5a48e06b41acd036
7
+ data.tar.gz: 20dae94d1293010ea931c964186593fe7025e7cb6b40f84bac833690c0b5ec708c7255fa90c879feae7e1a30678bb529cbf946ce8b88d12583bc99fe6d425c78
data/README.md CHANGED
@@ -18,12 +18,31 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- require 'nnmClub_api'
21
+ require 'nnmClub_api'
22
+
23
+ ### Example:Search
22
24
 
23
- client = NnmclubApi.new
24
- client.search(:title => "Noize MC")
25
+ NnmClub::Search("Noize MC").torrents
26
+
27
+ returns an Array of Hashes
28
+
29
+ { :title => the title of the distribution,
30
+ :size => size,
31
+ :seeders => seeders,
32
+ :leechers => leechers,
33
+ :torrent_id => torrent_id,
34
+ :tracker => NnmClub::ID
35
+ }
36
+
37
+ ### Example:Torrent
38
+
39
+ NnmClub::Torrent.find "728159"
40
+
41
+ returns an Hash
42
+
43
+ { :content => "HTML"
44
+ :image => "UTL"
25
45
 
26
- puts client.result
27
46
 
28
47
  ## Contributing
29
48
 
@@ -1,3 +1,3 @@
1
1
  module NnmClubApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nnmClub_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Baranov Sergey