rarbg 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bdc20e4ab04f39d219c9144799d7ffddba69c0dd316c1ed41d239e286967714
4
- data.tar.gz: ebe32eb45fcd60fb2d21f78c7d3ea1c3115875e36039f82c7f6b29643f4cc4f4
3
+ metadata.gz: d15b81ab8d45c3c01c9addc0bce085b59990b9124d80b32b44ad8948edfbb367
4
+ data.tar.gz: 46b000569403255560866144cf09af78e8b9b6a25bc93bdfa0c6b27117697cd9
5
5
  SHA512:
6
- metadata.gz: 2ad332920510625f62afb67c6f81eb016f8c2f2654ee34ac5669b5c282925fb098b6b31bdcf6bcfcebc10aa6067883814c8b863b479ea22d252e818ad2dc0eb7
7
- data.tar.gz: e1e2e06a31ad858b5ab4c4fa7f92e326d69add29e5e88fae6c28e707132b472e89bd6c2bc4d040351bb93a32c46beb174f0749a5973aae18a89b267969fb61bb
6
+ metadata.gz: 95aa9133de0794c7b41c44ad000470a3a9d20eb6576ada2e4b850d907027c809979bf6b44fbcb8312e5fa8efb27ff93433df077b98a736b60727c69b2e035278
7
+ data.tar.gz: 28185dbdf3875c246b2b76bc9a07d3100fa016970bffaae1673d568f64052ac74354f289290b36895533503f2c12295732d533224c7896a9d1f6e5b813662b08
@@ -1,14 +1,14 @@
1
1
  ## Pull Request description
2
- A clear and concise explanation of what changes your PR introduces and why this
3
- was needed.
2
+ A clear and concise explanation of what changes your PR introduces and why this was needed.
4
3
 
5
4
  ## Pull Request checklist
6
5
 
7
6
  - [ ] My code is a **bug fix** (non-breaking change which fixes an issue)
8
7
  - [ ] My code is a **new feature** (non-breaking change which adds functionality)
9
- - [ ] My code introduces a **breaking change** (fix or feature that would cause existing functionality to change)
8
+ - [ ] My code introduces a **breaking change** (fix or feature that would break existing functionality)
10
9
  - [ ] My code follows the code style of this project
11
10
  - [ ] My change requires a change to the documentation
12
11
  - [ ] I have updated the documentation accordingly
12
+ - [ ] I have included the CHANGELOG entry for the changes
13
13
  - [ ] I have added tests to cover my changes
14
14
  - [ ] All new and existing tests passed
data/.gitignore CHANGED
@@ -10,6 +10,7 @@
10
10
 
11
11
  # Version specifiers
12
12
  Gemfile.lock
13
+ gems.locked
13
14
  .ruby-version
14
15
  .ruby-gemset
15
16
 
data/.hound.yml CHANGED
@@ -2,4 +2,4 @@ fail_on_violations: true
2
2
 
3
3
  rubocop:
4
4
  config_file: .rubocop.yml
5
- version: 0.59.2
5
+ version: 0.71.0
@@ -10,13 +10,13 @@ Layout/AlignHash:
10
10
  EnforcedHashRocketStyle: table
11
11
  EnforcedColonStyle: table
12
12
 
13
- Layout/FirstParameterIndentation:
13
+ Layout/IndentFirstArgument:
14
14
  EnforcedStyle: consistent
15
15
 
16
- Layout/IndentArray:
16
+ Layout/IndentFirstArrayElement:
17
17
  EnforcedStyle: consistent
18
18
 
19
- Layout/IndentHash:
19
+ Layout/IndentFirstHashElement:
20
20
  EnforcedStyle: consistent
21
21
 
22
22
  Metrics/BlockLength:
@@ -3,10 +3,9 @@ language: ruby
3
3
  cache: bundler
4
4
  script: bundle exec rspec
5
5
  rvm:
6
- - 2.6.1
7
- - 2.5.3
8
- - 2.4.5
9
- - 2.3.8
6
+ - 2.6.3
7
+ - 2.5.5
8
+ - 2.4.6
10
9
  branches:
11
10
  only: master
12
11
  notifications:
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## 1.4.0 - 2019-06-05
8
+ [RubyGems](https://rubygems.org/gems/rarbg/versions/1.4.0) |
9
+ [Release](https://github.com/epistrephein/rarbg/releases/tag/v1.4.0) |
10
+ [Diff](https://github.com/epistrephein/rarbg/compare/v1.3.0...v1.4.0)
11
+
12
+ #### Fixed
13
+ - Fix typos and code style here and there.
14
+
15
+ #### Changed
16
+ - Bump RuboCop development dependency minimum version to `0.71` and update Hound
17
+ linter version ([#12](https://github.com/epistrephein/rarbg/pull/12)).
18
+ - Allow any Bundler version equal or greater than `1.15` ([#9](https://github.com/epistrephein/rarbg/pull/9))
19
+ but lesser than `3.0` ([#10](https://github.com/epistrephein/rarbg/pull/10)).
20
+
21
+
7
22
  ## 1.3.0 - 2019-02-07
8
23
  [RubyGems](https://rubygems.org/gems/rarbg/versions/1.3.0) |
9
24
  [Release](https://github.com/epistrephein/rarbg/releases/tag/v1.3.0) |
@@ -37,7 +37,7 @@ simply open a regular issue and describe the problem in the clearest way possibl
37
37
  If you would like to contribute to the project by writing code, you can open a
38
38
  Pull Request on GitHub with your changes and ask a maintainer for a review.
39
39
 
40
- As an open source Ruby gem, this projects uses the most common development tools
40
+ As an open source Ruby gem, this project uses the most common development tools
41
41
  to test, validate, and document the code.
42
42
 
43
43
  ### Tools and integrations
@@ -89,5 +89,8 @@ to run both Rubocop and RSpec tests
89
89
  6. Push to your remote branch on GitHub (`git push origin my-new-feature`)
90
90
  7. Create a [new pull request](https://github.com/epistrephein/rarbg/pulls)
91
91
 
92
+ By submitting a patch, you agree to allow the project owners to license your work
93
+ under the terms of the [MIT License](https://github.com/epistrephein/rarbg/blob/master/LICENSE).
94
+
92
95
  As for issues, when opening a new Pull Request, please fill out the template with
93
96
  all the relevant information in order to reduce the review effort of the maintainers.
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Inline Docs](https://inch-ci.org/github/epistrephein/rarbg.svg?branch=master)](https://inch-ci.org/github/epistrephein/rarbg)
8
8
  [![Documentation](https://img.shields.io/badge/docs-yard-blue.svg)](https://epistrephein.github.io/rarbg)
9
9
 
10
- Ruby wrapper for the RARBG Torrent API.
10
+ Ruby client for the RARBG Torrent API.
11
11
 
12
12
  ## Installation
13
13
 
@@ -20,7 +20,7 @@ $ gem install rarbg
20
20
  Or add it to your Gemfile and execute `bundle install`
21
21
 
22
22
  ```ruby
23
- gem 'rarbg', '~> 1.3'
23
+ gem 'rarbg', '~> 1.4'
24
24
  ```
25
25
 
26
26
  ## Usage
data/Rakefile CHANGED
@@ -9,4 +9,5 @@ RSpec::Core::RakeTask.new(:spec)
9
9
  RuboCop::RakeTask.new(:rubocop)
10
10
  YARD::Rake::YardocTask.new(:yard)
11
11
 
12
+ # Run RuboCop and RSpec as default task.
12
13
  task default: %i[rubocop spec]
@@ -34,17 +34,6 @@ module RARBG
34
34
  # @return [Integer] the monotonic timestamp of the last request performed.
35
35
  attr_reader :last_request
36
36
 
37
- # Supported search parameters.
38
- SEARCH_KEYS = %w[string imdb tvdb themoviedb].freeze
39
- private_constant :SEARCH_KEYS
40
-
41
- # Endpoint error strings to return as no results.
42
- NO_RESULTS_ERRORS_REGEXPS = Regexp.union([
43
- /no results found/i,
44
- /can'?t find .+? in database/i
45
- ])
46
- private_constant :NO_RESULTS_ERRORS_REGEXPS
47
-
48
37
  # Initialize a new instance of `RARBG::API`.
49
38
  #
50
39
  # @example
@@ -166,6 +155,17 @@ module RARBG
166
155
 
167
156
  private
168
157
 
158
+ # Supported search parameters.
159
+ SEARCH_KEYS = %w[string imdb tvdb themoviedb].freeze
160
+ private_constant :SEARCH_KEYS
161
+
162
+ # Endpoint error strings to return as no results.
163
+ NO_RESULTS_ERRORS_REGEXPS = Regexp.union([
164
+ /no results found/i,
165
+ /can'?t find .+? in database/i
166
+ ])
167
+ private_constant :NO_RESULTS_ERRORS_REGEXPS
168
+
169
169
  # Wrap requests for error handling.
170
170
  def call(params)
171
171
  response = request(validate(params))
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RARBG
4
4
  # Gem version.
5
- VERSION = '1.3.0'
5
+ VERSION = '1.4.0'
6
6
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = 'epistrephein@gmail.com'
12
12
 
13
13
  spec.summary = 'RARBG API Ruby client.'
14
- spec.description = 'Ruby wrapper for the RARBG Torrent API.'
14
+ spec.description = 'Ruby client for the RARBG Torrent API.'
15
15
  spec.homepage = 'https://github.com/epistrephein/rarbg'
16
16
  spec.license = 'MIT'
17
17
 
@@ -34,11 +34,11 @@ Gem::Specification.new do |spec|
34
34
  spec.add_runtime_dependency 'faraday', '~> 0.12'
35
35
  spec.add_runtime_dependency 'faraday_middleware', '~> 0.12'
36
36
 
37
- spec.add_development_dependency 'bundler', '~> 1.15'
37
+ spec.add_development_dependency 'bundler', '>= 1.15', '< 3.0'
38
38
  spec.add_development_dependency 'pry', '~> 0.10'
39
39
  spec.add_development_dependency 'rake', '~> 12.0'
40
40
  spec.add_development_dependency 'rspec', '~> 3.6'
41
- spec.add_development_dependency 'rubocop', '~> 0.59'
41
+ spec.add_development_dependency 'rubocop', '~> 0.71'
42
42
  spec.add_development_dependency 'simplecov', '~> 0.13'
43
43
  spec.add_development_dependency 'webmock', '~> 3.0'
44
44
  spec.add_development_dependency 'yard', '~> 0.9'
@@ -11,24 +11,25 @@ require 'rarbg'
11
11
  require_relative 'stubs'
12
12
 
13
13
  RSpec.configure do |config|
14
+ # Attach WebMock and its stubbed requests.
14
15
  WebMock.disable_net_connect!(allow_localhost: true)
15
16
  config.include(Stubs)
16
17
 
17
- # Enable flags like --only-failures and --next-failure
18
+ # Enable flags like --only-failures and --next-failure.
18
19
  config.example_status_persistence_file_path = '.rspec_status'
19
20
 
20
- # Disable RSpec exposing methods globally on `Module` and `main`
21
+ # Disable RSpec exposing methods globally on `Module` and `main`.
21
22
  config.disable_monkey_patching!
22
23
 
23
- # Enable temporarily focused examples and groups
24
+ # Enable temporarily focused examples and groups.
24
25
  config.filter_run_when_matching :focus
25
26
 
26
- # Use expect syntax
27
+ # Use expect syntax.
27
28
  config.expect_with :rspec do |c|
28
29
  c.syntax = :expect
29
30
  end
30
31
 
31
- # Stub RATE_LIMIT to speed up tests
32
+ # Stub RATE_LIMIT to speed up tests.
32
33
  config.before(:example) do
33
34
  stub_const('RARBG::API::RATE_LIMIT', 0.1)
34
35
  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: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommaso Barbato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.15'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '3.0'
48
51
  type: :development
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: '1.15'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.0'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: pry
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +106,14 @@ dependencies:
100
106
  requirements:
101
107
  - - "~>"
102
108
  - !ruby/object:Gem::Version
103
- version: '0.59'
109
+ version: '0.71'
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
114
  - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: '0.59'
116
+ version: '0.71'
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: simplecov
113
119
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +156,7 @@ dependencies:
150
156
  - - "~>"
151
157
  - !ruby/object:Gem::Version
152
158
  version: '0.9'
153
- description: Ruby wrapper for the RARBG Torrent API.
159
+ description: Ruby client for the RARBG Torrent API.
154
160
  email: epistrephein@gmail.com
155
161
  executables: []
156
162
  extensions: []
@@ -211,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
217
  - !ruby/object:Gem::Version
212
218
  version: '0'
213
219
  requirements: []
214
- rubygems_version: 3.0.1
220
+ rubygems_version: 3.0.3
215
221
  signing_key:
216
222
  specification_version: 4
217
223
  summary: RARBG API Ruby client.