rarbg 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rarbg.rb +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65744e86bb9c4e714e87f79ffad98907078d5f6e
4
- data.tar.gz: 6efb3a47b689d51ac143bf426cc96c256d5bfb0b
3
+ metadata.gz: 9f275ed1e2baccaf9cfc2863790ad634f5dec9f7
4
+ data.tar.gz: 415204f9fae36b2429022dc2d5017f9ec68b6a79
5
5
  SHA512:
6
- metadata.gz: f261f7f944e60a5182a7cf35c12419f9c3e42313e2f922b173a9211aa5ef369730ed9da86abdfea9ef1ebd641e30c8b033376abfaf7e83d4548031031e941f0c
7
- data.tar.gz: 21fc6cf5e375ae0058fd30ffb10c3fac34f94a7eb7609ad4b8aef455ca39d0d7287d6e98f31127e0ceb26a67495f76974102316059c7e9daac0055ddff8dc7f7
6
+ metadata.gz: c51a5b95dc0404065851ac8106326badb4c907f3188b0b2af11cd6d59db016f53fec2939b1853a71ae1a9864c5c80a848699ca9384d8ac86c25f3ba2bfb35b69
7
+ data.tar.gz: 13361c8ee8b2fa1b60d6c3c1d735e8acdc20986cdbf76c6ead9eff390d37a7a8863dd146132b8e4f5c918fdd23e5ed942fcedb24e8dd19f4a815461cae602d0e
@@ -4,7 +4,7 @@ require 'json'
4
4
  require 'time'
5
5
 
6
6
  module RARBG
7
- VERSION = '0.1.2'.freeze
7
+ VERSION = '0.1.3'.freeze
8
8
  APP_ID = 'rarbg-rubygem'.freeze
9
9
  API_ENDPOINT = 'https://torrentapi.org/pubapi_v2.php'.freeze
10
10
  TOKEN_EXPIRATION = 800
@@ -58,10 +58,12 @@ module RARBG
58
58
  check_token
59
59
 
60
60
  res = request.get do |req|
61
- req.params['token'] = @token
62
61
  req.params.merge!(@default_params)
63
62
  req.params.merge!(custom_params)
64
63
  req.params.merge!(method_params)
64
+
65
+ req.params['app_id'] = APP_ID
66
+ req.params['token'] = @token
65
67
  end
66
68
  raise RequestError, res.reason_phrase unless res.success?
67
69
  raise APIError, res.body['error'] if res.body['error']
@@ -93,7 +95,6 @@ module RARBG
93
95
  faraday.adapter Faraday.default_adapter
94
96
  faraday.request :url_encoded
95
97
  faraday.response :json
96
- faraday.params['app_id'] = APP_ID
97
98
  end
98
99
  end
99
100
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rarbg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommaso Barbato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2016-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday