personal 0.6.0 → 0.7.0
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/bin/personal +7 -7
- data/lib/personal/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: 2d6d66722a19874399aaf34d9f5ad3a180f59a59183f4505b3a024f6c1275393
|
4
|
+
data.tar.gz: d959ba9626e67e46263fc500e1ad73187375cfbe7e5db71493914ce430f4f7a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =>
|
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 => :
|
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 => :
|
104
|
-
id_string = "
|
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 "#{
|
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)
|
data/lib/personal/version.rb
CHANGED