hashery 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.index +73 -0
- data/{HISTORY.rdoc → HISTORY.md} +25 -12
- data/LICENSE.txt +18 -21
- data/NOTICE.txt +6 -6
- data/{README.rdoc → README.md} +29 -32
- data/demo/00_introduction.rdoc +6 -0
- data/demo/01_open_hash.rdoc +63 -0
- data/demo/02_query_hash.rdoc +17 -0
- data/demo/03_casting_hash.rdoc +12 -0
- data/demo/04_static_hash.rdoc +20 -0
- data/demo/05_key_hash.rdoc +17 -0
- data/demo/06_open_cascade.rdoc +64 -0
- data/demo/07_fuzzy_hash.rdoc +137 -0
- data/demo/08_propery_hash.rdoc +34 -0
- data/demo/10_association.rdoc +59 -0
- data/demo/applique/ae.rb +2 -0
- data/demo/applique/hashery.rb +3 -0
- data/lib/hashery.yml +50 -53
- data/lib/hashery/open_cascade.rb +4 -0
- data/test/case_open_cascade.rb +12 -0
- metadata +86 -149
- data/.meta +0 -76
- data/DEMO.rdoc +0 -1
- data/alt/hashery/basicobject.rb +0 -1
- data/alt/hashery/castinghash.rb +0 -1
- data/alt/hashery/fuzzyhash.rb +0 -1
- data/alt/hashery/keyhash.rb +0 -1
- data/alt/hashery/linkedlist.rb +0 -1
- data/alt/hashery/lruhash.rb +0 -1
- data/alt/hashery/opencascade.rb +0 -1
- data/alt/hashery/openhash.rb +0 -1
- data/alt/hashery/orderedhash.rb +0 -1
- data/alt/hashery/propertyhash.rb +0 -1
- data/alt/hashery/queryhash.rb +0 -1
- data/alt/hashery/statichash.rb +0 -1
data/lib/hashery/open_cascade.rb
CHANGED
data/test/case_open_cascade.rb
CHANGED
@@ -108,3 +108,15 @@ testcase Hash do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
end
|
111
|
+
|
112
|
+
testcase Array do
|
113
|
+
|
114
|
+
method :flatten do
|
115
|
+
test "array can be flattened if contains OpenCascade" do
|
116
|
+
cascade = OpenCascade[:foo=>"bar"]
|
117
|
+
array = [cascade]
|
118
|
+
array.flatten # should not raise error
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hashery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Trans
|
@@ -15,202 +14,140 @@ authors:
|
|
15
14
|
autorequire:
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
|
-
date:
|
17
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
19
18
|
dependencies:
|
20
19
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
22
|
-
requirement:
|
23
|
-
none: false
|
20
|
+
name: qed
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
24
22
|
requirements:
|
25
|
-
- -
|
23
|
+
- - '>='
|
26
24
|
- !ruby/object:Gem::Version
|
27
25
|
version: '0'
|
28
26
|
type: :development
|
29
27
|
prerelease: false
|
30
|
-
version_requirements:
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: qed
|
33
|
-
requirement: &6373700 !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
35
29
|
requirements:
|
36
|
-
- -
|
30
|
+
- - '>='
|
37
31
|
- !ruby/object:Gem::Version
|
38
32
|
version: '0'
|
39
|
-
type: :development
|
40
|
-
prerelease: false
|
41
|
-
version_requirements: *6373700
|
42
33
|
- !ruby/object:Gem::Dependency
|
43
34
|
name: lemon
|
44
|
-
requirement:
|
45
|
-
none: false
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
46
36
|
requirements:
|
47
|
-
- -
|
37
|
+
- - '>='
|
48
38
|
- !ruby/object:Gem::Version
|
49
39
|
version: '0'
|
50
40
|
type: :development
|
51
41
|
prerelease: false
|
52
|
-
version_requirements:
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
of the CRUDHash which defines a CRUD model on top of Ruby'
|
61
|
-
|
62
|
-
making it a snap to subclass and augment to fit any specific use case.'
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
description: The Hashery is a tight collection of Hash-like classes. Included among
|
48
|
+
its many offerings are the auto-sorting Dictionary class, the efficient LRUHash,
|
49
|
+
the flexible OpenHash and the convenient KeyHash. Nearly every class is a subclass
|
50
|
+
of the CRUDHash which defines a CRUD model on top of Ruby's standard Hash making
|
51
|
+
it a snap to subclass and augment to fit any specific use case.
|
63
52
|
email:
|
64
53
|
- transfire@gmail.com
|
65
54
|
executables: []
|
66
55
|
extensions: []
|
67
56
|
extra_rdoc_files:
|
68
|
-
- LICENSE.txt
|
69
57
|
- NOTICE.txt
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
58
|
+
- LICENSE.txt
|
59
|
+
- README.md
|
60
|
+
- HISTORY.md
|
73
61
|
files:
|
74
|
-
- .
|
62
|
+
- .index
|
75
63
|
- .yardopts
|
76
|
-
-
|
77
|
-
|
78
|
-
-
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
-
|
83
|
-
|
84
|
-
-
|
85
|
-
|
86
|
-
-
|
87
|
-
|
88
|
-
-
|
89
|
-
|
90
|
-
-
|
91
|
-
|
92
|
-
-
|
93
|
-
|
94
|
-
-
|
95
|
-
|
96
|
-
-
|
97
|
-
|
98
|
-
-
|
99
|
-
|
100
|
-
-
|
101
|
-
|
102
|
-
-
|
103
|
-
|
104
|
-
-
|
105
|
-
|
106
|
-
-
|
107
|
-
|
108
|
-
-
|
109
|
-
|
110
|
-
-
|
111
|
-
|
112
|
-
-
|
113
|
-
|
114
|
-
-
|
115
|
-
|
116
|
-
-
|
117
|
-
|
118
|
-
-
|
119
|
-
|
120
|
-
-
|
121
|
-
|
122
|
-
-
|
123
|
-
|
124
|
-
-
|
125
|
-
bGliL2hhc2hlcnkvcXVlcnlfaGFzaC5yYg==
|
126
|
-
- !binary |-
|
127
|
-
bGliL2hhc2hlcnkvaW5pX2hhc2gucmI=
|
128
|
-
- !binary |-
|
129
|
-
bGliL2hhc2hlcnkvcHJvcGVydHlfaGFzaC5yYg==
|
130
|
-
- !binary |-
|
131
|
-
bGliL2hhc2hlcnkvb3JkZXJlZF9oYXNoLnJi
|
132
|
-
- !binary |-
|
133
|
-
bGliL2hhc2hlcnkvbHJ1X2hhc2gucmI=
|
134
|
-
- !binary |-
|
135
|
-
bGliL2hhc2hlcnkvY3J1ZF9oYXNoLnJi
|
136
|
-
- !binary |-
|
137
|
-
bGliL2hhc2hlcnkvc3Rhc2gucmI=
|
138
|
-
- !binary |-
|
139
|
-
bGliL2hhc2hlcnkvY2FzdGluZ19oYXNoLnJi
|
140
|
-
- !binary |-
|
141
|
-
dGVzdC9jYXNlX29wZW5fY2FzY2FkZS5yYg==
|
142
|
-
- !binary |-
|
143
|
-
dGVzdC9jYXNlX3F1ZXJ5X2hhc2gucmI=
|
144
|
-
- !binary |-
|
145
|
-
dGVzdC9oZWxwZXIucmI=
|
146
|
-
- !binary |-
|
147
|
-
dGVzdC9jYXNlX2NydWRfaGFzaC5yYg==
|
148
|
-
- !binary |-
|
149
|
-
dGVzdC9jYXNlX2xydV9oYXNoLnJi
|
150
|
-
- !binary |-
|
151
|
-
dGVzdC9jYXNlX2RpY3Rpb25hcnkucmI=
|
152
|
-
- !binary |-
|
153
|
-
dGVzdC9jYXNlX2luaV9oYXNoLnJi
|
154
|
-
- !binary |-
|
155
|
-
dGVzdC9jYXNlX2NvcmVfZXh0LnJi
|
156
|
-
- !binary |-
|
157
|
-
dGVzdC9jYXNlX29wZW5faGFzaC5yYg==
|
158
|
-
- !binary |-
|
159
|
-
dGVzdC9jYXNlX2tleV9oYXNoLnJi
|
160
|
-
- !binary |-
|
161
|
-
dGVzdC9jYXNlX2Fzc29jaWF0aW9uLnJi
|
162
|
-
- !binary |-
|
163
|
-
dGVzdC9jYXNlX3Byb3BlcnR5X2hhc2gucmI=
|
164
|
-
- !binary |-
|
165
|
-
dGVzdC9maXh0dXJlL2V4YW1wbGUuaW5p
|
166
|
-
- !binary |-
|
167
|
-
dGVzdC9jYXNlX2Nhc3RpbmdfaGFzaC5yYg==
|
168
|
-
- !binary |-
|
169
|
-
dGVzdC9jYXNlX2xpbmtlZF9saXN0LnJi
|
170
|
-
- HISTORY.rdoc
|
171
|
-
- DEMO.rdoc
|
172
|
-
- LICENSE.txt
|
173
|
-
- README.rdoc
|
64
|
+
- demo/00_introduction.rdoc
|
65
|
+
- demo/01_open_hash.rdoc
|
66
|
+
- demo/02_query_hash.rdoc
|
67
|
+
- demo/03_casting_hash.rdoc
|
68
|
+
- demo/04_static_hash.rdoc
|
69
|
+
- demo/05_key_hash.rdoc
|
70
|
+
- demo/06_open_cascade.rdoc
|
71
|
+
- demo/07_fuzzy_hash.rdoc
|
72
|
+
- demo/08_propery_hash.rdoc
|
73
|
+
- demo/10_association.rdoc
|
74
|
+
- demo/applique/ae.rb
|
75
|
+
- demo/applique/hashery.rb
|
76
|
+
- lib/hashery/association.rb
|
77
|
+
- lib/hashery/casting_hash.rb
|
78
|
+
- lib/hashery/core_ext.rb
|
79
|
+
- lib/hashery/crud_hash.rb
|
80
|
+
- lib/hashery/dictionary.rb
|
81
|
+
- lib/hashery/fuzzy_hash.rb
|
82
|
+
- lib/hashery/ini_hash.rb
|
83
|
+
- lib/hashery/key_hash.rb
|
84
|
+
- lib/hashery/linked_list.rb
|
85
|
+
- lib/hashery/lru_hash.rb
|
86
|
+
- lib/hashery/open_cascade.rb
|
87
|
+
- lib/hashery/open_hash.rb
|
88
|
+
- lib/hashery/ordered_hash.rb
|
89
|
+
- lib/hashery/path_hash.rb
|
90
|
+
- lib/hashery/property_hash.rb
|
91
|
+
- lib/hashery/query_hash.rb
|
92
|
+
- lib/hashery/stash.rb
|
93
|
+
- lib/hashery/static_hash.rb
|
94
|
+
- lib/hashery.rb
|
95
|
+
- lib/hashery.yml
|
96
|
+
- test/case_association.rb
|
97
|
+
- test/case_casting_hash.rb
|
98
|
+
- test/case_core_ext.rb
|
99
|
+
- test/case_crud_hash.rb
|
100
|
+
- test/case_dictionary.rb
|
101
|
+
- test/case_ini_hash.rb
|
102
|
+
- test/case_key_hash.rb
|
103
|
+
- test/case_linked_list.rb
|
104
|
+
- test/case_lru_hash.rb
|
105
|
+
- test/case_open_cascade.rb
|
106
|
+
- test/case_open_hash.rb
|
107
|
+
- test/case_property_hash.rb
|
108
|
+
- test/case_query_hash.rb
|
109
|
+
- test/fixture/example.ini
|
110
|
+
- test/helper.rb
|
111
|
+
- README.md
|
112
|
+
- HISTORY.md
|
174
113
|
- NOTICE.txt
|
114
|
+
- LICENSE.txt
|
175
115
|
homepage: http://rubyworks.github.com/hashery
|
176
116
|
licenses:
|
177
117
|
- BSD-2-Clause
|
118
|
+
metadata: {}
|
178
119
|
post_install_message:
|
179
120
|
rdoc_options: []
|
180
121
|
require_paths:
|
181
122
|
- lib
|
182
|
-
- alt
|
183
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
-
none: false
|
185
124
|
requirements:
|
186
|
-
- -
|
125
|
+
- - '>='
|
187
126
|
- !ruby/object:Gem::Version
|
188
127
|
version: '0'
|
189
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
|
-
none: false
|
191
129
|
requirements:
|
192
|
-
- -
|
130
|
+
- - '>='
|
193
131
|
- !ruby/object:Gem::Version
|
194
132
|
version: '0'
|
195
133
|
requirements: []
|
196
134
|
rubyforge_project:
|
197
|
-
rubygems_version:
|
135
|
+
rubygems_version: 2.0.3
|
198
136
|
signing_key:
|
199
|
-
specification_version:
|
137
|
+
specification_version: 4
|
200
138
|
summary: Facets-bread collection of Hash-like classes.
|
201
139
|
test_files:
|
140
|
+
- test/case_ini_hash.rb
|
141
|
+
- test/case_casting_hash.rb
|
202
142
|
- test/case_open_cascade.rb
|
203
|
-
- test/case_query_hash.rb
|
204
|
-
- test/helper.rb
|
205
143
|
- test/case_crud_hash.rb
|
206
|
-
- test/case_lru_hash.rb
|
207
|
-
- test/case_dictionary.rb
|
208
|
-
- test/case_ini_hash.rb
|
209
144
|
- test/case_core_ext.rb
|
145
|
+
- test/case_lru_hash.rb
|
210
146
|
- test/case_open_hash.rb
|
211
|
-
- test/
|
147
|
+
- test/case_dictionary.rb
|
148
|
+
- test/case_linked_list.rb
|
212
149
|
- test/case_association.rb
|
213
150
|
- test/case_property_hash.rb
|
214
|
-
- test/
|
215
|
-
- test/
|
216
|
-
|
151
|
+
- test/case_key_hash.rb
|
152
|
+
- test/helper.rb
|
153
|
+
- test/case_query_hash.rb
|
data/.meta
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
---
|
2
|
-
source:
|
3
|
-
- METADATA
|
4
|
-
authors:
|
5
|
-
- name: Trans
|
6
|
-
email: transfire@gmail.com
|
7
|
-
- name: Kirk Haines
|
8
|
-
- name: Robert Klemme
|
9
|
-
- name: Jan Molic
|
10
|
-
- name: George Moschovitis
|
11
|
-
- name: Jeena Paradies
|
12
|
-
- name: Erik Veenstra
|
13
|
-
copyrights:
|
14
|
-
- holder: Rubyworks
|
15
|
-
year: '2010'
|
16
|
-
license: BSD-2-Clause
|
17
|
-
requirements:
|
18
|
-
- name: detroit
|
19
|
-
groups:
|
20
|
-
- build
|
21
|
-
development: true
|
22
|
-
- name: qed
|
23
|
-
groups:
|
24
|
-
- test
|
25
|
-
development: true
|
26
|
-
- name: lemon
|
27
|
-
groups:
|
28
|
-
- test
|
29
|
-
development: true
|
30
|
-
dependencies: []
|
31
|
-
alternatives: []
|
32
|
-
conflicts: []
|
33
|
-
repositories:
|
34
|
-
- uri: git://github.com/rubyworks/hashery.git
|
35
|
-
scm: git
|
36
|
-
name: upstream
|
37
|
-
resources:
|
38
|
-
- uri: http://rubyworks.github.com/hashery
|
39
|
-
label: Website
|
40
|
-
type: home
|
41
|
-
- uri: http://github.com/rubyworks/hashery
|
42
|
-
label: Source Code
|
43
|
-
type: code
|
44
|
-
- uri: http://groups.google.com/group/rubyworks-mailinglist
|
45
|
-
label: Mailing List
|
46
|
-
type: mail
|
47
|
-
- uri: http://rubydoc.info/github/rubyworks/hashery/master/frames
|
48
|
-
label: Documentation
|
49
|
-
type: docs
|
50
|
-
- uri: http://wiki.github.com/rubyworks/hashery
|
51
|
-
label: User Guide
|
52
|
-
type: wiki
|
53
|
-
- uri: http://rubygems.org/gems/hashery
|
54
|
-
type: gems
|
55
|
-
categories: []
|
56
|
-
extra: {}
|
57
|
-
load_path:
|
58
|
-
- lib
|
59
|
-
- alt
|
60
|
-
revision: 0
|
61
|
-
name: hashery
|
62
|
-
title: Hashery
|
63
|
-
created: '2010-04-21'
|
64
|
-
summary: Facets-bread collection of Hash-like classes.
|
65
|
-
description: ! 'The Hashery is a tight collection of Hash-like classes. Included among
|
66
|
-
its many
|
67
|
-
|
68
|
-
offerings are the auto-sorting Dictionary class, the efficient LRUHash, the
|
69
|
-
|
70
|
-
flexible OpenHash and the convenient KeyHash. Nearly every class is a subclass
|
71
|
-
|
72
|
-
of the CRUDHash which defines a CRUD model on top of Ruby''s standard Hash
|
73
|
-
|
74
|
-
making it a snap to subclass and augment to fit any specific use case.'
|
75
|
-
version: 2.1.0
|
76
|
-
date: '2012-11-24'
|
data/DEMO.rdoc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|
data/alt/hashery/basicobject.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hasery/basic_object'
|
data/alt/hashery/castinghash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/casting_hash'
|
data/alt/hashery/fuzzyhash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/fuzzy_hash'
|
data/alt/hashery/keyhash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/key_hash'
|
data/alt/hashery/linkedlist.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/linked_list'
|
data/alt/hashery/lruhash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/lru_hash'
|
data/alt/hashery/opencascade.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/open_cascade'
|
data/alt/hashery/openhash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/open_hash'
|
data/alt/hashery/orderedhash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/ordered_hash'
|
data/alt/hashery/propertyhash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/property_hash'
|
data/alt/hashery/queryhash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/query_hash'
|
data/alt/hashery/statichash.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'hashery/static_hash'
|