movlog 0.2.11 → 0.2.12

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
  SHA1:
3
- metadata.gz: 583daf27b5b085d5e0c770567500185b558dbe6b
4
- data.tar.gz: 509903710caee4dfdc4e3427058bdc7f9d3225f1
3
+ metadata.gz: f6756a7184f03c8a6cb7ea8ce87670d370180643
4
+ data.tar.gz: bc4cec43eab70f9880008ad2740d0ad6d68e18a0
5
5
  SHA512:
6
- metadata.gz: b923da0ba117aee3fade27794bcb4d3f33b29285dd8f4fae4a47871ae9adfe5e1dba64fcb68c9ac7cb58954db1b4cf2fb62bce3e665e721c925af5a7ce487722
7
- data.tar.gz: dce4399f3e046a7d629b884358e56cf5cabb68f3227febe6e01964a52b1a19f53ce6989543f7538efd1102cdc6f983c9415184c4810558b7697429dbfe40db35
6
+ metadata.gz: f5dcfbe24095dffa55c8b1122313d64df7897912d6e0e6dbfd2ba8151f8e7ceccab24be6622eb18853dcfed3dfda2b820eb8e2e2c75cff1a6c89b7b1cf148fc0
7
+ data.tar.gz: 640501f911077b6b222b67b2a636ce3374318aaba4c5bdbe8f6f348676648433710ce0fa6785283aaff2ccab34039944ae279fc08cf6484dd04fa277c7076c8c
data/lib/movlog/movie.rb CHANGED
@@ -5,7 +5,8 @@ module Movlog
5
5
  # Movie info
6
6
  class Movie
7
7
  attr_reader :imdb_id, :title, :year, :actors, :poster, :plot, :location
8
-
8
+ attr_reader :response
9
+
9
10
  def initialize(data:)
10
11
  @imdb_id = data['imdbID']
11
12
  @title = data['Title']
@@ -13,6 +14,7 @@ module Movlog
13
14
  @actors = data['Actors']
14
15
  @poster = data['Poster']
15
16
  @plot = data['Plot']
17
+ @response = data['Response']
16
18
  end
17
19
 
18
20
  def self.find(t:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Movlog
4
- VERSION = '0.2.11'
4
+ VERSION = '0.2.12'
5
5
  end
@@ -413,4 +413,56 @@ http_interactions:
413
413
  home/apt","room_type_category":"entire_home","scrim_color":"","star_rating":null,"thumbnail_url":"https://a2.muscache.com/im/pictures/19a8d361-5765-4a7c-ae6a-d5abf406d579.jpg?aki_policy=small","user":{"first_name":"George","has_profile_pic":true,"id":17214564,"picture_url":"https://a1.muscache.com/im/users/17214564/profile_pic/1403646551/original.jpg?aki_policy=profile_x_medium","smart_name":"George","thumbnail_url":"https://a1.muscache.com/im/users/17214564/profile_pic/1403646551/original.jpg?aki_policy=profile_small","is_superhost":false},"user_id":17214564,"xl_picture_url":"https://a2.muscache.com/im/pictures/19a8d361-5765-4a7c-ae6a-d5abf406d579.jpg?aki_policy=x_large","preview_encoded_png":"","picture_urls":["https://a2.muscache.com/im/pictures/19a8d361-5765-4a7c-ae6a-d5abf406d579.jpg?aki_policy=large","https://a2.muscache.com/im/pictures/1d6882b3-9e49-410f-b821-b29c044925a3.jpg?aki_policy=large","https://a2.muscache.com/im/pictures/94fe2108-960f-4b97-ae78-9d5339b22e6e.jpg?aki_policy=large","https://a2.muscache.com/im/pictures/7694590d-9163-4907-8500-03f4376cf7c3.jpg?aki_policy=large","https://a2.muscache.com/im/pictures/89d42c1d-fb91-4851-9b87-cee7fcef6c66.jpg?aki_policy=large","https://a2.muscache.com/im/pictures/75b47245-1eb0-4212-b68d-98bd18bf0c72.jpg?aki_policy=large","https://a2.muscache.com/im/pictures/046b8800-d071-4785-907e-fcad2307d8da.jpg?aki_policy=large"],"xl_picture_urls":["https://a2.muscache.com/im/pictures/19a8d361-5765-4a7c-ae6a-d5abf406d579.jpg?aki_policy=x_large","https://a2.muscache.com/im/pictures/1d6882b3-9e49-410f-b821-b29c044925a3.jpg?aki_policy=x_large","https://a2.muscache.com/im/pictures/94fe2108-960f-4b97-ae78-9d5339b22e6e.jpg?aki_policy=x_large","https://a2.muscache.com/im/pictures/7694590d-9163-4907-8500-03f4376cf7c3.jpg?aki_policy=x_large","https://a2.muscache.com/im/pictures/89d42c1d-fb91-4851-9b87-cee7fcef6c66.jpg?aki_policy=x_large","https://a2.muscache.com/im/pictures/75b47245-1eb0-4212-b68d-98bd18bf0c72.jpg?aki_policy=x_large","https://a2.muscache.com/im/pictures/046b8800-d071-4785-907e-fcad2307d8da.jpg?aki_policy=x_large"]},"pricing_quote":{"available":false,"checkin":null,"checkout":null,"guests":1,"guest_details":{"number_of_adults":1,"number_of_children":0,"number_of_infants":0},"listing_currency":"USD","localized_currency":"USD","localized_nightly_price":100,"localized_service_fee":0,"localized_total_price":0,"nightly_price":100,"service_fee":0,"total_price":0},"viewed_at":null}]}'
414
414
  http_version:
415
415
  recorded_at: Thu, 03 Nov 2016 06:55:26 GMT
416
+ - request:
417
+ method: get
418
+ uri: https://api.airbnb.com/v2/search_results?client_id=&location=
419
+ body:
420
+ encoding: US-ASCII
421
+ string: ''
422
+ headers:
423
+ Connection:
424
+ - close
425
+ Host:
426
+ - api.airbnb.com
427
+ User-Agent:
428
+ - http.rb/2.0.3
429
+ response:
430
+ status:
431
+ code: 400
432
+ message: Bad Request
433
+ headers:
434
+ Server:
435
+ - nginx/1.7.12
436
+ Content-Type:
437
+ - application/json; charset=utf-8
438
+ Status:
439
+ - 400 Bad Request
440
+ Content-Security-Policy:
441
+ - 'default-src ''self'' https:; connect-src ''self'' https: ws://localhost.airbnb.com:8888
442
+ http:; font-src ''self'' data: *.muscache.com fonts.gstatic.com use.typekit.net;
443
+ frame-src *; img-src ''self'' https: http: data:; media-src ''self'' https:;
444
+ object-src ''self'' https:; script-src ''self'' https: ''unsafe-eval'' ''unsafe-inline''
445
+ http:; style-src ''self'' https: ''unsafe-inline'' http:; report-uri /tracking/csp?action=index&controller=v2&req_uuid=a69842b5-9bda-4fc8-b678-c3c71fec3295&version=5f2b66e8b906751fa0fcb1e06431c36e1f46f0fe;'
446
+ Cache-Control:
447
+ - no-cache
448
+ X-Ua-Compatible:
449
+ - IE=Edge,chrome=1
450
+ Etag:
451
+ - '"b3ad29e0c598b56988bca58614bfbfec"'
452
+ Strict-Transport-Security:
453
+ - max-age=10886400; includeSubdomains
454
+ X-Frame-Options:
455
+ - SAMEORIGIN
456
+ Content-Length:
457
+ - '75'
458
+ Date:
459
+ - Fri, 04 Nov 2016 02:05:02 GMT
460
+ Connection:
461
+ - close
462
+ body:
463
+ encoding: UTF-8
464
+ string: '{"error_code":400,"error":"invalid_key","error_message":"Invalid API
465
+ key."}'
466
+ http_version:
467
+ recorded_at: Fri, 04 Nov 2016 02:05:02 GMT
416
468
  recorded_with: VCR 3.0.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: movlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Wen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-11-03 00:00:00.000000000 Z
13
+ date: 2016-11-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.6.8
233
+ rubygems_version: 2.5.1
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Gets movie content from omdb