jikan 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/jikan +7 -0
- data/lib/jikan.rb +11 -0
- metadata +47 -0
data/bin/jikan
ADDED
data/lib/jikan.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
class Jikan
|
2
|
+
# Prints the time in a way that is not awful.
|
3
|
+
#
|
4
|
+
# Example:
|
5
|
+
# >> Jikan.time
|
6
|
+
# => The time is 6:14 PM
|
7
|
+
# The date is February 7, 2013
|
8
|
+
def time
|
9
|
+
puts "The time is #{Time.now.strftime("%l:%M %p")}.\nThe date is #{Time.now.strftime("%B%e, %Y")}."
|
10
|
+
end
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jikan
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Brett Chalupa
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: A simple command line gem for getting the date and time.
|
15
|
+
email: brettchalupa@gmail.com
|
16
|
+
executables:
|
17
|
+
- jikan
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- lib/jikan.rb
|
22
|
+
- bin/jikan
|
23
|
+
homepage: http://rubygems.org/gems/jikan
|
24
|
+
licenses: []
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 1.8.25
|
44
|
+
signing_key:
|
45
|
+
specification_version: 3
|
46
|
+
summary: Time.now
|
47
|
+
test_files: []
|