hurriyet_cli 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hurriyet_cli/articles.rb +1 -1
- data/lib/hurriyet_cli/columns.rb +1 -1
- data/lib/hurriyet_cli/pages.rb +1 -1
- data/lib/hurriyet_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65a9628f377e51bacdbaaa35806d5b436c1fb08a
|
4
|
+
data.tar.gz: c4c51a26b8dfc57979447c63a692c70aeb37a37a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b0b84e0bb880457aa210418b68d7aa9cc6f931f653694fe022df60b69a092127662b85b76871946321822beedda4a8b600985e376ad2701451e78219cf9d16d
|
7
|
+
data.tar.gz: 939923448f529f7cafb805534eceb527b4837de1f85626d892e63ab8edb01adadd7c49918e43901825de9785f076d6f631598e83e1f911f72573ff22069b1184
|
@@ -18,7 +18,7 @@ module HurriyetCli
|
|
18
18
|
private
|
19
19
|
def formated_parse(articles)
|
20
20
|
articles.each.with_index(1) do |a, i|
|
21
|
-
created_at = Time.parse(a["CreatedDate"]).strftime("%d/%m/%y | %H:%M")
|
21
|
+
created_at = Time.parse(a["CreatedDate"]).localtime.strftime("%d/%m/%y | %H:%M %Z")
|
22
22
|
@display.print "#{i} - #{Rainbow(a["Title"]).red} - #{Rainbow(created_at).color(:yellow)} \n #{Rainbow(a["Description"]).color(:dimgray)} \n #{Rainbow(a["Url"]).cyan} \n"
|
23
23
|
end
|
24
24
|
end
|
data/lib/hurriyet_cli/columns.rb
CHANGED
@@ -18,7 +18,7 @@ module HurriyetCli
|
|
18
18
|
private
|
19
19
|
def formated_parse(columns)
|
20
20
|
columns.each.with_index(1) do |a, i|
|
21
|
-
created_at = Time.parse(a["CreatedDate"]).strftime("%d/%m/%y | %H:%M")
|
21
|
+
created_at = Time.parse(a["CreatedDate"]).localtime.strftime("%d/%m/%y | %H:%M %Z")
|
22
22
|
@display.print "#{i} - #{Rainbow(a["Title"]).red} - #{Rainbow(a["Fullname"]).orange} - #{Rainbow(created_at).color(:blue)} \n #{Rainbow(a["Description"]).color(:dimgray)} \n #{Rainbow(a["Url"]).cyan} \n"
|
23
23
|
end
|
24
24
|
end
|
data/lib/hurriyet_cli/pages.rb
CHANGED
@@ -18,7 +18,7 @@ module HurriyetCli
|
|
18
18
|
private
|
19
19
|
def formated_parse(pages)
|
20
20
|
pages.each do |a|
|
21
|
-
created_at = Time.parse(a["CreatedDate"]).strftime("%d/%m/%y
|
21
|
+
created_at = Time.parse(a["CreatedDate"]).localtime.strftime("%d/%m/%y | %H:%M %Z")
|
22
22
|
@display.puts "#{created_at} - #{Rainbow(a["Title"]).red} - #{Rainbow(a["Url"]).cyan}"
|
23
23
|
end
|
24
24
|
end
|
data/lib/hurriyet_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hurriyet_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ender Ahmet Yurt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|