Commit Graph

145 Commits

Author SHA1 Message Date
47a1b0737c better readability 2011-03-09 11:57:34 +00:00
5d3c181641 update Label index when saving Label object if grouping is enabled and used 2011-03-09 11:57:18 +00:00
e3f23433d9 cleaned up #sub_labels feature in Label object 2011-03-09 11:56:42 +00:00
482253f517 make Finder work with Scope and Label objects rather than strings 2011-03-09 11:55:42 +00:00
66b9f4e949 less code duplication 2011-03-09 11:54:51 +00:00
7a28d1210f added a todo item about a typo 2011-03-09 11:00:08 +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
57d8fddd23 started release v0.1.1 2011-03-09 01:34:12 +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
96e9b0a736 Version bump to 0.1.0 2011-03-04 17:41:14 +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
4692780d1e Version bump to 0.0.9 2011-02-23 18:11:15 +00:00
Ariel Salomon
cab7ed5633 Fix for use with Active Support 2.3.x 2011-02-23 07:42:58 -08:00
6309e4b217 Version bump to 0.0.8 2011-01-12 16:12:55 +00:00
776ee8ac97 make version available in code via
Redistat::VERSION
2011-01-12 16:11:19 +00:00
3b346e88e0 moved DateHelper module to it's own files for the
sake of transparency
2011-01-12 16:10:38 +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
a5c8fc6fbf Version bump to 0.0.7 2010-12-29 17:27:19 +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
89932759ef Merge branch 'master' of https://github.com/JamesHarrison/redistat into feature/ruby19 2010-12-29 16:42:50 +00:00
James Harrison
6a66605e0b Adds Ruby 1.9.2 compat (references to TimeExt#round collide with the new real Time#now, changed to TimeExt#beginning_of_closest), 3 specs failing relating to time equality testing 2010-12-28 23:46:25 +00:00
f6ec2e97b2 Merge branch 'dev' of github.com:jimeh/redistat into dev 2010-12-09 22:42:55 +00:00
67dc9433c7 fixed typo in deprecation warning 2010-12-09 22:42:27 +00:00
b9752ff92f Version bump to 0.0.6 2010-12-01 13:41:30 +00:00
2aedd4eee3 Version bump to 0.0.5 2010-11-28 11:55:50 +00:00
f906cf068e added a spec for Collection#total 2010-11-28 11:52:23 +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
490356ee96 Bumped version to 0.0.4 2010-11-24 13:50:54 +00:00
20280f2c5d switched to using bundle's own gemspec format
instead of jeweler
2010-11-24 13:46:03 +00:00
62c3492c93 some whitespace cleanup 2010-11-24 00:36:44 +00:00
c5f52455cc replaced Redistat::Model#find alias to #fetch with
#lookup instead to avoid conflicts with
ActiveRecord
2010-11-24 00:36:25 +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
aaec15880c active_support/time is already required by time_ext 2010-11-22 12:22:18 +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
6d04d58d82 Redistat::Finder returns collections with results
within it properly, and all specs passing
2010-11-07 23:37:17 +00:00
426f006426 actually require the collection file 2010-11-07 23:32:32 +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
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
9cab9647ce return result sets as a Redistat::Result object 2010-10-18 23:07:42 +01:00