rubynews 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +86 -2
- data/Rakefile +1 -1
- data/lib/rubynews/tool.rb +7 -5
- data/lib/rubynews/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efe7afad8556454455f5048ef3136a1cbe52bcae
|
4
|
+
data.tar.gz: 6e04743363ae4e0f3aa653b1a20d69367a5bb803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac5ecbb5b854cf3de1f4550094b5c5841b2ee9fa23642d919f807bb2c4cd5c6fa1e4ab55bbb5602ead6dca242d7df4a6be2c1275d0c14fb60d7a3e881f08832
|
7
|
+
data.tar.gz: b4ab35f97552280b9bf9131d5fa3e0b8db2375d2880f04edf84f3217fafb566496f78adb94db8e97a3c6ab2e3a96c6dab12557b47e84521ae69655bfa341273d
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# rubynews - what's news in the ruby world? browse week by week
|
1
|
+
# rubynews - what's news in the ruby world? browse week by week - 30 channels, 940 items
|
2
2
|
|
3
3
|
* home :: [github.com/planetruby/planet](https://github.com/planetruby/planet)
|
4
4
|
* bugs :: [github.com/planetruby/planet/issues](https://github.com/planetruby/planet/issues)
|
@@ -8,7 +8,91 @@
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
rubynews is a command line tool that lets you browse ruby news week by week.
|
12
|
+
Type:
|
13
|
+
|
14
|
+
rubynews
|
15
|
+
|
16
|
+
to run. Resulting in:
|
17
|
+
|
18
|
+
```
|
19
|
+
Welcome to Ruby News v1.0 (30 Channels, 940 Items)
|
20
|
+
|
21
|
+
Week 2/2020 - Mon, 06 Jan to Sun, 12 Jan (3 Items)
|
22
|
+
|
23
|
+
Sun, 12 Jan >> eregon.me <<
|
24
|
+
A Migration Path to Bundler 2+
|
25
|
+
|
26
|
+
Sat, 11 Jan >> weblog.rubyonrails.org <<
|
27
|
+
This week in Rails - Deprecations, bugfixes and improvements!
|
28
|
+
|
29
|
+
Thu, 09 Jan >> www.ruby-toolbox.com <<
|
30
|
+
Rubygem Release History Heatmaps
|
31
|
+
|
32
|
+
Week 1/2020 - Mon, 30 Dec to Sun, 05 Jan (5 Items)
|
33
|
+
|
34
|
+
Sun, 05 Jan >> weblog.rubyonrails.org <<
|
35
|
+
This week in Rails - The 2019 edition
|
36
|
+
>> rubyinstaller.org <<
|
37
|
+
RubyInstaller 2.7.0-1 released
|
38
|
+
|
39
|
+
Fri, 03 Jan >> railsgirlssummerofcode.org <<
|
40
|
+
Submit Your Open Source Projects
|
41
|
+
|
42
|
+
Thu, 02 Jan >> planetruby.github.io <<
|
43
|
+
Birmingham on Rails @ Birmingham, Alabama, United States - Ruby Conferences Update
|
44
|
+
|
45
|
+
Wed, 01 Jan >> sinatrarb.com <<
|
46
|
+
Happy new year & Sinatra 2.0.8!
|
47
|
+
|
48
|
+
Week 52/2019 - Mon, 23 Dec to Sun, 29 Dec (2 Items)
|
49
|
+
|
50
|
+
Fri, 27 Dec >> weblog.rubyonrails.org <<
|
51
|
+
Ruby 2.7.0, Rails 6.0.2.1 and more
|
52
|
+
|
53
|
+
Wed, 25 Dec >> www.ruby-lang.org <<
|
54
|
+
Ruby 2.7.0 Released
|
55
|
+
|
56
|
+
Week 51/2019 - Mon, 16 Dec to Sun, 22 Dec (9 Items)
|
57
|
+
|
58
|
+
Sat, 21 Dec >> www.ruby-lang.org <<
|
59
|
+
Ruby 2.7.0-rc2 Released
|
60
|
+
|
61
|
+
Fri, 20 Dec >> blog.rubygems.org <<
|
62
|
+
3.1.2 Released
|
63
|
+
|
64
|
+
Wed, 18 Dec >> weblog.rubyonrails.org <<
|
65
|
+
Rails 5.2.4.1 has been released!
|
66
|
+
Rails 6.0.2.1 has been released!
|
67
|
+
>> www.schneems.com <<
|
68
|
+
The Curious Case of the Table-Locking UPDATE Query
|
69
|
+
|
70
|
+
Tue, 17 Dec >> www.ruby-lang.org <<
|
71
|
+
Ruby 2.7.0-rc1 Released
|
72
|
+
>> rubytuesday.katafrakt.me <<
|
73
|
+
Issue #18
|
74
|
+
|
75
|
+
Mon, 16 Dec >> blog.rubygems.org <<
|
76
|
+
3.1.1 Released
|
77
|
+
3.1.0 Released
|
78
|
+
```
|
79
|
+
|
80
|
+
The rubynews command will fetch all builtin news feeds subscriptions
|
81
|
+
and store all news items in the single-file SQLite `news.db` in your home folder
|
82
|
+
under `.news/`.
|
83
|
+
Use the space bar to browse week-by-week
|
84
|
+
or press any other key to quit.
|
85
|
+
|
86
|
+
|
87
|
+
### Update All Feed Subscriptions
|
88
|
+
|
89
|
+
Note: rubynews has no built-in automatic feed subscription update. Use:
|
90
|
+
|
91
|
+
rubynews update # or
|
92
|
+
rubynews up # or
|
93
|
+
rupbynew u
|
94
|
+
|
95
|
+
to update all feed subscriptions.
|
12
96
|
|
13
97
|
|
14
98
|
## License
|
data/Rakefile
CHANGED
data/lib/rubynews/tool.rb
CHANGED
@@ -76,17 +76,19 @@ class Tool
|
|
76
76
|
|
77
77
|
|
78
78
|
last_day = nil
|
79
|
-
last_host = nil
|
79
|
+
last_host = nil ## todo/fix: change to last_source_title or something??
|
80
80
|
|
81
81
|
News.week(week, year).each do |item|
|
82
82
|
if last_day != item.date.day
|
83
83
|
puts
|
84
84
|
print " #{item.date.format( 'Mon, 02 Jan' )} "
|
85
|
-
print ">> #{URI(item.feed.feed_url).host} <<"
|
85
|
+
print ">> #{item.feed.title || URI(item.feed.feed_url).host} <<"
|
86
86
|
print "\n"
|
87
|
-
elsif last_host != URI(item.feed.feed_url).host
|
87
|
+
elsif last_host != (item.feed.title || URI(item.feed.feed_url).host)
|
88
88
|
print " "
|
89
|
-
print
|
89
|
+
## note: print feed title and if missing fallback to feed host (from url)
|
90
|
+
## todo/fix: check for feed location - if present add with @ !!!!
|
91
|
+
print ">> #{item.feed.title || URI(item.feed.feed_url).host} <<"
|
90
92
|
print "\n"
|
91
93
|
else
|
92
94
|
end
|
@@ -94,7 +96,7 @@ class Tool
|
|
94
96
|
puts " #{item.title}"
|
95
97
|
|
96
98
|
last_day = item.date.day
|
97
|
-
last_host = URI(item.feed.feed_url).host
|
99
|
+
last_host = item.feed.title || URI(item.feed.feed_url).host
|
98
100
|
end
|
99
101
|
|
100
102
|
if count > 0 || empty_week_counter > 10
|
data/lib/rubynews/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubynews
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: whatson
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.
|
33
|
+
version: 1.0.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.
|
40
|
+
version: 1.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|