RubyGems Navigation menu

sniff 0.0.4

# sniff Testing environment for Brighter Planet Climate Middleware emission calculation gems. This gem provides: * Sample data used for calculations, representative of data found on http://data.brighterplanet.com * A database/ActiveRecord environment for said data * References to gems needed by each emitter gem * An autoloader that will load any models and sample data needed by the emitter gem being tested (see Usage) # Usage Within an emitter gem's test setup, you can: require 'sniff' Sniff.init '/path/to/emitter_project' If an emitter gem has its own test models and data, sniff will look for the models in `EMITTER_GEM_DIR/lib/test_support/data_models/` and the data fixtures in `EMITTER_GEM_DIR/lib/test_support/db/fixtures/`. It will also look for a schema in `EMITTER_GEM_DIR/lib/test_support/db/schema.rb` # How to contribute Typical contributions will include updates to test data. 1. Fork the project. 1. Make your feature addition or bug fix. 1. Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) 1. Send me a pull request. Bonus points for topic branches. # Local Gems Sniff depends on several gems, some of which are developed by Brighter Planet. You can tell Sniff or any of the carbon gems to use your local repos in lieu of installed rubygems through the following steps: Paste the following functions into your ~/.bash_profile function mod_devgem() { var="LOCAL_`echo $2 | tr 'a-z' 'A-Z'`" if [ "$1" == "disable" ] then echo "unset $var" unset $var else dir=${3:-"~/$2"} echo "export $var=$dir" export $var=$dir fi } function devgems () { # Usage: devgems [enable|disable] [gemname] cmd=${1:-"enable"} if [ -z $2 ] then mod_devgem $cmd characterizable mod_devgem $cmd cohort_scope mod_devgem $cmd falls_back_on mod_devgem $cmd leap mod_devgem $cmd loose_tight_dictionary mod_devgem $cmd sniff mod_devgem $cmd data_miner else mod_devgem $cmd $2 fi } To enable all local gems, run `devgems enable` To turn off devgems, run `devgems disable` To turn off a specific gem, run `devgems disable leap` To turn on a specific gem, run `devgems enable leap` Typical development process: cd ~ git clone http://github.com/rossmeissl/leap.git cd leap cd ~/sniff devgems enable leap rake gemspec rm -f Gemfile.lock bundle install

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 1.1.1 - November 07, 2012 (19.5 KB)
  2. 1.1.0 - November 06, 2012 (19.5 KB)
  3. 1.0.1 - August 03, 2012 (19.5 KB)
  4. 1.0.0 - August 03, 2012 (19.5 KB)
  5. 0.11.12 - April 18, 2012 (20 KB)
  6. 0.0.4 - July 19, 2010 (75 KB)
Show all versions (102 total)

Runtime Dependencies (11):

activerecord = 3.0.0.beta4
activesupport = 3.0.0.beta4
cohort_scope = 0.0.5
common_name = 0.1.5
earth = 0.0.6
falls_back_on = 0.0.2
fast_timestamp = 0.0.4
leap = 0.3.3
sqlite3-ruby = 1.3.0
timeframe = 0.0.1

Development Dependencies (6):

bundler >= 0
jeweler >= 0
rake >= 0
rcov >= 0
rdoc >= 0
rspec = 2.0.0.beta.17

Owners:

Authors:

  • Derek Kastner

SHA 256 checksum:

377016fced43541407d3aab338ba97f209b005b59bbb86964e84487d09237b2e

Total downloads 312,194

For this version 3,222

Licenses:

N/A

Required Ruby Version: None

Links: