ddate 0.5.0 → 0.9.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.
- data/History.txt +6 -1
- data/bin/ddate +16 -1
- data/lib/ddate/version.rb +1 -1
- data/website/index.html +5 -1
- data/website/index.txt +5 -1
- data/website/stylesheets/screen.css +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/bin/ddate
CHANGED
@@ -1,3 +1,18 @@
|
|
1
1
|
require 'ddate'
|
2
|
+
require 'parsedate'
|
2
3
|
|
3
|
-
|
4
|
+
if ARGV != []
|
5
|
+
begin
|
6
|
+
time = Time.gm(*ParseDate.parsedate(ARGV.join(" "),true))
|
7
|
+
rescue
|
8
|
+
puts "Unrecognized date format."
|
9
|
+
exit(2)
|
10
|
+
end
|
11
|
+
|
12
|
+
else
|
13
|
+
time = Time.now
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
puts "#{DDate.new(time)}"
|
data/lib/ddate/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -34,6 +34,8 @@
|
|
34
34
|
<p>A cross-platform ruby implementation of the unix command <a href="http://www.linuxcommand.org/man_pages/ddate1.html">ddate</a>.</p>
|
35
35
|
|
36
36
|
|
37
|
+
<p class="update">Update!: The terminal program will now give the Discordian date corresponding to a date in the Julian calendar.</p>
|
38
|
+
|
37
39
|
<h2>Installing</h2>
|
38
40
|
|
39
41
|
|
@@ -50,7 +52,9 @@
|
|
50
52
|
|
51
53
|
<pre>
|
52
54
|
$ ddate
|
53
|
-
|
55
|
+
Pungenday, 7 of Confusion 3173 YOLD
|
56
|
+
$ ddate 5/31/2007
|
57
|
+
Sweetmorn, 5 of Confusion 3173 YOLD and the holiday of Syaday
|
54
58
|
</pre>
|
55
59
|
|
56
60
|
<h2>License</h2>
|
data/website/index.txt
CHANGED
@@ -4,6 +4,8 @@ Gives the current date in the [Discordian Calendar](http://en.wikipedia.org/wiki
|
|
4
4
|
|
5
5
|
A cross-platform ruby implementation of the unix command [ddate](http://www.linuxcommand.org/man_pages/ddate1.html).
|
6
6
|
|
7
|
+
<p class="update">Update!: The terminal program will now give the Discordian date corresponding to a date in the Julian calendar.</p>
|
8
|
+
|
7
9
|
h2. Installing
|
8
10
|
|
9
11
|
<pre syntax="ruby">$ sudo gem install ddate</pre>
|
@@ -16,7 +18,9 @@ It's as simple as it gets:
|
|
16
18
|
|
17
19
|
<pre>
|
18
20
|
$ ddate
|
19
|
-
|
21
|
+
Pungenday, 7 of Confusion 3173 YOLD
|
22
|
+
$ ddate 5/31/2007
|
23
|
+
Sweetmorn, 5 of Confusion 3173 YOLD and the holiday of Syaday
|
20
24
|
</pre>
|
21
25
|
|
22
26
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.3
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ddate
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.9.0
|
7
|
+
date: 2007-06-02 00:00:00 -05:00
|
8
8
|
summary: Implements the Discordian calendar, printing out the current date
|
9
9
|
require_paths:
|
10
10
|
- lib
|