omdb-api 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
- SHA1:
3
- metadata.gz: 5ab13fc688f385555e5943cf24d9409431156756
4
- data.tar.gz: 7e53cf0aa675478c43790c56c7234f93e7e8cce9
2
+ SHA256:
3
+ metadata.gz: 986577fc6de5504c8d399627ac341a9c66ceb680234b00d5e4e72e4fc3587a11
4
+ data.tar.gz: 5323f0b6fc941d5810fbd6807bbb201840096ffef485c5b689fcc483957b03d9
5
5
  SHA512:
6
- metadata.gz: 5550804cdcb6699423742b389ac129d6c4e12006f639f94c721afebc7e62bce3893dfbc5972b23ae3c2d9888d2d5d60a00b4f89033acdd4d37ebf75dbed49665
7
- data.tar.gz: 58e4a89affad3c803551a367d62aef3505083e493d0c1d3deb44e667878825d8ce168a1f4b3efc7675d25d1dc63f94a8bb14150852cda270ece202c370cbcdae
6
+ metadata.gz: d9373e1975bc67c2f995a6c36a3031a405849fa58e912d6fea804c00229204df6f3afca64b680c195c25ac034318ad532b7c90cc9d3bfa030b185eb068f17c61
7
+ data.tar.gz: c1fc4750b6f6b9b431d531a8087fd3ff740fdbd88719d5e8dcdc36b8ba301e9e68d7582479208221f33af377765c785aea3ad6a0edf0c9d01b33bf61878d7c00
data/README.md CHANGED
@@ -75,7 +75,7 @@ Returns an `Omdb::Api::Collection`
75
75
  An unsuccessful query will return an `Omdb::Api::Error` object
76
76
 
77
77
 
78
- An `Omdb::Api::Movie` object has
78
+ An `Omdb::Api::Movie` object has getters for these attributes
79
79
 
80
80
  ```ruby
81
81
  #actors
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
  require 'rubocop/rake_task'
@@ -5,4 +7,4 @@ require 'rubocop/rake_task'
5
7
  RSpec::Core::RakeTask.new(:spec)
6
8
  RuboCop::RakeTask.new
7
9
 
8
- task default: %i[spec rubocop]
10
+ task default: %i[spec rubocop:auto_correct]
@@ -3,26 +3,28 @@
3
3
  module Omdb
4
4
  module Api
5
5
  class Movie
6
- attr_reader :actors
7
- :awards
8
- :country
9
- :director
10
- :genre
11
- :imdb_id
12
- :imdb_rating
13
- :imdb_votes
14
- :language
15
- :metascore
16
- :plot
17
- :poster
18
- :rated
19
- :released
20
- :runtime
21
- :title
22
- :type
23
- :writer
24
- :year
25
- :error
6
+ attr_reader :actors,
7
+ :awards,
8
+ :box_office,
9
+ :country,
10
+ :director,
11
+ :dvd,
12
+ :error,
13
+ :genre,
14
+ :imdb_id,
15
+ :imdb_rating,
16
+ :imdb_votes,
17
+ :language,
18
+ :metascore,
19
+ :plot,
20
+ :poster,
21
+ :rated,
22
+ :released,
23
+ :runtime,
24
+ :title,
25
+ :type,
26
+ :writer,
27
+ :year
26
28
 
27
29
  def initialize(params)
28
30
  params.each_pair do |k, v|
@@ -3,7 +3,7 @@
3
3
  module Omdb
4
4
  module Api
5
5
  class Request
6
- BASE_URI = 'https://www.omdbapi.com'.freeze
6
+ BASE_URI = 'https://www.omdbapi.com'
7
7
 
8
8
  attr_reader :api_key, :field, :value, :options
9
9
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omdb
4
4
  module Api
5
- VERSION = '1.3.0'.freeze
5
+ VERSION = '1.4.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omdb-api
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
  - Nick Palaniuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-19 00:00:00.000000000 Z
11
+ date: 2019-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -95,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubyforge_project:
99
- rubygems_version: 2.6.13
98
+ rubygems_version: 3.0.3
100
99
  signing_key:
101
100
  specification_version: 4
102
101
  summary: Ruby interface for the OMDB API