a14z6ch_elapsed_days 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/a14z6ch_elapsed_days.gemspec +3 -3
- data/lib/a14z6ch_elapsed_days.rb +1 -1
- data/lib/a14z6ch_elapsed_days/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: ba3b7d2fedfcc3e6457abf93bc2eb99234d27d62
|
4
|
+
data.tar.gz: 5156348597ba441c84fa57cfd56c518974a8cb73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff85b59bfb62801d3ca2b770e87a19983d2dbab5e410b1470f79ab806df9232a2b7a2758c8baf765d072d2bbc6df6f7d8a3132820c8904790eba5c003f8f20f5
|
7
|
+
data.tar.gz: 116f6e76c0c4faa7f5ad814721fb6bf15598afb7e2bd55b6a646ef31f5a619ee03fda319f4905795130154bdcb343ab9497828748914936ed80997ab31755d66
|
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = ElapsedDays::VERSION
|
9
9
|
spec.authors = ["Chihiro Hashimoto"]
|
10
10
|
spec.email = ["a14z6ch@aiit.ac.jp"]
|
11
|
-
spec.summary = %q{To calculate days from
|
12
|
-
spec.description = %q{To calculate days from
|
13
|
-
spec.homepage = ""
|
11
|
+
spec.summary = %q{To calculate days from given date.}
|
12
|
+
spec.description = %q{To calculate days from given date.}
|
13
|
+
spec.homepage = "https://github.com/chrhsmt/a14z6ch_elapsed_days"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/a14z6ch_elapsed_days.rb
CHANGED
@@ -21,7 +21,7 @@ module A14z6chElapsedDays
|
|
21
21
|
def calc(date)
|
22
22
|
begin
|
23
23
|
elapsed_seconds = Time.now - Time.parse(date)
|
24
|
-
puts "#{(elapsed_seconds / 60 / 60 / 24).to_i.to_s(:delimited)} days elapsed from the day \"#{date}\""
|
24
|
+
puts "#{(elapsed_seconds / 60 / 60 / 24).to_i.to_s(:delimited)} days elapsed from the day \"#{date}\"".colorize(:light_magenta)
|
25
25
|
rescue ArgumentError => e
|
26
26
|
puts "given date is not valid.".colorize(:light_blue)
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a14z6ch_elapsed_days
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chihiro Hashimoto
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10.0'
|
69
|
-
description: To calculate days from
|
69
|
+
description: To calculate days from given date.
|
70
70
|
email:
|
71
71
|
- a14z6ch@aiit.ac.jp
|
72
72
|
executables:
|
@@ -83,7 +83,7 @@ files:
|
|
83
83
|
- bin/a14z6ch_elapsed_days
|
84
84
|
- lib/a14z6ch_elapsed_days.rb
|
85
85
|
- lib/a14z6ch_elapsed_days/version.rb
|
86
|
-
homepage:
|
86
|
+
homepage: https://github.com/chrhsmt/a14z6ch_elapsed_days
|
87
87
|
licenses:
|
88
88
|
- MIT
|
89
89
|
metadata: {}
|
@@ -106,5 +106,5 @@ rubyforge_project:
|
|
106
106
|
rubygems_version: 2.4.2
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
|
-
summary: To calculate days from
|
109
|
+
summary: To calculate days from given date.
|
110
110
|
test_files: []
|