Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (33 sloc) 1.23 kb
fcc35ee @veganstraightedge renamed gem using @drbrain's conventions : http://blog.segment7.net/arti...
veganstraightedge authored
1 = new_base_60
60c5b50 @veganstraightedge initial commit
veganstraightedge authored
2
fcc35ee @veganstraightedge renamed gem using @drbrain's conventions : http://blog.segment7.net/arti...
veganstraightedge authored
3 * http://github.com/veganstraightedge/New_base_60
60c5b50 @veganstraightedge initial commit
veganstraightedge authored
4
5 == DESCRIPTION:
6
9cec317 @veganstraightedge line break in readme, please?
veganstraightedge authored
7 Handy Conversion Sexagesimal (base 60) for Short URLs
8 Cuts out ambiguous characters like:
a5452f8 @veganstraightedge line breaks in readme
veganstraightedge authored
9 * l : lowercase l (looks like a 1 : one)
10 * I : capital I (looks like a 1 : one)
11 * O : capital O (looks like a 0 : zero)
60c5b50 @veganstraightedge initial commit
veganstraightedge authored
12
fcc35ee @veganstraightedge renamed gem using @drbrain's conventions : http://blog.segment7.net/arti...
veganstraightedge authored
13 Based on work done by Tantek Çelik : http://tantek.pbworks.com/New_base_60
8a0d093 @veganstraightedge credit in readme and version bump
veganstraightedge authored
14
60c5b50 @veganstraightedge initial commit
veganstraightedge authored
15 == FEATURES/PROBLEMS:
16
17 * Converts Base10 (like 147124) to Base60 (like fs4)
18 * Converts Base60 (like fs4) to Base60 (like 147124)
19 * Converts Base60 (like fs4) to a Time object (Mon Oct 23 23:00:00 -0800 2372)
20
21 == SYNOPSIS:
22
e7bf061 @ivanoats changed synopsis section of rdoc
ivanoats authored
23 How to use:
24
fcc35ee @veganstraightedge renamed gem using @drbrain's conventions : http://blog.segment7.net/arti...
veganstraightedge authored
25 require "new_base_60"
26 n = New_base_60.new("464")# => #<New_base_60:0x1011ea468 @base_60="464">
e7bf061 @ivanoats changed synopsis section of rdoc
ivanoats authored
27 puts n.to_i # => 14764
28 puts n.to_i.to_sxg # => "464"
29 puts n.to_date # => #<Date: 4910703/2,0,2299161>
30 puts n.to_date.to_s # => "2010-06-04"
31 puts n.to_date.to_sxg # => "464"
60c5b50 @veganstraightedge initial commit
veganstraightedge authored
32
33 == INSTALL:
34
fcc35ee @veganstraightedge renamed gem using @drbrain's conventions : http://blog.segment7.net/arti...
veganstraightedge authored
35 * sudo gem install new_base_60
60c5b50 @veganstraightedge initial commit
veganstraightedge authored
36
8a0d093 @veganstraightedge credit in readme and version bump
veganstraightedge authored
37 == CREDITS:
38
39 * Original Idea : Tantek Çelik
40 * Ruby Port : Shane Becker
41 * Lotsa Cleanup : John Barnette
42
fcc35ee @veganstraightedge renamed gem using @drbrain's conventions : http://blog.segment7.net/arti...
veganstraightedge authored
43 * sudo gem install new_base_60
8a0d093 @veganstraightedge credit in readme and version bump
veganstraightedge authored
44
60c5b50 @veganstraightedge initial commit
veganstraightedge authored
45 == LICENSE:
46
9cec317 @veganstraightedge line break in readme, please?
veganstraightedge authored
47 PUBLIC DOMAIN.
48 Your heart is as free as the air you breathe.
49 The ground you stand on is liberated territory.
Something went wrong with that request. Please try again.