ddate 0.5.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -2,4 +2,9 @@
2
2
 
3
3
  + 1 major enhancement:
4
4
  + Initial release
5
- + καλλίστῃ
5
+ + καλλίστῃ
6
+
7
+ +++ 0.9.0 2007-06-02
8
+
9
+ + 1 major enhancement:
10
+ + Terminal program will now give the Discordian date corresponding to a date in the Julian calendar
data/bin/ddate CHANGED
@@ -1,3 +1,18 @@
1
1
  require 'ddate'
2
+ require 'parsedate'
2
3
 
3
- puts "#{DDate.new}"
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
@@ -1,7 +1,7 @@
1
1
  class DDate #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 5
4
+ MINOR = 9
5
5
  TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
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
- Setting Orange, 62 of Discord 3173 YOLD
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
- Setting Orange, 62 of Discord 3173 YOLD
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
 
@@ -23,7 +23,7 @@ li {
23
23
  list-style-type: square;
24
24
  }
25
25
  a:visited{
26
- color: #333;
26
+ color: #336;
27
27
  }
28
28
  a:hover{
29
29
  text-decoration: underline;
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.5.0
7
- date: 2007-05-15 00:00:00 -04:00
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