nnmClub_api 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: f81d8f9acdfb4444ebbbe2ab1e8227f03130a692
4
- data.tar.gz: a3952f607a0a980739914a38d87a7354c1d08a06
3
+ metadata.gz: 976f79688d6f20d4756397a3283e2a05c8f6f363
4
+ data.tar.gz: c7a6d73d22c4303e5b54d3d279ffd73d0dc02587
5
5
  SHA512:
6
- metadata.gz: e2a65c1a659b6fb3242ac781136ed1cc0d5e4f5330d75624e646fe64ae43a0deb121aac93b6779601755ee96809c29a74572b5b95bfde3b34bc3227122db7e85
7
- data.tar.gz: 7d3672ff183eb36e046c32d87b5074a4bc0c43dbf15922808de99bb121c6fa63bf337300c74fbfa82386316ecd3f517dffb0c1dbe745745905f79ce7d1f8df13
6
+ metadata.gz: 845e8e6b5bab5bb3507a898690b19fd5382dfabe7e43b90aa4d7163103cded2e49a9f6fee984f23138e5efab7ca2d3d4994cfaa513994ac549792096a76fc6b6
7
+ data.tar.gz: d427906ab75a852346ff794f71d537382eb2f772d7aa6a64222271ddfb9b6542297b1982f085f669f9b9ed69145a99e856ca93eee88864c457093428c76d9e78
data/README.md CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  require 'nnmClub_api'
22
22
 
23
- client = NnmclubApi.new('user','pass')
23
+ client = NnmclubApi.new
24
24
  client.search(:title => "Noize MC")
25
25
 
26
26
  puts client.result
data/lib/nnmClub_api.rb CHANGED
@@ -6,7 +6,6 @@ require "json"
6
6
  class NnmclubApi
7
7
  attr_accessor :agent, :result
8
8
 
9
- LOGIN_PAGE = 'http://nnm-club.me/forum/login.php'
10
9
  SEARCH_PAGE = 'http://nnm-club.me/forum/tracker.php'
11
10
 
12
11
  ORDER_OPTIONS = { date: 1, name: 2, downloads: 4, shows: 6, seeders: 10,
@@ -14,7 +13,7 @@ class NnmclubApi
14
13
  speed_down: 13, message_count: 5, last_seed: 9 }
15
14
  SORT_OPTIONS = {asc: 1, desc: 2}
16
15
 
17
- def initialize(username, password)
16
+ def initialize
18
17
  @agent = Mechanize.new
19
18
  @agent.user_agent_alias = "Mac Safari"
20
19
  end
@@ -34,7 +33,6 @@ class NnmclubApi
34
33
 
35
34
  private
36
35
  def prepare_query_string(options)
37
- #?q=lorem+ipsum&w=title
38
36
  SEARCH_PAGE+"?nm="+options[:title].gsub(/\s/,'%20')
39
37
  end
40
38
 
@@ -1,3 +1,3 @@
1
1
  module NnmClubApi
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: nnmClub_api
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
  - Baranov Sergey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-20 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler