sixarm_ruby_xid 3.4.0 → 3.4.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.md +13 -0
- data/LICENSE.md +28 -0
- data/README.md +5 -48
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/sixarm_ruby_xid.rb +2 -2
- data/test/sixarm_ruby_xid_test.rb +3 -3
- metadata +6 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e04d2554f5e0367d86cef868442e8b447666d243
|
|
4
|
+
data.tar.gz: 3ce100cfeffc29ec7b550d4758730f1901c4d292
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 251fa94b70e8f7cae7b5c401e9373d4de82ab423668e9b37ae73b94ddc12904e30a2d654fe56f0144c30c3347e8090e0ca30d8b82459a03ca8592c69d36bac21
|
|
7
|
+
data.tar.gz: 6c63340b6c8b3992c0c80d8abc9482361ac3e3af2e8db0c756149e30c19614f3cc52cb2220e771b19aad7fef556c73fc14b3068074d3ada879dd448d65d9df67
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGES.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changes
|
|
2
|
+
|
|
3
|
+
* 2015-07-07 3.4.1 Update gemspec to use file manifest
|
|
4
|
+
* 2015-04-01 3.4.0 Add XID.parse and XID.valid?
|
|
5
|
+
* 2015-02-12 3.3.0 Add XID.digest(s)
|
|
6
|
+
* 2015-02-12 3.2.0 Add XID.new(s) to initialize with a given string.
|
|
7
|
+
* 2015-02-12 3.1.0 Add #digest.
|
|
8
|
+
* 2015-02-11 3.0.0 Upgrade to XID.
|
|
9
|
+
* 2013-08-20 2.1.0 Add #next to enable using this as an enumeration.
|
|
10
|
+
* 2013-08-18 2.0.0 Upgrade for Ruby 2.0.0; add .length and .choices methods.
|
|
11
|
+
* 2012-03-21 1.4.0 Upgrade for Ruby 1.9.3, minitest/spec, and improved docs.
|
|
12
|
+
* 2011-04-22 1.3.0 Update to 32 characters
|
|
13
|
+
* 2011-04-21 1.2.2 End support for Ruby 1.8.6
|
data/LICENSE.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
You may choose any of these open source licenses:
|
|
4
|
+
|
|
5
|
+
* Apache License
|
|
6
|
+
* BSD License
|
|
7
|
+
* CreativeCommons License, Non-commercial Share Alike
|
|
8
|
+
* GNU Affero General Public License (AGPL)
|
|
9
|
+
* GNU General Public License Version (GPL)
|
|
10
|
+
* GNU Lesser General Public License (LGPL)
|
|
11
|
+
* MIT License
|
|
12
|
+
* Perl Artistic License
|
|
13
|
+
* Ruby License
|
|
14
|
+
|
|
15
|
+
The software is provided "as is", without warranty of any kind,
|
|
16
|
+
express or implied, including but not limited to the warranties of
|
|
17
|
+
merchantability, fitness for a particular purpose and noninfringement.
|
|
18
|
+
|
|
19
|
+
In no event shall the authors or copyright holders be liable for any
|
|
20
|
+
claim, damages or other liability, whether in an action of contract,
|
|
21
|
+
tort or otherwise, arising from, out of or in connection with the
|
|
22
|
+
software or the use or other dealings in the software.
|
|
23
|
+
|
|
24
|
+
This license is for the included software that is created by SixArm.
|
|
25
|
+
Some of the included software may have its own licenses, copyrights,
|
|
26
|
+
authors, etc. and these may take precedence over the SixArm license.
|
|
27
|
+
|
|
28
|
+
Copyright (c) Joel Parker Henderson
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Ruby » <br> XID excellent identifier
|
|
1
|
+
# SixArm.com » Ruby » <br> XID excellent identifier
|
|
2
2
|
|
|
3
|
-
[](https://codeclimate.com/github/SixArm/sixarm_ruby_xid)
|
|
4
|
+
[](https://travis-ci.org/SixArm/sixarm_ruby_xid)
|
|
5
5
|
|
|
6
6
|
* Doc: <http://sixarm.com/sixarm_ruby_xid/doc>
|
|
7
7
|
* Gem: <http://rubygems.org/gems/sixarm_ruby_xid>
|
|
@@ -39,7 +39,7 @@ Install:
|
|
|
39
39
|
|
|
40
40
|
Bundler:
|
|
41
41
|
|
|
42
|
-
gem "sixarm_ruby_xid", ">=3.
|
|
42
|
+
gem "sixarm_ruby_xid", ">=3.4.0", "<4"
|
|
43
43
|
|
|
44
44
|
Require:
|
|
45
45
|
|
|
@@ -64,7 +64,7 @@ To install with high security:
|
|
|
64
64
|
Methods:
|
|
65
65
|
|
|
66
66
|
* `XID.new`: create an XID and initialize to a random string.
|
|
67
|
-
* `XID.new(s)
|
|
67
|
+
* `XID.new(s)`: create an XID and initialize to a given string.
|
|
68
68
|
* `XID.valid?`: is this XIDa valid, i.e. the correct format?
|
|
69
69
|
* `XID#valid?(s)`: is a string a valid XID, i.e. the correct format?
|
|
70
70
|
* `XID#digest`: return a SHA256 digest as a 64-character string.
|
|
@@ -122,46 +122,3 @@ To digest an XID by using SHA256:
|
|
|
122
122
|
To store an XID in a database, one way is using a string field that is 32 characters long.
|
|
123
123
|
|
|
124
124
|
Some databases have specialize fields for 128 bit values, such as PostgreSQL and its UUID extensions. PostgreSQL states that a UUID field will accept a string that is lowercase and that omits dashes. PostgreSQL does not do any validity-checking on the UUID value. Thus it is viable to store an XID in a UUID field. Our team has a goal to create a PostgreSQL extension for the XID data type.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
## Changes
|
|
128
|
-
|
|
129
|
-
* 2015-04-01 3.4.0 Add XID.parse and XID.valid?
|
|
130
|
-
* 2015-02-12 3.3.0 Add XID.digest(s)
|
|
131
|
-
* 2015-02-12 3.2.0 Add XID.new(s) to initialize with a given string.
|
|
132
|
-
* 2015-02-12 3.1.0 Add #digest.
|
|
133
|
-
* 2015-02-11 3.0.0 Upgrade to XID.
|
|
134
|
-
* 2013-08-20 2.1.0 Add #next to enable using this as an enumeration.
|
|
135
|
-
* 2013-08-18 2.0.0 Upgrade for Ruby 2.0.0; add .length and .choices methods.
|
|
136
|
-
* 2012-03-21 1.4.0 Upgrade for Ruby 1.9.3, minitest/spec, and improved docs.
|
|
137
|
-
* 2011-04-22 1.3.0 Update to 32 characters
|
|
138
|
-
* 2011-04-21 1.2.2 End support for Ruby 1.8.6
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
## License
|
|
142
|
-
|
|
143
|
-
You may choose any of these open source licenses:
|
|
144
|
-
|
|
145
|
-
* Apache License
|
|
146
|
-
* BSD License
|
|
147
|
-
* CreativeCommons License, Non-commercial Share Alike
|
|
148
|
-
* GNU General Public License Version 2 (GPL 2)
|
|
149
|
-
* GNU Lesser General Public License (LGPL)
|
|
150
|
-
* MIT License
|
|
151
|
-
* Perl Artistic License
|
|
152
|
-
* Ruby License
|
|
153
|
-
|
|
154
|
-
The software is provided "as is", without warranty of any kind,
|
|
155
|
-
express or implied, including but not limited to the warranties of
|
|
156
|
-
merchantability, fitness for a particular purpose and noninfringement.
|
|
157
|
-
|
|
158
|
-
In no event shall the authors or copyright holders be liable for any
|
|
159
|
-
claim, damages or other liability, whether in an action of contract,
|
|
160
|
-
tort or otherwise, arising from, out of or in connection with the
|
|
161
|
-
software or the use or other dealings in the software.
|
|
162
|
-
|
|
163
|
-
This license is for the included software that is created by SixArm;
|
|
164
|
-
some of the included software may have its own licenses, copyrights,
|
|
165
|
-
authors, etc. and these do take precedence over the SixArm license.
|
|
166
|
-
|
|
167
|
-
Copyright (c) 2005-2015 Joel Parker Henderson
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.4.1
|
data/lib/sixarm_ruby_xid.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
require
|
|
2
|
+
require "minitest/autorun"
|
|
3
3
|
Minitest::Test ||= MiniTest::Unit::TestCase
|
|
4
|
-
require
|
|
4
|
+
require "simplecov"
|
|
5
5
|
SimpleCov.start
|
|
6
|
-
require
|
|
6
|
+
require "sixarm_ruby_xid"
|
|
7
7
|
|
|
8
8
|
describe XID do
|
|
9
9
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sixarm_ruby_xid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SixArm
|
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
|
44
44
|
2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
|
|
45
45
|
n+ES/gQPOnvmVkLDGw==
|
|
46
46
|
-----END CERTIFICATE-----
|
|
47
|
-
date: 2015-
|
|
47
|
+
date: 2015-07-08 00:00:00.000000000 Z
|
|
48
48
|
dependencies: []
|
|
49
49
|
description: XID generates a new string suitable for security, authentication, tracking,
|
|
50
50
|
etc.
|
|
@@ -54,7 +54,9 @@ extensions: []
|
|
|
54
54
|
extra_rdoc_files: []
|
|
55
55
|
files:
|
|
56
56
|
- ".gemtest"
|
|
57
|
+
- CHANGES.md
|
|
57
58
|
- CONTRIBUTING.md
|
|
59
|
+
- LICENSE.md
|
|
58
60
|
- README.md
|
|
59
61
|
- Rakefile
|
|
60
62
|
- VERSION
|
|
@@ -84,9 +86,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
84
86
|
version: '0'
|
|
85
87
|
requirements: []
|
|
86
88
|
rubyforge_project:
|
|
87
|
-
rubygems_version: 2.4.
|
|
89
|
+
rubygems_version: 2.4.8
|
|
88
90
|
signing_key:
|
|
89
91
|
specification_version: 4
|
|
90
92
|
summary: SixArm.com » Ruby » XID excellent identifier
|
|
91
93
|
test_files:
|
|
92
94
|
- test/sixarm_ruby_xid_test.rb
|
|
95
|
+
has_rdoc: true
|
metadata.gz.sig
CHANGED
|
Binary file
|