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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f90df19b7d6a62e3455abbd25ffdc417023384d7
4
- data.tar.gz: 838fdb8a1c01ff7ce2941cc143260274c490fd4a
3
+ metadata.gz: 65a9628f377e51bacdbaaa35806d5b436c1fb08a
4
+ data.tar.gz: c4c51a26b8dfc57979447c63a692c70aeb37a37a
5
5
  SHA512:
6
- metadata.gz: 24211591f3a594050bea7acbfa00f5c852ec478f5fb9f1c1d42d79628f0cafcd1103896df878eec193219c80a0bb6ca8a86cc41a0b00db4e999b5c8fba86be8f
7
- data.tar.gz: 31d1fa59e27f0f5101c2d7a1a87edf0cc7743254f62f8d7487e6f5b0c0b66c9d9ecb9b33ddea3ffc86a6e02b22197e230446660b6e44195bc2031abcb8164976
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
@@ -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
@@ -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|%H:%M")
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
@@ -1,3 +1,3 @@
1
1
  module HurriyetCli
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.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-10-27 00:00:00.000000000 Z
11
+ date: 2016-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler