Vanity v1.4.0 Release Notes

Release Date: 2010-08-06 // over 13 years ago
  • โฌ†๏ธ Note: Run this command to upgrade your database to 1.4, or you will not have access to collected metrics and experiment data:

    vanity upgrade

    Connection adapters! We have a new way for managing connections which extends ๐Ÿ”ง to multiple adapters (not just Redis). The easiest is to use the configuration file config/vanity.yml. For example:

    development: adapter: redis production: adapter: mongodb

    ๐Ÿคก We get to keep Redis, add new MongoDB adapter, but lose Mock. It's still there, but there's a new way to use Vanity outside production: you can turn data collection on/off.

    ๐Ÿš… Under Rails, data collection is turned off in all environments except production. To turn if on/off:

    Vanity.playground.collecting = true/false.

    ๐Ÿš€ This release switches to latest Redis gem and uses redis-namespace (what took me so long?) If your own code relies on the Redis gem, watch out: there are some subtle incompatibilities between 1.x and 2.x.

    ๐Ÿ”ง Now using RVM, gemsets and Bundler to test Vanity in different configurations. โœ… To run the full set of tests in all the supported versions of Ruby: rake test:rubies โœ… To test specific version of Ruby: rake test:rubies[1.8.7] To switch around: rvm 1.9.2@vanity

    • โž• Added: Adapter API, see Vanity::Adapters::AbstractAdapter and Vanity::Adapters::RedisAdapter.
    • โž• Added: MongoDB support.
    • โž• Added: Upgrade command.
    • โšก๏ธ Added: Metric.last_update_at.
    • โž• Added: Vanity.playground.collecting. You want this to be true only in production environment. When false, disables collecting of metric and experiment data.
    • โž• Added: Remote metrics. Push data to remote service.
    • โž• Added: Partial support for multi-series metrics. Laying the ground for the future.
    • ๐Ÿ”„ Change: Vanity.playground.redis and redis= methods are deprecated, use connection and establish_connection instead.
    • โœ‚ Removed: Metric.created_at, derived from experiment and never used.