news_reader 0.1.2 → 0.1.3
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 +15 -2
- data/lib/news_reader/article.rb +1 -1
- data/lib/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: 0bfea561ce64d015836ec8b9b3c6fbd43c07ff2471a70d070686e3e534d30223
|
4
|
+
data.tar.gz: 6803f95cb4ae28468e048c9ab610e8483df8dd15535dca4ae936ba49471db9c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0575f9bedd1cf6ff37ed904ce2b1a42c09b5ea37c13405bd32de6f3e0c431e1a98631709d5dd84ac61dbd45d57bda65b7c5ee244af76ce86f15066d55771ca34
|
7
|
+
data.tar.gz: 3da051034e0bfe3d7e4811bf0e87df82d0988e03774fb192447c8ce8594db0966da01ad34c9ea530af0dbb8e796ed0ae86d06144d757c9561396b2503583efb1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -22,8 +22,21 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
To use the gem you have to require it in your project like so:
|
26
|
+
- Go to your projects folder
|
27
|
+
- Create a folder to try the gem `mkdir -p /your/project/folder/news-reader` & `cd` into it
|
28
|
+
- In your terminal type `echo "gem 'news_reader'" > Gemfile`
|
29
|
+
- Then type `bundle install --path vendor`
|
30
|
+
- Create ruby test file with `touch test.rb`
|
31
|
+
- Add this code in your `ruby` file:
|
32
|
+
```ruby
|
33
|
+
require "bundler/setup"
|
34
|
+
require 'news_reader'
|
35
|
+
|
36
|
+
NewsReader::CLI.start
|
37
|
+
```
|
38
|
+
- Now run the program with `ruby test.rb`
|
39
|
+
- Have fun!
|
27
40
|
## Development
|
28
41
|
|
29
42
|
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).
|
data/lib/news_reader/article.rb
CHANGED
@@ -43,7 +43,7 @@ class NewsReader::Article
|
|
43
43
|
puts "------ #{article.title} ------"
|
44
44
|
puts "-- Date Published: #{article.date}"
|
45
45
|
puts "-- Article Text: #{article.text}"
|
46
|
-
puts "-- Ctr/Alt + click #{article.url} to go to the article page."
|
46
|
+
puts "-- Ctr/Alt + click http://www.loremipsum.biz/blog#{article.url} to go to the article page."
|
47
47
|
puts "------ ------ ------ ------ ------"
|
48
48
|
self.menu
|
49
49
|
end
|
data/lib/news_reader/version.rb
CHANGED