nytimesbooks 0.3.0 → 1.0.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: 3c071f2d2667c222b52f4bbb457a6561cded49743141ecb94a697f5f3102d30c
4
- data.tar.gz: ff8ac701bcf5a5ef93952191dc014ea7c21b2e16c46f6310e64ae5766a29abbc
3
+ metadata.gz: 45c7cd603cf60fccb3d8e3af78dd96dfd9d1511d161dbcb5dab859d1dc2849cb
4
+ data.tar.gz: 3eceaee49827fa0cf9f2754163df64be59fd3d3a85641e574119068daa1704a8
5
5
  SHA512:
6
- metadata.gz: 4768e57f0360fc58e02dfd479f44e99eb7572559bc794c89efb75a1f0258f7346634374c81412130210fc387e6a521fbeab02602c26ee6b5419d3224dd280655
7
- data.tar.gz: da155c45b0456c2fc13d4899d8a6e4f0c6a4e48c4c4b8f496fcad10a3ed35d1328ab56bd3a6cacf37e5680b2b849d2d541279144fd64ede8bc4dc78e5d96bf83
6
+ metadata.gz: 8cbfb36018eda53841b2c7ac94af72ed6989f907d672fb184a632981449ccbeaeccd82dcb96822db85dda302dccccac1b6e2f03e904de3c09e6417a632c09a77
7
+ data.tar.gz: 6fe9c92c479f3fc2ddbea2448244f681ee098544f7b3a7ec88b3dd22874377960aef17ca489aaef89313894fd2c9932eaddb20934cf13271778dd79bb8d39c9e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nytimesbooks (0.2.0)
4
+ nytimesbooks (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,5 @@
1
1
  require "open-uri"
2
2
  require "nokogiri"
3
- require "pry"
4
3
 
5
4
  require_relative "nytimesbooks/version"
6
5
  require_relative "nytimesbooks/cli"
@@ -4,11 +4,11 @@ class Nytimesbooks::Book
4
4
 
5
5
  def self.new_book(doc)
6
6
  new_array = []
7
- doc.css("div.book-body").each do |book|
7
+ doc.css("#app #site-content ol li.css-13y32ub").each do |book|
8
8
  new_book = self.new
9
- new_book.name = book.css("css-5pe77f").text
10
- new_book.author = book.css("css-hjukut").text
11
- new_book.bookdescription = book.css("css-14lubdp").text
9
+ new_book.name = book.css("h3.css-5pe77f").text
10
+ new_book.author = book.css("p.css-hjukut").text
11
+ new_book.bookdescription = book.css("p.css-14lubdp").text
12
12
  new_array << new_book
13
13
  end
14
14
  new_array
@@ -1,3 +1,3 @@
1
1
  module Nytimesbooks
2
- VERSION = "0.3.0"
2
+ VERSION = "1.0.0"
3
3
  end
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nytimesbooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Alexandra Fren'"
@@ -75,6 +75,8 @@ files:
75
75
  - lib/nytimesbooks/cli.rb
76
76
  - lib/nytimesbooks/scraper.rb
77
77
  - lib/nytimesbooks/version.rb
78
+ - nytimesbooks-0.2.0.gem
79
+ - nytimesbooks-0.3.0.gem
78
80
  - nytimesbooks.gemspec
79
81
  homepage: https://github.com/alexandrafren/nytimesbooks-cli-app
80
82
  licenses: []