npr_cli_news_reader 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -3
- data/lib/npr_cli_news_reader/cli.rb +1 -0
- data/lib/npr_cli_news_reader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab0bc5e4165517be89656a96bc53e1b44ae1780b80e183e0bbc3d3e72e9e6c69
|
|
4
|
+
data.tar.gz: 54638343d3b045479e2583ae37254b1f5459c4b23c5617d0bbc2425fc0ff9a21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5e1c03a2e374eece04b1346b3db59c66317242b3c917ee043d3e5b4f48d3d7112aa4d9f245d7b95c55ae9b5367d220ff551e801309d58774d61b40957fe0492
|
|
7
|
+
data.tar.gz: 88ec399d18e30198a74c4a563fd28e5a34fbefa2ec96a0c1f7337deefd83767344177c3cc66889ddae335bbdf7a9ba833d4d29b9f404a182df8d6e4d0e8744fb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -4,13 +4,14 @@ This Gem allows a user to choose from a list of news categories. The ClI then di
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
## Install as a gem
|
|
8
|
+
|
|
7
9
|
Add this line to your application's Gemfile:
|
|
8
10
|
|
|
9
11
|
```ruby
|
|
10
12
|
gem 'npr_cli_news_reader'
|
|
11
13
|
```
|
|
12
|
-
|
|
13
|
-
And then execute:
|
|
14
|
+
And then execute in terminal:
|
|
14
15
|
|
|
15
16
|
$ bundle
|
|
16
17
|
|
|
@@ -18,6 +19,16 @@ Or install it yourself as:
|
|
|
18
19
|
|
|
19
20
|
$ gem install npr_cli_news_reader
|
|
20
21
|
|
|
22
|
+
In terminal:
|
|
23
|
+
|
|
24
|
+
$ irb
|
|
25
|
+
> require "npr_cli_news_reader"
|
|
26
|
+
> NprCliNewsReader::CLI.new.call
|
|
27
|
+
|
|
28
|
+
The application will start up for you.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
21
32
|
Or clone the git repository from github
|
|
22
33
|
|
|
23
34
|
In your terminal run:
|
|
@@ -28,9 +39,11 @@ In your terminal run:
|
|
|
28
39
|
|
|
29
40
|
$ ./bin/npr_cli_news_reader
|
|
30
41
|
|
|
31
|
-
|
|
42
|
+
The CLI application will start after the last command
|
|
32
43
|
|
|
44
|
+
## Usage
|
|
33
45
|
|
|
46
|
+
This ClI is meant to bring the news of NPR to your terminal. No pictures getting in the way.
|
|
34
47
|
|
|
35
48
|
|
|
36
49
|
## Development
|
|
@@ -90,6 +90,7 @@ class NprCliNewsReader::CLI
|
|
|
90
90
|
category_input = gets.strip
|
|
91
91
|
end
|
|
92
92
|
@selected_category = @categories[category_input.to_i - 1].downcase
|
|
93
|
+
binding.pry
|
|
93
94
|
puts Rainbow("#{@selected_category.capitalize} Category").bright
|
|
94
95
|
puts "--------------------"
|
|
95
96
|
NprCliNewsReader::Scraper.scrape_articles_for_category(@selected_category)
|