uuid64 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/uuid64.rb +6 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d8a193dccd6a583358beebd2eeb1dddf6b42fdc7
4
+ data.tar.gz: cb012be84c24e81c1c2adad9f83d06935f001cf3
5
+ SHA512:
6
+ metadata.gz: ffa8591be03743b35d2ac0f8c7342cb57ad1907fe09fe9f62aa7c9e9669e753366cf9f8d005833131ed2f44b9b8e09d5aa924723630401f4a8b383df67c2405c
7
+ data.tar.gz: dd68c40a7ccd1880f29c69b34486f7beced9bc6ae283f6c9513280d8957ab2effeb33f77041ef102c243b71b301786eae07c182f02ba684e18a12351348d7096
data/lib/uuid64.rb ADDED
@@ -0,0 +1,6 @@
1
+ require 'securerandom'
2
+ module SecureRandom
3
+ def SecureRandom.uuid64
4
+ [[SecureRandom.uuid.gsub(/-/, '')].pack('H*')].pack('m').gsub(/==/,'')
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: uuid64
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - HeckPsi Lab
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Generate a 64-bit encoded uuid in Ruby with length of 23.
14
+ email: business@heckpsi.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/uuid64.rb
20
+ homepage: https://github.com/heckpsi-lab/uuid64
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.6.1
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Generate a 64-bit encoded uuid in Ruby with length of 23.
44
+ test_files: []
45
+ has_rdoc: