sixarm_ruby_xid 3.2.0 → 3.3.0
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/README.md +6 -3
- data/VERSION +1 -1
- data/lib/sixarm_ruby_xid.rb +4 -0
- data/test/sixarm_ruby_xid_test.rb +8 -0
- metadata +1 -1
- 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: 0b8b78b48157b5d06b0b0bd0acd50ebb366d8e47
|
4
|
+
data.tar.gz: 01121a252416e4d57b23da700657c3282cf69904
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc7ddce6d4efcabe265120454474ca1d26127bb09cc4c5c291199b8d38880d392a5fdb111194913f8e10d25e1fb533813d6383578c045ae4ca300a221a6fbe92
|
7
|
+
data.tar.gz: 15d570a1ccc39b129975c98087b52de59e81a622d785354b6b8c085577c46f1bfa7e8e1165ce3dfc99498d5863ae60d420284af0967286af564a7e702f12ed46
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ Install:
|
|
39
39
|
|
40
40
|
Bundler:
|
41
41
|
|
42
|
-
gem "sixarm_ruby_xid", ">=3.
|
42
|
+
gem "sixarm_ruby_xid", ">=3.3.0", "<4"
|
43
43
|
|
44
44
|
Require:
|
45
45
|
|
@@ -63,9 +63,10 @@ To install with high security:
|
|
63
63
|
|
64
64
|
Methods:
|
65
65
|
|
66
|
-
* `XID.new`: create an XID
|
67
|
-
* `XID.new(s): create an XID
|
66
|
+
* `XID.new`: create an XID and initialize to a random string.
|
67
|
+
* `XID.new(s): create an XID and initialize to a given string.
|
68
68
|
* `XID#digest`: return a SHA256 digest as a 64-character string.
|
69
|
+
* `XID.digest(s)`: return a SHA256 digest as a 64-character string.
|
69
70
|
|
70
71
|
Notes:
|
71
72
|
|
@@ -122,6 +123,8 @@ Some databases have specialize fields for 128 bit values, such as PostgreSQL and
|
|
122
123
|
|
123
124
|
## Changes
|
124
125
|
|
126
|
+
* 2015-02-12 3.3.0 Add XID.digest(s)
|
127
|
+
* 2015-02-12 3.2.0 Add XID.new(s) to initialize with a given string.
|
125
128
|
* 2015-02-12 3.1.0 Add #digest.
|
126
129
|
* 2015-02-11 3.0.0 Upgrade to XID.
|
127
130
|
* 2013-08-20 2.1.0 Add #next to enable using this as an enumeration.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.0
|
data/lib/sixarm_ruby_xid.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|