personal 0.6.0 → 0.7.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
  SHA256:
3
- metadata.gz: bb1c1955e1cc534d2657a3e3194f58e4722450c33e6a9c7fa2077936205f241c
4
- data.tar.gz: 76d06f78f2569c505377ec5d0ae5d174dd5a02dd286365303eea46dbd29ee870
3
+ metadata.gz: 2d6d66722a19874399aaf34d9f5ad3a180f59a59183f4505b3a024f6c1275393
4
+ data.tar.gz: d959ba9626e67e46263fc500e1ad73187375cfbe7e5db71493914ce430f4f7a5
5
5
  SHA512:
6
- metadata.gz: b7fd5286d4f15b5863b5d791f4cf3110facd0082c5024c3abb82104ac06090175db50e8842ab69dabbafb9caba9f51e59dbbf5ea6acd26d2f4cc487f6d542b29
7
- data.tar.gz: df1fa5bfe0c6b4f0513afabfb973268819467440b0f3a8a165153ea144d504c410e1b2688fde62e2a203c4afe9cce79d2ecbb805a845a316067b5dd960992591
6
+ metadata.gz: 0dc6190c35b367fbe120571e25cbce905ad95342b9df561a9e29300a75b77e72a2b57ebf7d4afcb1f21970540c31947a9310ae4733ee9ebc5d12dcad4ac9827f
7
+ data.tar.gz: f83e9df29296ada2a9a761455cf94e2f97c1a5d0f9409e0b932e7bcf0f36de4a4896d4b9219dcb31cc55c37be6f29076619de78ed8500c6b8499a5e5474dd933
data/bin/personal CHANGED
@@ -27,7 +27,7 @@ class PersonalCommand < Thor
27
27
  end
28
28
 
29
29
  desc "latest", "List the latest entries that have been saved"
30
- method_option :number, :type => :numeric, :required => false, :default => 10, :aliases => "-n", :desc => "The number of entries to list."
30
+ method_option :number, :type => :numeric, :required => false, :default => 30, :aliases => "-n", :desc => "The number of entries to list."
31
31
  def latest
32
32
  init
33
33
  present @db_persistence.latest_entries(options[:number])
@@ -94,16 +94,16 @@ class PersonalCommand < Thor
94
94
  def format(row)
95
95
  return "" unless row.class == SQLite3::ResultSet::ArrayWithTypesAndFields
96
96
  id = row[0]
97
- creation_date = row[1].split(" ")[0]
98
- creation_time = row[1].split(" ")[1]
97
+ creation_date = " #{row[1].split(" ")[0]} "
98
+ creation_time = " #{row[1].split(" ")[1]} "
99
99
  text = row[2]
100
100
 
101
- creation_date_string = creation_date.colorize(:color => :white, :background => :blue)
101
+ creation_date_string = creation_date.colorize(:color => :black, :background => :light_blue)
102
102
  text_string = text.colorize(:light_green)
103
- creation_time_string = creation_time.colorize(:color => :yellow, :background => :gray)
104
- id_string = "id => #{id.to_s}".colorize(:color => :light_black)
103
+ creation_time_string = creation_time.colorize(:color => :black, :background => :light_black)
104
+ id_string = "#{id.to_s}.".colorize(:color => :white)
105
105
 
106
- puts "#{creation_date_string} #{text_string} @#{creation_time_string} #{id_string}\n"
106
+ puts " #{id_string} #{creation_date_string} #{text_string} #{creation_time_string}\n"
107
107
  end
108
108
 
109
109
  def present_message(text, color)
@@ -1,3 +1,3 @@
1
1
  module Personal
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: personal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jone Samra