hashery 2.1.0 → 2.1.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.
@@ -114,6 +114,10 @@ module Hashery
114
114
  end
115
115
  end
116
116
 
117
+ def respond_to?(sym, include_private = false)
118
+ sym != :to_ary && super
119
+ end
120
+
117
121
  #def each
118
122
  # super do |key, entry|
119
123
  # yield([key, transform_entry(entry)])
@@ -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.0
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: 2012-11-25 00:00:00.000000000 Z
17
+ date: 2013-08-21 00:00:00.000000000 Z
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency
21
- name: detroit
22
- requirement: &6389540 !ruby/object:Gem::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: *6389540
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: &6363300 !ruby/object:Gem::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: *6363300
53
- description: ! 'The Hashery is a tight collection of Hash-like classes. Included among
54
- its many
55
-
56
- offerings are the auto-sorting Dictionary class, the efficient LRUHash, the
57
-
58
- flexible OpenHash and the convenient KeyHash. Nearly every class is a subclass
59
-
60
- of the CRUDHash which defines a CRUD model on top of Ruby''s standard Hash
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
- - HISTORY.rdoc
71
- - DEMO.rdoc
72
- - README.rdoc
58
+ - LICENSE.txt
59
+ - README.md
60
+ - HISTORY.md
73
61
  files:
74
- - .meta
62
+ - .index
75
63
  - .yardopts
76
- - !binary |-
77
- YWx0L2hhc2hlcnkva2V5aGFzaC5yYg==
78
- - !binary |-
79
- YWx0L2hhc2hlcnkvb3Blbmhhc2gucmI=
80
- - !binary |-
81
- YWx0L2hhc2hlcnkvYmFzaWNvYmplY3QucmI=
82
- - !binary |-
83
- YWx0L2hhc2hlcnkvcHJvcGVydHloYXNoLnJi
84
- - !binary |-
85
- YWx0L2hhc2hlcnkvbHJ1aGFzaC5yYg==
86
- - !binary |-
87
- YWx0L2hhc2hlcnkvY2FzdGluZ2hhc2gucmI=
88
- - !binary |-
89
- YWx0L2hhc2hlcnkvb3JkZXJlZGhhc2gucmI=
90
- - !binary |-
91
- YWx0L2hhc2hlcnkvZnV6enloYXNoLnJi
92
- - !binary |-
93
- YWx0L2hhc2hlcnkvcXVlcnloYXNoLnJi
94
- - !binary |-
95
- YWx0L2hhc2hlcnkvb3BlbmNhc2NhZGUucmI=
96
- - !binary |-
97
- YWx0L2hhc2hlcnkvc3RhdGljaGFzaC5yYg==
98
- - !binary |-
99
- YWx0L2hhc2hlcnkvbGlua2VkbGlzdC5yYg==
100
- - !binary |-
101
- bGliL2hhc2hlcnkueW1s
102
- - !binary |-
103
- bGliL2hhc2hlcnkucmI=
104
- - !binary |-
105
- bGliL2hhc2hlcnkvZnV6enlfaGFzaC5yYg==
106
- - !binary |-
107
- bGliL2hhc2hlcnkvcGF0aF9oYXNoLnJi
108
- - !binary |-
109
- bGliL2hhc2hlcnkvb3Blbl9jYXNjYWRlLnJi
110
- - !binary |-
111
- bGliL2hhc2hlcnkvYXNzb2NpYXRpb24ucmI=
112
- - !binary |-
113
- bGliL2hhc2hlcnkvbGlua2VkX2xpc3QucmI=
114
- - !binary |-
115
- bGliL2hhc2hlcnkvb3Blbl9oYXNoLnJi
116
- - !binary |-
117
- bGliL2hhc2hlcnkvZGljdGlvbmFyeS5yYg==
118
- - !binary |-
119
- bGliL2hhc2hlcnkva2V5X2hhc2gucmI=
120
- - !binary |-
121
- bGliL2hhc2hlcnkvY29yZV9leHQucmI=
122
- - !binary |-
123
- bGliL2hhc2hlcnkvc3RhdGljX2hhc2gucmI=
124
- - !binary |-
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: 1.8.11
135
+ rubygems_version: 2.0.3
198
136
  signing_key:
199
- specification_version: 3
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/case_key_hash.rb
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/case_casting_hash.rb
215
- - test/case_linked_list.rb
216
- has_rdoc:
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
-
@@ -1 +0,0 @@
1
- require 'hasery/basic_object'
@@ -1 +0,0 @@
1
- require 'hashery/casting_hash'
@@ -1 +0,0 @@
1
- require 'hashery/fuzzy_hash'
@@ -1 +0,0 @@
1
- require 'hashery/key_hash'
@@ -1 +0,0 @@
1
- require 'hashery/linked_list'
@@ -1 +0,0 @@
1
- require 'hashery/lru_hash'
@@ -1 +0,0 @@
1
- require 'hashery/open_cascade'
@@ -1 +0,0 @@
1
- require 'hashery/open_hash'
@@ -1 +0,0 @@
1
- require 'hashery/ordered_hash'
@@ -1 +0,0 @@
1
- require 'hashery/property_hash'
@@ -1 +0,0 @@
1
- require 'hashery/query_hash'
@@ -1 +0,0 @@
1
- require 'hashery/static_hash'