Commit Graph

85 Commits

Author SHA1 Message Date
b8ddcdf71a Merge remote-tracking branch 'origin/dev' into dev 2011-03-12 22:25:35 +00:00
43fc8bc2dd updated Hash extensions and specs 2011-03-12 22:21:15 +00:00
0938781cd1 extend ::Hash with #set_or_incr and #merge_and_incr methods 2011-03-12 21:47:54 +00:00
82119fcf69 wrong usage of interval method in Finder spec 2011-03-11 15:38:10 +00:00
57517983f6 added #parent method to Finder objects 2011-03-10 16:26:38 +00:00
8001a98a26 fixed a typo... ffs... 2011-03-10 10:42:10 +00:00
57274ffb21 updated reverse label hash lookup storage format, which might be a pain if you have been using the hashed_label option 2011-03-10 00:46:55 +00:00
d39d5d8dde most components use new Options helper module 2011-03-10 00:27:13 +00:00
3a00353f83 created Options module to help organize the multiple options passed from one object to another 2011-03-10 00:24:35 +00:00
49fc2afcfd added a FIXME comment about broken model spec till index_labels option is implemented 2011-03-09 22:50:04 +00:00
cfbe58a509 support indexing top-level labels too 2011-03-09 22:48:27 +00:00
9faa0db7b8 drastic change in label indexing 2011-03-09 17:05:10 +00:00
e3f23433d9 cleaned up #sub_labels feature in Label object 2011-03-09 11:56:42 +00:00
d74dc41110 added label indexing features when using label groupings 2011-03-09 10:59:53 +00:00
ac338bb4f0 added #parent_group method to Label and Key objects 2011-03-09 10:25:37 +00:00
e0eac61a59 updated Model to take advantage of new lazy-loading features 2011-03-09 01:31:20 +00:00
33e9477552 finalized lazy-loading work on Finder 2011-03-09 01:25:09 +00:00
7e8e1dacc7 initial work and specs to properly support lazy-loading results from Finder objects 2011-03-08 01:30:48 +00:00
06cd30a20c fixed Model spec as it was failing at certain times of the day 2011-03-08 01:03:56 +00:00
b0a44a6abc some more sanity checks to Label spec 2011-03-04 17:40:02 +00:00
f8dfb034af added label grouping to Key and Summary classes 2011-03-04 17:39:51 +00:00
15904e8a94 added grouping support to Redistat::Label 2011-03-04 16:25:31 +00:00
fe221c3f31 added enable_grouping option to disable grouping features, enabled by default 2011-03-04 13:02:20 +00:00
7b1feda061 added key grouping for statistics Hash
Example:
store(“message”, {“count/private” => 1})
store(“message”, {“count/public” => 1})
fetch("message", 2.minutes.ago, Time.now)
  #=> { "count" => 2,
        "count/private" => 1,
        "count/public" => 1 }
2011-03-04 12:54:50 +00:00
c3fe861b10 connection handling was so thread-safe that it
stopped working in newly created threads
2011-01-12 16:04:42 +00:00
115b223d7c added class_name option to Model warpper for
customizing the scope used in Redis keys
2010-12-29 17:26:22 +00:00
James Harrison
93360dbeb9 Specs pass again - problem with Time.now resolution surpassing that provided by values stored in a Redistat::Date, truncated to seconds by using to_s, which is accurate enough for testing purposes 2010-12-28 23:55:39 +00:00
f906cf068e added a spec for Collection#total 2010-11-28 11:52:23 +00:00
cbb9050c80 fixed a typo 2010-11-28 11:51:50 +00:00
6bae8ce2bc Updated Connection spec so the specs actually pass
without a local Redis server running on the
default port of 6379.
2010-11-28 11:48:10 +00:00
18e6125c6a Added support for connection_ref's down throughout
the code, so models can connect to specific Redis
servers.

I believe a lot of the code needs some
restructuring at some point down the line to
handle multiple connections in a cleaner way, but
for now it'll do.
2010-11-28 11:47:26 +00:00
dc162e0c89 initial work to being able to use per-model redis
configurations
2010-11-28 10:10:58 +00:00
62c3492c93 some whitespace cleanup 2010-11-24 00:36:44 +00:00
8a0e1a47a2 added proper support for hashed_label option, and
disabled it by default
2010-11-22 13:28:19 +00:00
b554b617f2 Redistat::Result is now a HashWithIndifferentAccess
instead of a regular Hash
2010-11-22 12:22:56 +00:00
9c85041706 Redistat::Model is working 2010-11-22 12:10:47 +00:00
aaf98a8a62 reordered the argument order to Event.new 2010-11-22 12:09:36 +00:00
00131d5ed6 small spec cleanup 2010-11-22 11:27:10 +00:00
6d04d58d82 Redistat::Finder returns collections with results
within it properly, and all specs passing
2010-11-07 23:37:17 +00:00
b6ceabf8b3 Redistat::Date can now take the output from it's
own #to_s method as input.
2010-11-07 22:30:01 +00:00
83b2b5b528 renamed/moved Finder::DateSet spec 2010-11-07 21:55:46 +00:00
24bf57000e * Redistat::Finder raises an InvalidOptions
exception if options are invalid.
* Separated Finder#find method into smaller parts.
2010-11-07 21:50:39 +00:00
715d96db9c Created Redistat::Result and started using it
Finder.

All specs pass.
2010-10-18 23:43:03 +01:00
dce49f637c added depth attribute to Redistat::Date 2010-10-18 23:40:09 +01:00
616096fb7e cleaner code in some spec files 2010-10-18 01:39:11 +01:00
44ea115ca7 cleaner code in Redistat::Finder 2010-10-18 00:58:11 +01:00
5299b64fbc renamed :sub DateSet key to :rem 2010-10-18 00:57:25 +01:00
b6aa9c65ac finder and it's specs work! 2010-10-15 01:47:16 +01:00
f2b0bd7f47 started using rspec 2.x 2010-10-15 01:46:49 +01:00
be464ec298 Replaced KeySelection class with a more logical
Finder class.
2010-08-24 13:17:18 +03:00