npr_best_books 0.1.5 → 0.1.6

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: bd7e38283d5259fab7498f034f492d916156b37a
4
- data.tar.gz: c1d4a30991f6747876206d91b5aaac31b91a5900
3
+ metadata.gz: 93e6a735b12800231f369df26b6c6fedbca4f3d9
4
+ data.tar.gz: dcb619a9754a17c2a15a69e35d94de120e3b3d5c
5
5
  SHA512:
6
- metadata.gz: 8033478484ef3ad22f7fda261934f940dec31814955df7009b9240894c22608ffe6d3a6f9c9c09a18be09ffd420e8aa01b72527014e877459f5ad7641c4ed82a
7
- data.tar.gz: 00b8748936186c061f0649ace5f6c75933467c9778510d7ecba035ff5be2f726619c1173c45ab5aa598ef0c0d094a67da294f0b376878c21fcebeab219cf967f
6
+ metadata.gz: 1d29023bdcf9cbec85e62ecf21d5ebfa84f58ea08aa045231e31fcb300aba04a2da6324dae1ba90c9ab67ffc6381389d07b9eb47a1f3ae587791cd9758358148
7
+ data.tar.gz: e1ca774dec3a2eecacda43597d97f6d8ec6765a6510af1e32986991b40f720d9c634a61ff39c517d8dfb9487350935d8e13915d00566d079be2088753fa9ccd8
@@ -5,4 +5,4 @@ require 'npr_best_books/list'
5
5
  require 'npr_best_books/book'
6
6
  require 'npr_best_books/cli'
7
7
 
8
- # require_relative './
8
+ # prefix require_relative './ replaced by require '
@@ -1,3 +1,3 @@
1
1
  module NPRBestBooks
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: npr_best_books
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - beingy
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
@@ -52,6 +52,26 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: require_all
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 1.3.3
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '1.3'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 1.3.3
55
75
  - !ruby/object:Gem::Dependency
56
76
  name: nokogiri
57
77
  requirement: !ruby/object:Gem::Requirement
@@ -85,30 +105,18 @@ description: A simple CLI gem to list NPR Book Concierge website's 2015 book rec
85
105
  email:
86
106
  - beingy@gmail.com
87
107
  executables:
88
- - npr-best-books
108
+ - npr_best_books
89
109
  extensions: []
90
110
  extra_rdoc_files: []
91
111
  files:
92
- - ".gitignore"
93
- - ".rspec"
94
- - ".travis.yml"
95
- - CODE_OF_CONDUCT.md
96
- - Gemfile
97
- - LICENSE.txt
98
- - NOTES.md
99
112
  - README.md
100
- - Rakefile
101
- - bin/console
102
113
  - bin/npr_best_books
103
- - bin/setup
104
- - exe/npr-best-books
105
114
  - lib/npr_best_books.rb
106
115
  - lib/npr_best_books/book.rb
107
116
  - lib/npr_best_books/cli.rb
108
117
  - lib/npr_best_books/list.rb
109
118
  - lib/npr_best_books/scraper.rb
110
119
  - lib/npr_best_books/version.rb
111
- - npr_best_books.gemspec
112
120
  homepage: https://github.com/beingy/npr-best-books-cli-gem
113
121
  licenses:
114
122
  - MIT
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.3
5
- before_install: gem install bundler -v 1.12.5
data/CODE_OF_CONDUCT.md DELETED
@@ -1,49 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at beingy@gmail.com. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in npr_best_books.gemspec
4
- gemspec
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 beingy
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/NOTES.md DELETED
@@ -1,61 +0,0 @@
1
- How to build a CLI Gem
2
-
3
- 1. Plan your gem, imagine your interface
4
- 2. Start with projct structure - google
5
- 3. Start with the entry point - the file run
6
- 4. Force that to build the CLI interface
7
- 5. stub out the interface - fake it until you are ready to make it
8
- 6. start making things real
9
- 7. discover objects
10
- 8. program
11
-
12
- - A command line interface to access NPR Best Books by year
13
-
14
- user types npr-best-books
15
-
16
- show a list of NPR Best Books for Science Fiction & Fantasy from the most recent year.
17
-
18
- NPR's Latest Best Books Recommendation in Science Fiction & Fantasy from 2015 in Alphabetical Order:
19
- 1. Ancillary Mercy by Ann Leckie
20
- 2. Bitch Planet Vol. 1: Extraordinary Machine by Kelly Sue DeConnick, illustrated by Valentine De Landro
21
- ..
22
- 57. Your Alien by Tammi Sauer, illustrated by Goro Fujita
23
-
24
- Which book do you want to learn more about? Type 'exit' to end program. Type 'more' to see recommendations from previous years.
25
-
26
- 1
27
-
28
- Ancillary Mercy by Ann Leckie
29
- Recommended by Genevieve Valentine, book critic
30
- It would be a mistake to go into Ancillary Mercy hoping for the same lightning-strike of Ancillary Justice. The first installment of Ann Leckie's trilogy opened a world; by now, things are so complicated for protagonist Breq that all you can hope for is to be satisfied. Luckily, Mercy delivers. The world-building particularly shines in the machinations of this closing chapter, as Breq tries to use her new political powers to stop a war with all the weapons the Radchaai Empire has at its disposal: insinuation, shifting loyalties and the second-best tea set.
31
- ISBN-13: 978-0316246682
32
- Paperback: 348 pages
33
- Publisher: Orbit (October 5, 2015)
34
- Average Amazon Customer Review: 4.3 out of 5 stars (233 reviews)
35
- Amazon Buy New Price: $9.59
36
-
37
- Type 'back' to go back to book list. Type 'exit' to end program. Type 'more' to see recommendations from previous years.
38
-
39
- #What is a list of books?
40
-
41
- A list has_many books
42
- A list has a year
43
- A list has a genre/title
44
-
45
- #What is a book?
46
-
47
- Phase 1 (scrape NPR)
48
- A book belongs to a list (for now, may belong_to_many lists per cross genre)
49
- A book has a title
50
- A book has an author
51
- A book has a recommender
52
- A book has a recomendation description
53
- A book has one or more genres
54
-
55
- Phrase 2 (scrape Amazon)
56
- A book has an ISBN
57
- A book has a publisher
58
- A book has a number of pages)
59
- A book has a type (Hardcover or Paperback)
60
- A book has an Amazon rating
61
- A book has an Amazon price
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "npr_best_books"
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
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/exe/npr-best-books DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require './lib/npr_best_books'
4
-
5
- NPRBestBooks::CLI.new.call
@@ -1,29 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'npr_best_books/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "npr_best_books"
8
- spec.version = NPRBestBooks::VERSION
9
- spec.authors = ["beingy"]
10
- spec.email = ["beingy@gmail.com"]
11
-
12
- spec.summary = "CLI gem to list book recomendations from NPR's Book Concierge website."
13
- spec.description = "A simple CLI gem to list NPR Book Concierge website's 2015 book recommendations in the Science Fiction and Fantasy genre."
14
- spec.homepage = "https://github.com/beingy/npr-best-books-cli-gem"
15
- spec.license = "MIT"
16
-
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.bindir = "exe"
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
- spec.require_paths = ["lib"]
21
-
22
- spec.add_development_dependency "bundler", "~> 1.12"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_development_dependency "rspec", "~> 3.0"
25
-
26
- spec.add_runtime_dependency "nokogiri", "~> 1.6"
27
- spec.add_runtime_dependency "json", "~> 1.8"
28
-
29
- end