Sporkmonger

purveyor of fabulously ambiguous eating utensils

UUIDTools

Posted by sporkmonger
Written September 16th, 2005

I just released another library a couple days ago, this time for doing UUID parsing and generation. Again, with the yak shaving, since I needed to generate SHA1-based UUIDs for FeedTools, and no one had written this for Ruby yet…

Project page.

API.

From the code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

#  Because it's impossible to hype a UUID generator on its genuine
#  merits,
#  I give you... Really bad ASCII art in the comments:
#
#                                                                  
#                \                                                 
#                /                                                   
#               +                                                  
#              ]                                                   
#              ]                                                   
#              |                                                    
#             /                                                     
#           Mp___                                                  
#              `~0NNp,                                             
#               __ggM'                                             
#             g0M~"`                                               
#            ]0M*-                                                 
#                                                                  
#                    ___                                           
#                _g000M00g,                                        
#              j0M~      ~M&                                       
#            j0M"          ~N,                                     
#           j0P              M&                                    
#          jM                  1                                   
#         j0                   ]1                                  
#        .0P                    0,                                 
#        00'                    M&                                 
#        0M                     ]0L                                
#       ]0f         ___          M0                                
#        M0NN0M00MMM~"'M          0&                               
#          `~          ~0         ]0,                              
#                       ]M        ]0&                              
#                        M&        M0,                             
#               ____gp_   M&        M0_                            
#            __p0MPM8MM&_  M/        ^0&_                          
#           gN"`       M0N_j0,         MM&__                       
#         _gF           `~M0P`   __      M00g                      
#        g0'                    gM0&,     ~M0&                     
#      _pM`                     0, ]M1     "00&                    
#     _00                    /g1MMgj01      ]0MI                   
#    _0F                     t"M,7MMM        00I                   
#   g0'                  _   N&j&            40'                   
#  g0'                _p0Mq_   '             N0QQNM#g,             
#  0'              _g0000000g__              ~M@MMM000g            
#  f             _jM00@`  ~M0000Mgppg,             "P00&           
# |             g000~       `~M000000&_               ~0&          
# ]M          _M00F              "00MM`                ~#&         
# `0L        m000F                #E                    "0f        
#   9r     j000M`                 40,                    00        
#    ]0g_ j00M`                   ^M0MNggp#gqpg          M0&       
#     ~MPM0f                         ~M000000000g_ ,_ygg&M00f      
#                                        `~~~M00000000000000       
#                                              `M0000000000f       
#                                                  ~@@@MF~`        
#                                                                  
#