xkeys 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.txt +6 -0
- data/lib/xkeys.rb +6 -2
- data/xkeys.gemspec +2 -2
- metadata +3 -3
data/HISTORY.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
2014-04-16 Version 2.0.1
|
2
|
+
|
3
|
+
Added documentation to the module overview specifying the
|
4
|
+
requirements for supporting alternate underlying data types
|
5
|
+
(i.e. other than Array or Hash). No other changes.
|
6
|
+
|
1
7
|
2014-03-21 Version 2.0.0
|
2
8
|
|
3
9
|
XKeys can now be used with data types other than array or hash
|
data/lib/xkeys.rb
CHANGED
@@ -20,10 +20,14 @@
|
|
20
20
|
# root[1, 0, {}] # => 'value 1'
|
21
21
|
# root[1, 4, {}] # => nil
|
22
22
|
#
|
23
|
-
# As of version 2, other types with array- or hash-like behavior are
|
23
|
+
# As of version 2.0.0, other types with array- or hash-like behavior are
|
24
24
|
# supported as well.
|
25
25
|
#
|
26
|
-
#
|
26
|
+
# As of version 2.0.0, underlying types must implement #[], #[]=, and
|
27
|
+
# #fetch to be supported (see the Array or Hash class documentation).
|
28
|
+
# They must also implement #push if you want to use push mode (index ":[]").
|
29
|
+
#
|
30
|
+
# Version 2.0.1 2014-04-16
|
27
31
|
#
|
28
32
|
# @author Brian Katzung <briank@kappacs.com>, Kappa Computer Solutions, LLC
|
29
33
|
# @copyright 2013-2014 Brian Katzung and Kappa Computer Solutions, LLC
|
data/xkeys.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 2.0.
|
8
|
+
- 1
|
9
|
+
version: 2.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Brian Katzung
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2014-
|
17
|
+
date: 2014-04-16 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|