movlog 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +3 -0
- data/.travis.yml +9 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +3 -0
- data/Rakefile +43 -0
- data/bin/movlog +14 -0
- data/lib/movlog.rb +4 -0
- data/lib/movlog/airbnb_api.rb +32 -0
- data/lib/movlog/movie.rb +18 -0
- data/lib/movlog/omdb_api.rb +35 -0
- data/lib/movlog/room.rb +45 -0
- data/lib/movlog/routes.rb +46 -0
- data/lib/movlog/skyscanner_api.rb +56 -0
- data/lib/movlog/version.rb +5 -0
- data/movlog.gemspec +33 -0
- data/spec/airbnb_spec.rb +24 -0
- data/spec/omdb_spec.rb +23 -0
- data/spec/skyscanner_spec.rb +29 -0
- data/spec/spec_helper.rb +29 -0
- metadata +217 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c442943668cd12dfddaab12b308620790e9738fe
|
4
|
+
data.tar.gz: 4c84f7fdda752f6a1c25be1d8d31d05c86766b4e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9078ca821bebb299af9b4649ca5650894f67f73b707cacebf2ef64ebcf4a451610751a3b486199d6a05d68da5cb4650bc5c3252ce19a67fc2676f38a4a935762
|
7
|
+
data.tar.gz: 7239859284122ebedb69d79667c4454c48e80d0c969eb86a6dd9e861247c93156c165086f39fb10e6fef20efafd45d3a2ebbd54937b62ab1a7c31e51fceff5df
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 Team Floggers
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
namespace :spec do
|
5
|
+
desc 'run all tests'
|
6
|
+
task all: [:omdb, :skyscanner, :airbnb]
|
7
|
+
|
8
|
+
task :omdb do
|
9
|
+
sh 'ruby spec/omdb_spec.rb'
|
10
|
+
end
|
11
|
+
|
12
|
+
task :skyscanner do
|
13
|
+
sh 'ruby spec/skyscanner_spec.rb'
|
14
|
+
end
|
15
|
+
|
16
|
+
task :airbnb do
|
17
|
+
sh 'ruby spec/airbnb_spec.rb'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
desc 'delete cassette fixtures'
|
22
|
+
task :wipe do
|
23
|
+
sh 'rm spec/fixtures/cassettes/*.yml' do |ok, _|
|
24
|
+
puts(ok ? 'Cassettes deleted' : 'No cassettes found')
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
namespace :quality do
|
29
|
+
desc 'run all quality checks'
|
30
|
+
task all: [:rubocop, :flog, :flay]
|
31
|
+
|
32
|
+
task :flog do
|
33
|
+
sh 'flog lib/'
|
34
|
+
end
|
35
|
+
|
36
|
+
task :flay do
|
37
|
+
sh 'flay lib/'
|
38
|
+
end
|
39
|
+
|
40
|
+
task :rubocop do
|
41
|
+
sh 'rubocop'
|
42
|
+
end
|
43
|
+
end
|
data/bin/movlog
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w(.. lib))
|
4
|
+
require '../lib/movlog/omdb_api.rb'
|
5
|
+
|
6
|
+
omdb_keyword = ARGV[0] || ENV['OMDB_KEYWORD']
|
7
|
+
unless omdb_keyword
|
8
|
+
puts 'USAGE: movlog [omdb_keyword]'
|
9
|
+
exit(1)
|
10
|
+
end
|
11
|
+
|
12
|
+
movie = Movlog::Movie.find(t: omdb_keyword)
|
13
|
+
|
14
|
+
puts 'imdb_id: '+movie.imdb_id
|
data/lib/movlog.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'http'
|
3
|
+
|
4
|
+
module Airbnb
|
5
|
+
# Service for all Airbnb API calls
|
6
|
+
class AirbnbApi
|
7
|
+
AIRBNB_URL = 'https://api.airbnb.com/v2/search_results'
|
8
|
+
|
9
|
+
def self.config=(credentials)
|
10
|
+
@config = {} unless @config
|
11
|
+
@config.update(credentials)
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.config
|
15
|
+
return @config if @config
|
16
|
+
@config = {
|
17
|
+
client_id: ENV['AIRBNB_CLIENT_ID']
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.rooms_result(location)
|
22
|
+
airbnb_rooms_response = HTTP.get(
|
23
|
+
AIRBNB_URL,
|
24
|
+
params: {
|
25
|
+
client_id: config[:client_id],
|
26
|
+
location: location
|
27
|
+
}
|
28
|
+
)
|
29
|
+
JSON.load(airbnb_rooms_response.to_s)['search_results']
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/movlog/movie.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative 'omdb_api'
|
3
|
+
|
4
|
+
module Movlog
|
5
|
+
# Movie info
|
6
|
+
class Movie
|
7
|
+
attr_reader :imdb_id
|
8
|
+
|
9
|
+
def initialize(data:)
|
10
|
+
@imdb_id = data['imdbID']
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.find(t:)
|
14
|
+
movie_data = OmdbApi.movie_info(t)
|
15
|
+
new(data: movie_data)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'http'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
module Movlog
|
6
|
+
# Service for all OMDB API calls
|
7
|
+
class OmdbApi
|
8
|
+
OMDB_URL = 'http://www.omdbapi.com'
|
9
|
+
|
10
|
+
def self.config=(credentials)
|
11
|
+
@config = {} unless @config
|
12
|
+
@config.update(credentials)
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.config
|
16
|
+
return @config if @config
|
17
|
+
@config = {
|
18
|
+
t: ENV['OMDB_KEYWORD']
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.movie_info(t)
|
23
|
+
movie_response = HTTP.get(
|
24
|
+
OMDB_URL,
|
25
|
+
params: {
|
26
|
+
t: config[:t],
|
27
|
+
y: '',
|
28
|
+
plot: 'short',
|
29
|
+
r: 'json'
|
30
|
+
}
|
31
|
+
)
|
32
|
+
JSON.load(movie_response.to_s)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/movlog/room.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative 'airbnb_api'
|
3
|
+
|
4
|
+
module Airbnb
|
5
|
+
# Room info
|
6
|
+
class RoomsInfo
|
7
|
+
attr_reader :location
|
8
|
+
attr_reader :rooms
|
9
|
+
|
10
|
+
def initialize(location: nil)
|
11
|
+
|
12
|
+
@location = location
|
13
|
+
end
|
14
|
+
|
15
|
+
def rooms
|
16
|
+
return @rooms if @rooms
|
17
|
+
|
18
|
+
rooms_data = AirbnbApi.rooms_result(@location)
|
19
|
+
@rooms = rooms_data.map do |item|
|
20
|
+
room(item)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.find(location: nil)
|
25
|
+
new(location: nil)
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def room(item)
|
31
|
+
item = item
|
32
|
+
{
|
33
|
+
city: item['listing']['city'],
|
34
|
+
name: item['listing']['name'],
|
35
|
+
pic_url: item['listing']['picture_url'],
|
36
|
+
id: item['listing']['id'],
|
37
|
+
person_capacity: item['listing']['person_capacity'],
|
38
|
+
primary_host: item['listing']['primary_host'],
|
39
|
+
star_rating: item['listing']['star_rating'],
|
40
|
+
listing_currency: item['pricing_quote']['listing_currency'],
|
41
|
+
nightly_price: item['pricing_quote']['nightly_price']
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative 'skyscanner_api'
|
3
|
+
|
4
|
+
module Skyscanner
|
5
|
+
# Route info
|
6
|
+
class Route
|
7
|
+
attr_reader :market, :currency, :locale
|
8
|
+
attr_reader :origin, :destination
|
9
|
+
attr_reader :outbound, :inbound
|
10
|
+
attr_reader :routes
|
11
|
+
|
12
|
+
def initialize(data)
|
13
|
+
@routes = data[:routes]
|
14
|
+
load_env_data(data['market'], data['currency'], data['locale'])
|
15
|
+
load_place(data['origin'], data['destination'])
|
16
|
+
load_date(data['outbound'], data['inbound'])
|
17
|
+
end
|
18
|
+
|
19
|
+
def routes_info
|
20
|
+
@routes
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.find(data)
|
24
|
+
data[:routes] = SkyscannerApi.routes_info(data)
|
25
|
+
new(data)
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def load_env_data(market, currency, locale)
|
31
|
+
@market = market
|
32
|
+
@currency = currency
|
33
|
+
@locale = locale
|
34
|
+
end
|
35
|
+
|
36
|
+
def load_place(origin, destination)
|
37
|
+
@origin = origin
|
38
|
+
@destination = destination
|
39
|
+
end
|
40
|
+
|
41
|
+
def load_date(outbound, inbound)
|
42
|
+
@outbound = outbound
|
43
|
+
@inbound = inbound
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'http'
|
3
|
+
|
4
|
+
module Skyscanner
|
5
|
+
# Service for all SkyScanner API calls
|
6
|
+
class SkyscannerApi
|
7
|
+
SKY_URL = 'http://partners.api.skyscanner.net/apiservices/browseroutes/'
|
8
|
+
API_VER = 'v1.0'
|
9
|
+
SKY_API_URL = URI.join(SKY_URL, "#{API_VER}/")
|
10
|
+
|
11
|
+
def self.config=(credentials)
|
12
|
+
@config = {} unless @config
|
13
|
+
@config.update(credentials)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.config
|
17
|
+
return @config if @config
|
18
|
+
@config = {
|
19
|
+
api_key: ENV['SKY_API_KEY']
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.routes_info(data)
|
24
|
+
skyscanner_routes_response = HTTP.get(
|
25
|
+
route_info_url(data),
|
26
|
+
params: {
|
27
|
+
apiKey: config['api_key']
|
28
|
+
}
|
29
|
+
)
|
30
|
+
JSON.load(skyscanner_routes_response.to_s)
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def self.route_info_url(data)
|
36
|
+
URI.join(
|
37
|
+
SKY_API_URL,
|
38
|
+
route_env_param(data[:market], data[:currency], data[:locale]),
|
39
|
+
route_place_param(data[:origin], data[:destination]),
|
40
|
+
route_date_param(data[:outbound], data[:inbound])
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.route_env_param(market, currency, locale)
|
45
|
+
"#{market}/#{currency}/#{locale}/"
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.route_place_param(origin, destination)
|
49
|
+
"#{origin}/#{destination}/"
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.route_date_param(outbound, inbound)
|
53
|
+
"#{outbound}/#{inbound}"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
data/movlog.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'movlog/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'movlog'
|
7
|
+
s.version = Movlog::VERSION
|
8
|
+
|
9
|
+
s.summary = 'Gets movie content from omdb'
|
10
|
+
s.description = 'find movie locations, routes and rooms'
|
11
|
+
s.authors = ['Andy Wen', 'Nick Huang', 'Aditya Utama Wijaya']
|
12
|
+
s.email = ['a409052003@gmail.com', 'z58085111@gmail.com', '
|
13
|
+
adityautamawijaya@gmail.com']
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
17
|
+
s.executables << 'movlog'
|
18
|
+
|
19
|
+
s.add_runtime_dependency 'http', '~> 2.0'
|
20
|
+
|
21
|
+
s.add_development_dependency 'minitest', '~> 5.9'
|
22
|
+
s.add_development_dependency 'minitest-rg', '~> 5.2'
|
23
|
+
s.add_development_dependency 'rake', '~> 11.3'
|
24
|
+
s.add_development_dependency 'vcr', '~> 3.0'
|
25
|
+
s.add_development_dependency 'webmock', '~> 2.1'
|
26
|
+
s.add_development_dependency 'simplecov', '~> 0.12'
|
27
|
+
s.add_development_dependency 'flog', '~> 4.4'
|
28
|
+
s.add_development_dependency 'flay', '~> 2.8'
|
29
|
+
s.add_development_dependency 'rubocop', '~> 0.42'
|
30
|
+
|
31
|
+
s.homepage = 'https://github.com/soafloggers/movlog'
|
32
|
+
s.license = 'MIT'
|
33
|
+
end
|
data/spec/airbnb_spec.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative 'spec_helper.rb'
|
3
|
+
|
4
|
+
describe 'Airbnb specifications' do
|
5
|
+
VCR.configure do |c|
|
6
|
+
c.cassette_library_dir = CASSETTES_FOLDER
|
7
|
+
c.hook_into :webmock
|
8
|
+
c.filter_sensitive_data('<airbnb_client_id>') { ENV['AIRBNB_CLIENT_ID'] }
|
9
|
+
end
|
10
|
+
|
11
|
+
before do
|
12
|
+
VCR.insert_cassette CASSETTE_FILE_3, record: :new_episodes
|
13
|
+
end
|
14
|
+
|
15
|
+
after do
|
16
|
+
VCR.eject_cassette
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should get the room info of a location' do
|
20
|
+
rooms_info = Airbnb::RoomsInfo.find(location: 'Hsinchu')
|
21
|
+
rooms = rooms_info.rooms
|
22
|
+
rooms.length.must_be :>, 0
|
23
|
+
end
|
24
|
+
end
|
data/spec/omdb_spec.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative 'spec_helper.rb'
|
3
|
+
|
4
|
+
describe 'OMDB specifications' do
|
5
|
+
VCR.configure do |c|
|
6
|
+
c.cassette_library_dir = CASSETTES_FOLDER
|
7
|
+
c.hook_into :webmock
|
8
|
+
c.filter_sensitive_data('<KEYWORD>') { ENV['OMDB_KEYWORD'] }
|
9
|
+
end
|
10
|
+
|
11
|
+
before do
|
12
|
+
VCR.insert_cassette CASSETTE_FILE_1, record: :new_episodes
|
13
|
+
end
|
14
|
+
|
15
|
+
after do
|
16
|
+
VCR.eject_cassette
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should get the IMDB ID of a movie' do
|
20
|
+
movie = Movlog::Movie.find(t: ENV['OMDB_KEYWORD'])
|
21
|
+
movie.imdb_id.length.must_be :>, 0
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative 'spec_helper.rb'
|
3
|
+
|
4
|
+
describe 'Skyscanner specifications' do
|
5
|
+
VCR.configure do |c|
|
6
|
+
c.cassette_library_dir = CASSETTES_FOLDER
|
7
|
+
c.hook_into :webmock
|
8
|
+
c.filter_sensitive_data('<SKY_API_KEY>') { ENV['SKY_API_KEY'] }
|
9
|
+
end
|
10
|
+
|
11
|
+
before do
|
12
|
+
VCR.insert_cassette CASSETTE_FILE_2, record: :new_episodes
|
13
|
+
end
|
14
|
+
|
15
|
+
after do
|
16
|
+
VCR.eject_cassette
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should get routes suggested by Skyscanner' do
|
20
|
+
route_meta = {
|
21
|
+
market: 'GB', currency: 'GBP', locale: 'en-GB',
|
22
|
+
origin: 'LON', destination: 'UK',
|
23
|
+
outbound: 'anytime', inbound: 'anytime'
|
24
|
+
}
|
25
|
+
routes = Skyscanner::Route.find(route_meta)
|
26
|
+
routes = routes.routes_info
|
27
|
+
routes.length.must_be :>, 0
|
28
|
+
end
|
29
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start
|
4
|
+
|
5
|
+
require 'yaml'
|
6
|
+
require 'minitest/autorun'
|
7
|
+
require 'minitest/rg'
|
8
|
+
require 'vcr'
|
9
|
+
require 'webmock'
|
10
|
+
|
11
|
+
require_relative '../lib/movlog'
|
12
|
+
|
13
|
+
FIXTURES_FOLDER = 'spec/fixtures'
|
14
|
+
CASSETTES_FOLDER = "#{FIXTURES_FOLDER}/cassettes"
|
15
|
+
|
16
|
+
CASSETTE_FILE_1 = 'omdb_api'
|
17
|
+
CASSETTE_FILE_2 = 'skyscanner_api'
|
18
|
+
CASSETTE_FILE_3 = 'airbnb_api'
|
19
|
+
|
20
|
+
if File.file?('config/credentials.yml')
|
21
|
+
credentials = YAML.load(File.read('config/credentials.yml'))
|
22
|
+
ENV['OMDB_KEYWORD'] = credentials[:keyword]
|
23
|
+
ENV['AIRBNB_CLIENT_ID'] = credentials[:airbnb_client_id]
|
24
|
+
ENV['SKY_API_KEY'] = credentials[:skyscanner_api_key]
|
25
|
+
end
|
26
|
+
|
27
|
+
RESULT_FILE_1 = "#{FIXTURES_FOLDER}/omdb_api_results.yml"
|
28
|
+
RESULT_FILE_2 = "#{FIXTURES_FOLDER}/skyscanner_api_results.yml"
|
29
|
+
RESULT_FILE_3 = "#{FIXTURES_FOLDER}/airbnb_api_results.yml"
|
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: movlog
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andy Wen
|
8
|
+
- Nick Huang
|
9
|
+
- Aditya Utama Wijaya
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: http
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '2.0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: minitest
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '5.9'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '5.9'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: minitest-rg
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5.2'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '5.2'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rake
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '11.3'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '11.3'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: vcr
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '3.0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '3.0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: webmock
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '2.1'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '2.1'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: simplecov
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0.12'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0.12'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: flog
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '4.4'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '4.4'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: flay
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '2.8'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '2.8'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: rubocop
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0.42'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0.42'
|
155
|
+
description: find movie locations, routes and rooms
|
156
|
+
email:
|
157
|
+
- a409052003@gmail.com
|
158
|
+
- z58085111@gmail.com
|
159
|
+
- |2-
|
160
|
+
|
161
|
+
adityautamawijaya@gmail.com
|
162
|
+
executables:
|
163
|
+
- movlog
|
164
|
+
extensions: []
|
165
|
+
extra_rdoc_files: []
|
166
|
+
files:
|
167
|
+
- ".gitignore"
|
168
|
+
- ".rubocop.yml"
|
169
|
+
- ".travis.yml"
|
170
|
+
- Gemfile
|
171
|
+
- Gemfile.lock
|
172
|
+
- LICENSE
|
173
|
+
- README.md
|
174
|
+
- Rakefile
|
175
|
+
- bin/movlog
|
176
|
+
- lib/movlog.rb
|
177
|
+
- lib/movlog/airbnb_api.rb
|
178
|
+
- lib/movlog/movie.rb
|
179
|
+
- lib/movlog/omdb_api.rb
|
180
|
+
- lib/movlog/room.rb
|
181
|
+
- lib/movlog/routes.rb
|
182
|
+
- lib/movlog/skyscanner_api.rb
|
183
|
+
- lib/movlog/version.rb
|
184
|
+
- movlog.gemspec
|
185
|
+
- spec/airbnb_spec.rb
|
186
|
+
- spec/omdb_spec.rb
|
187
|
+
- spec/skyscanner_spec.rb
|
188
|
+
- spec/spec_helper.rb
|
189
|
+
homepage: https://github.com/soafloggers/movlog
|
190
|
+
licenses:
|
191
|
+
- MIT
|
192
|
+
metadata: {}
|
193
|
+
post_install_message:
|
194
|
+
rdoc_options: []
|
195
|
+
require_paths:
|
196
|
+
- lib
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
requirements: []
|
208
|
+
rubyforge_project:
|
209
|
+
rubygems_version: 2.5.1
|
210
|
+
signing_key:
|
211
|
+
specification_version: 4
|
212
|
+
summary: Gets movie content from omdb
|
213
|
+
test_files:
|
214
|
+
- spec/airbnb_spec.rb
|
215
|
+
- spec/omdb_spec.rb
|
216
|
+
- spec/skyscanner_spec.rb
|
217
|
+
- spec/spec_helper.rb
|