libri 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/.DS_Store +0 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +49 -0
- data/LICENSE.txt +21 -0
- data/README.md +30 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/libri +5 -0
- data/bin/setup +8 -0
- data/lib/.DS_Store +0 -0
- data/lib/libri.rb +10 -0
- data/lib/libri/.DS_Store +0 -0
- data/lib/libri/awards.rb +28 -0
- data/lib/libri/book.rb +31 -0
- data/lib/libri/books.rb +23 -0
- data/lib/libri/cli.rb +84 -0
- data/lib/libri/version.rb +3 -0
- data/libri.gemspec +42 -0
- data/spec.md +7 -0
- metadata +168 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d79aa3d997e7e6ed2c2945fc80aea3d1f1e37d8976a635e79294b251d189d982
|
4
|
+
data.tar.gz: 663f6e582d3adabb4560e87ac43fa412c9258732184c0518e8fd0aa93172f30f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0f8bc3bddf573b861c6daad5a2adebe7d051651b6dce5883fc621a2157a71c9109022db0e814fdaf6a8fb53e08db62e1095206312d0bd01c007700ac3881b706
|
7
|
+
data.tar.gz: bf63b6f543f81fcca7e694d41a961acd74d3e862778231238ee94ef336054ba61e79e2fbc5483a5916619eba57b6feb9a35be17ca6e892cdb3130aa19bdc1694
|
data/.DS_Store
ADDED
Binary file
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at <github email address>. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
libri (0.1.0)
|
5
|
+
colorize
|
6
|
+
nokogiri (~> 1.8.3)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
coderay (1.1.2)
|
12
|
+
colorize (0.8.1)
|
13
|
+
diff-lcs (1.3)
|
14
|
+
gem-release (2.0.1)
|
15
|
+
method_source (0.9.0)
|
16
|
+
mini_portile2 (2.3.0)
|
17
|
+
nokogiri (1.8.3)
|
18
|
+
mini_portile2 (~> 2.3.0)
|
19
|
+
pry (0.11.3)
|
20
|
+
coderay (~> 1.1.0)
|
21
|
+
method_source (~> 0.9.0)
|
22
|
+
rake (10.5.0)
|
23
|
+
rspec (3.7.0)
|
24
|
+
rspec-core (~> 3.7.0)
|
25
|
+
rspec-expectations (~> 3.7.0)
|
26
|
+
rspec-mocks (~> 3.7.0)
|
27
|
+
rspec-core (3.7.1)
|
28
|
+
rspec-support (~> 3.7.0)
|
29
|
+
rspec-expectations (3.7.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.7.0)
|
32
|
+
rspec-mocks (3.7.0)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.7.0)
|
35
|
+
rspec-support (3.7.1)
|
36
|
+
|
37
|
+
PLATFORMS
|
38
|
+
ruby
|
39
|
+
|
40
|
+
DEPENDENCIES
|
41
|
+
bundler (~> 1.16)
|
42
|
+
gem-release
|
43
|
+
libri!
|
44
|
+
pry
|
45
|
+
rake (~> 10.0)
|
46
|
+
rspec (~> 3.0)
|
47
|
+
|
48
|
+
BUNDLED WITH
|
49
|
+
1.16.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 <github username>
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Libri
|
2
|
+
|
3
|
+
This gem is made with the purpose of retrieving detailed information about various book awards shortlist for 2017 — 2018. All data is scraped from Barnes & Noble's website.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
You can install this gem via `gem install libri` on your terminal. The `libri` CLI will be installed and you can run `libri` on the terimnal to get a list of notable book awards and a list of shortlisted books available on the B&N website, as well as details and excerpts from the books.
|
8
|
+
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
After installation, run the gem in your CLI by executing `libri`. Make sure to have installed all the required gems beforehand (pry, nokogiri, and open-air), otherwise the command would return error.
|
13
|
+
|
14
|
+
## Development
|
15
|
+
|
16
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
17
|
+
|
18
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
19
|
+
|
20
|
+
## Contributing
|
21
|
+
|
22
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/<github username>/libri. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
23
|
+
|
24
|
+
## License
|
25
|
+
|
26
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
27
|
+
|
28
|
+
## Code of Conduct
|
29
|
+
|
30
|
+
Everyone interacting in the Libri project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/<github username>/libri/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "libri"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/libri
ADDED
data/bin/setup
ADDED
data/lib/.DS_Store
ADDED
Binary file
|
data/lib/libri.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'open-uri'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'colorize'
|
4
|
+
require 'pry'
|
5
|
+
|
6
|
+
require_relative './libri/version'
|
7
|
+
require_relative './libri/cli'
|
8
|
+
require_relative './libri/awards.rb'
|
9
|
+
require_relative './libri/books.rb'
|
10
|
+
require_relative './libri/book.rb'
|
data/lib/libri/.DS_Store
ADDED
Binary file
|
data/lib/libri/awards.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
class Libri::Awards
|
2
|
+
attr_accessor :name, :url
|
3
|
+
|
4
|
+
def self.all
|
5
|
+
self.scrape_barnes_noble
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.scrape_barnes_noble
|
9
|
+
html = "https://www.barnesandnoble.com/b/books/awards/_/N-29Z8q8Z1d6q"
|
10
|
+
awards_page = Nokogiri::HTML(open(html))
|
11
|
+
|
12
|
+
# awards.name = awards_page.css("ul#sidebar-section-0 li a").text
|
13
|
+
# awards.url = awards_page.css("ul#sidebar-section-0 li a").attribute("href").value
|
14
|
+
|
15
|
+
awards_array = []
|
16
|
+
awards = {}
|
17
|
+
|
18
|
+
awards_page.css("ul#sidebar-section-0 li a").take(15).each { |award|
|
19
|
+
awards = {
|
20
|
+
:name => award.text.chomp,
|
21
|
+
:url => "https://www.barnesandnoble.com" + award.attribute("href").value
|
22
|
+
}
|
23
|
+
awards_array << awards
|
24
|
+
}
|
25
|
+
awards_array
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
data/lib/libri/book.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
class Libri::Book
|
2
|
+
attr_accessor :title_by_author, :about_author, :availability, :blurbs_and_plot, :url, :excerpt, :related_books, :book
|
3
|
+
|
4
|
+
def self.scrape_book(book)
|
5
|
+
html = book[:url]
|
6
|
+
book_page = Nokogiri::HTML(open(html))
|
7
|
+
info_section = book_page.css("div.tabpanel")
|
8
|
+
|
9
|
+
related_books_hash = {}
|
10
|
+
|
11
|
+
book_info_hash = {
|
12
|
+
:title_by_author => info_section.css("div#productInfoOverview div.mb-m").text,
|
13
|
+
:blurbs_and_plot => info_section.css("div#productInfoOverview p").map(&:text).join("\n").strip,
|
14
|
+
:about_author => info_section.css("div#MeetTheAuthor div.text--medium").text.strip,
|
15
|
+
:excerpt => info_section.xpath("//div[@class='read-an-excerpt']/p[not(@class) and position()<7]").map(&:text).join("\n"),
|
16
|
+
# :related_books => book_page.css("div.product-shelf-info").each { |book|
|
17
|
+
# related_books_hash = {
|
18
|
+
# :title => book.css("div.product-shelf-title").text.strip,
|
19
|
+
# :author => book.css("div.product-shelf-author").text.strip,
|
20
|
+
# :url => "https://www.barnesandnoble.com" + book.css("a").attribute("href").value
|
21
|
+
# }
|
22
|
+
# },
|
23
|
+
:availability => book_page.css("button#pdp-marketplace-btn").text.strip,
|
24
|
+
:url => book[:url]
|
25
|
+
}
|
26
|
+
|
27
|
+
book_info_hash.delete_if { |key, val| val.to_s.strip.empty? }
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
data/lib/libri/books.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
class Libri::Books
|
2
|
+
attr_accessor :award, :url
|
3
|
+
|
4
|
+
def self.scrape_award(award)
|
5
|
+
html = award[:url]
|
6
|
+
books_page = Nokogiri::HTML(open(html))
|
7
|
+
|
8
|
+
books_array = []
|
9
|
+
books = {}
|
10
|
+
|
11
|
+
books_page.css("div.product-shelf-info").take(20).each { |book|
|
12
|
+
books = {
|
13
|
+
:title => book.css("div.product-shelf-title").text.strip,
|
14
|
+
:author => book.css("div.product-shelf-author").text.strip,
|
15
|
+
:url => "https://www.barnesandnoble.com" + book.css("a").attribute("href").value
|
16
|
+
}
|
17
|
+
|
18
|
+
books_array << books
|
19
|
+
}
|
20
|
+
books_array
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
data/lib/libri/cli.rb
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
class Libri::CLI
|
2
|
+
attr_accessor :awards, :name, :book, :url
|
3
|
+
|
4
|
+
def call
|
5
|
+
puts "’Tis some visitor, tapping at my chamber door—".blue
|
6
|
+
puts "Have you come to indulge in my trophies?".blue
|
7
|
+
puts "Well, well..".blue
|
8
|
+
puts "Welcome to Libri, a chamber full of literary wonders.".blue
|
9
|
+
puts "Do come inside, this will take a few moments..".blue
|
10
|
+
list_awards
|
11
|
+
leave
|
12
|
+
end
|
13
|
+
|
14
|
+
def list_awards
|
15
|
+
@awards_array = Libri::Awards.all
|
16
|
+
@awards_array.each.with_index(1) { |award, i|
|
17
|
+
puts "#{i}. #{award[:name]}"
|
18
|
+
}
|
19
|
+
puts "Which award would you like to explore?".blue
|
20
|
+
|
21
|
+
menu_awards
|
22
|
+
end
|
23
|
+
|
24
|
+
def list_books(award)
|
25
|
+
@books_array = Libri::Books.scrape_award(award)
|
26
|
+
@books_array.each.with_index(1) { |book, i|
|
27
|
+
puts "#{i}. #{book[:title]} #{book[:author]}. #{book[:rating]}"
|
28
|
+
}
|
29
|
+
puts "Which book would you like to know more about?".blue
|
30
|
+
|
31
|
+
menu_books(award)
|
32
|
+
end
|
33
|
+
|
34
|
+
def list_details(book)
|
35
|
+
@book_info_hash = Libri::Book.scrape_book(book)
|
36
|
+
@book_info_hash.each { |key, val|
|
37
|
+
puts "#{key.upcase}".red
|
38
|
+
puts "#{val}"
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
def menu_awards
|
43
|
+
input = STDIN.gets.strip.downcase
|
44
|
+
|
45
|
+
if input.to_i > 0
|
46
|
+
award = @awards_array[input.to_i - 1]
|
47
|
+
list_books(award)
|
48
|
+
elsif input == "list awards"
|
49
|
+
list_awards
|
50
|
+
elsif input == "exit"
|
51
|
+
nil
|
52
|
+
else
|
53
|
+
puts "The raven croaked, 'Please try again.'".red
|
54
|
+
list_awards
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def menu_books(award)
|
59
|
+
input = STDIN.gets.strip.downcase
|
60
|
+
|
61
|
+
if input.to_i > 0
|
62
|
+
book = @books_array[input.to_i - 1]
|
63
|
+
list_details(book)
|
64
|
+
puts "---------------------------------------------------"
|
65
|
+
puts "To list the books of the same award again, type list books.".blue
|
66
|
+
puts "To list all the awards again, type list awards".blue
|
67
|
+
menu_books(award)
|
68
|
+
elsif input == "list books"
|
69
|
+
list_books(award)
|
70
|
+
elsif input == "list awards"
|
71
|
+
list_awards
|
72
|
+
elsif input == "exit"
|
73
|
+
nil
|
74
|
+
else
|
75
|
+
puts "The raven croaked, 'Please try again.'".red
|
76
|
+
list_books(award)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def leave
|
81
|
+
puts "Nevermore!".blue
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
data/libri.gemspec
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "libri/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "libri"
|
8
|
+
spec.version = Libri::VERSION
|
9
|
+
spec.authors = ["jouissances"]
|
10
|
+
spec.email = ["janicedarikho@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{CLI for retrieving info about certain award-shortlisted books}
|
13
|
+
spec.description = %q{Scrapes the Barnes & Noble website (https://www.barnesandnoble.com/) and provides a CLI for viewing various book awards, the respective shortlisted books, as well as details about each book.}
|
14
|
+
spec.homepage = "https://rubygems.org"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
# "public gem pushes."
|
24
|
+
# end
|
25
|
+
|
26
|
+
# Specify which files should be added to the gem when it is released.
|
27
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
28
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
29
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
30
|
+
end
|
31
|
+
spec.bindir = "bin"
|
32
|
+
spec.executables = ["libri"]
|
33
|
+
spec.require_paths = ["lib"]
|
34
|
+
|
35
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
36
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
38
|
+
spec.add_development_dependency "gem-release"
|
39
|
+
spec.add_development_dependency "pry"
|
40
|
+
spec.add_dependency "nokogiri", "~> 1.8.3"
|
41
|
+
spec.add_dependency "colorize"
|
42
|
+
end
|
data/spec.md
ADDED
metadata
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: libri
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- jouissances
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-06-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: gem-release
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: nokogiri
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.8.3
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.8.3
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: colorize
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Scrapes the Barnes & Noble website (https://www.barnesandnoble.com/)
|
112
|
+
and provides a CLI for viewing various book awards, the respective shortlisted books,
|
113
|
+
as well as details about each book.
|
114
|
+
email:
|
115
|
+
- janicedarikho@gmail.com
|
116
|
+
executables:
|
117
|
+
- libri
|
118
|
+
extensions: []
|
119
|
+
extra_rdoc_files: []
|
120
|
+
files:
|
121
|
+
- ".DS_Store"
|
122
|
+
- ".gitignore"
|
123
|
+
- ".rspec"
|
124
|
+
- ".travis.yml"
|
125
|
+
- CODE_OF_CONDUCT.md
|
126
|
+
- Gemfile
|
127
|
+
- Gemfile.lock
|
128
|
+
- LICENSE.txt
|
129
|
+
- README.md
|
130
|
+
- Rakefile
|
131
|
+
- bin/console
|
132
|
+
- bin/libri
|
133
|
+
- bin/setup
|
134
|
+
- lib/.DS_Store
|
135
|
+
- lib/libri.rb
|
136
|
+
- lib/libri/.DS_Store
|
137
|
+
- lib/libri/awards.rb
|
138
|
+
- lib/libri/book.rb
|
139
|
+
- lib/libri/books.rb
|
140
|
+
- lib/libri/cli.rb
|
141
|
+
- lib/libri/version.rb
|
142
|
+
- libri.gemspec
|
143
|
+
- spec.md
|
144
|
+
homepage: https://rubygems.org
|
145
|
+
licenses:
|
146
|
+
- MIT
|
147
|
+
metadata: {}
|
148
|
+
post_install_message:
|
149
|
+
rdoc_options: []
|
150
|
+
require_paths:
|
151
|
+
- lib
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
requirements: []
|
163
|
+
rubyforge_project:
|
164
|
+
rubygems_version: 2.7.7
|
165
|
+
signing_key:
|
166
|
+
specification_version: 4
|
167
|
+
summary: CLI for retrieving info about certain award-shortlisted books
|
168
|
+
test_files: []
|