hashmodel 0.3.0.beta2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +4 -3
- data/hashmodel.gemspec +2 -2
- data/lib/hash_model/version.rb +1 -1
- metadata +8 -11
data/README.markdown
CHANGED
@@ -227,14 +227,15 @@ I've covered most of the major stuff here but to see all of the functionality ta
|
|
227
227
|
|
228
228
|
## Version History
|
229
229
|
|
230
|
-
0.3.0.
|
230
|
+
0.3.0.beta3 - 2011.01.12
|
231
231
|
|
232
232
|
* HashModel\#where searches can now use symbols instead of @variables (you can still use @ if you want).
|
233
233
|
e.g. hash_model.where{:x == "x" && :y == "y"} instead of the less natural hash_model.where{@x == "x" && @y == "y"}
|
234
|
-
* Converted the HashModel filter from a proc to a string so it can be viewed and allows the above behavior.
|
234
|
+
* Converted the HashModel filter from a proc to a string so it can be viewed and allows the above behavior (still no built-in proc.to_source so thanks to sourcify).
|
235
235
|
* Changed name for require to mirror name of app (require 'hashmodel' instead of confusing require 'hash_model')
|
236
236
|
* Added flatten to multiple methods (clone, to\_s, to\_a, to\_ary) so they'll return flattened data if called without anything else happening first.
|
237
|
-
* Fixed
|
237
|
+
* Fixed == comparison bug
|
238
|
+
* Fixed design flaw that didn't allow arrays of arrays to be used as values or allow arrays as search criteria.
|
238
239
|
* Removed Jeweler and converted to Bundler gem building.
|
239
240
|
* Added usage instructions.
|
240
241
|
* To do: Refactor some ugly code
|
data/hashmodel.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["Mike Bethany"]
|
10
10
|
s.email = ["mikbe.tk@gmail.com"]
|
11
11
|
s.homepage = "http://github.com/mikbe/hashmodel"
|
12
|
-
s.summary = %q{Store
|
13
|
-
s.description = %q{A simple MVC type model class for storing records as an array of hashes. You can store deeply nested hashes and still easily flatten and
|
12
|
+
s.summary = %q{Store nested hashes as records and easily search them (even nested ones)}
|
13
|
+
s.description = %q{A simple MVC type model class for storing records based on nested hashes as an array of hashes. You can store deeply nested hashes and still easily flatten and query the records using flattened field names.}
|
14
14
|
|
15
15
|
s.add_dependency "sourcify"
|
16
16
|
s.add_dependency "file-tail"
|
data/lib/hash_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hashmodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
|
10
|
-
version: 0.3.0.beta2
|
9
|
+
version: 0.3.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Mike Bethany
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-13 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -70,7 +69,7 @@ dependencies:
|
|
70
69
|
version: "0"
|
71
70
|
type: :development
|
72
71
|
version_requirements: *id004
|
73
|
-
description: A simple MVC type model class for storing records as an array of hashes. You can store deeply nested hashes and still easily flatten and
|
72
|
+
description: A simple MVC type model class for storing records based on nested hashes as an array of hashes. You can store deeply nested hashes and still easily flatten and query the records using flattened field names.
|
74
73
|
email:
|
75
74
|
- mikbe.tk@gmail.com
|
76
75
|
executables: []
|
@@ -136,20 +135,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
136
|
none: false
|
138
137
|
requirements:
|
139
|
-
- - "
|
138
|
+
- - ">="
|
140
139
|
- !ruby/object:Gem::Version
|
141
140
|
segments:
|
142
|
-
-
|
143
|
-
|
144
|
-
- 1
|
145
|
-
version: 1.3.1
|
141
|
+
- 0
|
142
|
+
version: "0"
|
146
143
|
requirements: []
|
147
144
|
|
148
145
|
rubyforge_project:
|
149
146
|
rubygems_version: 1.3.7
|
150
147
|
signing_key:
|
151
148
|
specification_version: 3
|
152
|
-
summary: Store
|
149
|
+
summary: Store nested hashes as records and easily search them (even nested ones)
|
153
150
|
test_files:
|
154
151
|
- features/README
|
155
152
|
- features/hash_model_flatten.feature
|