npr_best_books 0.2.0 → 0.2.1

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: cdf5e42386241dae9ec7272cbbc1209f495e9c44
4
- data.tar.gz: cc0f64506d58777df7799ab76f07cf8dea0f6c44
3
+ metadata.gz: 3ecfce9af4391086b5bc18edc93a61a8792eadde
4
+ data.tar.gz: e7f3c1eb9cbd9ee0785e77f3d2edf702779a036c
5
5
  SHA512:
6
- metadata.gz: c1e64c0d50ed1c1d47857871e35d13d3bd0b4f9b04d624f25b1d6a6f4cf4121f9d0449a7ff8b6143a30ecebdb84cf4424985ce1761cc1672042c9c654d029ffb
7
- data.tar.gz: 18bef8e0d82362008690b26ef5bbdd6ae0f65b8412ee566e540405b0698e3acdbe069a071df178dd62e64dc49f33e047f763e8937cb6e9b370719084cd6756bb
6
+ metadata.gz: dd3beaa7a12054bebbadf334bda720bcf83fe7bd6ba875da6ea0e9ba273e66412e9791290048959d80e180bea4bc623f7193bf5506538abced3f42becf2fa949
7
+ data.tar.gz: e88018cc577542ed459d918b61683a9affc28855cc908a231e36019e4a97d4eddd6ce03f65ce01fd6fd75993914bc768cf7302c3a6da099862e5d16ba11e96db
data/README.md CHANGED
@@ -7,32 +7,70 @@ A simple CLI gem to list NPR Book Concierge website's 2015 book recommendations
7
7
  Install by running the following:
8
8
 
9
9
  $ gem install npr_best_books
10
+ Fetching: npr_best_books-0.2.0.gem (100%)
11
+ Successfully installed npr_best_books-0.2.0
12
+ 1 gem installed
10
13
 
11
14
  ## Usage
12
15
 
13
- 1) After installation is completed, start by running `IRB`:
16
+ After gem installation is completed, type `npr_best_books` in your bash command line to start the CLI gem.
14
17
 
15
- $ irb
18
+ $ npr_best_books
19
+ == Welcome to NPR's Book Concierge ==
20
+ == A Guide to 2015's Great Reads ==
21
+ Loading latest list...
22
+ Loading books...
23
+ 2015's Science Fiction & Fantasy recommendations:
24
+ 1. ...
25
+ 2. ...
26
+ ...
16
27
 
17
- 2) Then require the newly install gem:
28
+ To exit CLI gem, type `exit` in the CLI command prompt.
18
29
 
19
- $ > require 'npr_best_books'
20
- $ => true
30
+ Alternatively, you can run the CLI gem using IRB:
21
31
 
22
- NOTE: If after `requiring 'npr_best_books'` you do not get a `true` return value, please kindly let me know as you have encountered an error.
32
+ 1) Run `irb`.
23
33
 
24
- 3) Run the following command in IRB to start CLI gem:
34
+ 2) Enter `require 'npr_best_books'` and get a `true` as return value.
25
35
 
26
- $ > NPRBestBooks::CLI.new.call
36
+ 3) Enter `NPRBestBooks::CLI.new.call` to start the CLI gem.
27
37
 
28
- 4) Enjoy.
38
+ For example,
29
39
 
30
- ## Current Known Issues
40
+ $ irb
41
+ $ > require 'npr_best_books'
42
+ => true
43
+ $ > NPRBestBooks::CLI.new.call
44
+ == Welcome to NPR's Book Concierge ==
45
+ == A Guide to 2015's Great Reads ==
46
+ Loading latest list...
47
+ Loading books...
48
+ ...
49
+
50
+ ## Current Known Issues/Fixes
31
51
 
32
52
  Running `gem install 'npr_best_books'` also installs an executable in your gem folder so you can run `npr-best-books` in your bash command line and attempt to use this CLI gem as is. However, this executable is encountering the following message:
33
53
 
34
54
  $ cannot load such file -- ./lib/npr_best_books (LoadError)
35
55
 
56
+ Update: 7/5/2016 - Issue fixed by using the require_all gem seems to do the trick by adding `require 'require_all'` and `require_rel '../lib'` to the `bin/npr_best_books` executable file. The environment file `lib/npr_best_books.rb` now `require_relative` all `*.rb` files.
57
+
58
+ ## Next Steps
59
+
60
+ 1. Refactor
61
+
62
+ 2. Feed data from NPR API
63
+
64
+ 3. Additional features:
65
+
66
+ + add more genres
67
+
68
+ + add book recommendations from other years
69
+
70
+ + add more book details
71
+
72
+ + auto detect latest year available and change book list to other years
73
+
36
74
  ## Development
37
75
 
38
76
  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.
@@ -43,7 +81,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
43
81
 
44
82
  Bug reports and pull requests are welcome on GitHub at https://github.com/beingy/npr_best_books. 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.
45
83
 
46
-
47
84
  ## License
48
85
 
49
86
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -30,7 +30,7 @@ class NPRBestBooks::CLI
30
30
 
31
31
  def menu
32
32
  puts "Enter the 'number' of the book you'd like to learn more about, or:"
33
- puts "'exit' to end program, 'more' to see recommendations from other years"
33
+ puts "'exit' to end program"
34
34
  print "==> Command: "
35
35
  input = ""
36
36
  while input != "exit"
@@ -1,3 +1,3 @@
1
1
  module NPRBestBooks
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: npr_best_books
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - beingy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-05 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.8'
97
97
  description: A simple CLI gem to list NPR Book Concierge website's 2015 book recommendations
98
- in the Science Fiction and Fantasy genre.
98
+ by genre.
99
99
  email:
100
100
  - beingy@gmail.com
101
101
  executables: