--- !ruby/object:Gem::Specification name: sniff version: !ruby/object:Gem::Version hash: 23 prerelease: false segments: - 0 - 0 - 4 version: 0.0.4 platform: ruby authors: - Derek Kastner autorequire: bindir: bin cert_chain: [] date: 2010-07-19 00:00:00 -04:00 default_executable: dependencies: - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: activerecord version_requirements: &id001 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: -1848230024 segments: - 3 - 0 - 0 - beta4 version: 3.0.0.beta4 requirement: *id001 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: activesupport version_requirements: &id002 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: -1848230024 segments: - 3 - 0 - 0 - beta4 version: 3.0.0.beta4 requirement: *id002 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: sqlite3-ruby version_requirements: &id003 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 27 segments: - 1 - 3 - 0 version: 1.3.0 requirement: *id003 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: falls_back_on version_requirements: &id004 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 27 segments: - 0 - 0 - 2 version: 0.0.2 requirement: *id004 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: cohort_scope version_requirements: &id005 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 21 segments: - 0 - 0 - 5 version: 0.0.5 requirement: *id005 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: leap version_requirements: &id006 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 21 segments: - 0 - 3 - 3 version: 0.3.3 requirement: *id006 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: summary_judgement version_requirements: &id007 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 11 segments: - 1 - 3 - 8 version: 1.3.8 requirement: *id007 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: fast_timestamp version_requirements: &id008 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 23 segments: - 0 - 0 - 4 version: 0.0.4 requirement: *id008 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: common_name version_requirements: &id009 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 17 segments: - 0 - 1 - 5 version: 0.1.5 requirement: *id009 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: timeframe version_requirements: &id010 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 29 segments: - 0 - 0 - 1 version: 0.0.1 requirement: *id010 - !ruby/object:Gem::Dependency type: :runtime prerelease: false name: earth version_requirements: &id011 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 19 segments: - 0 - 0 - 6 version: 0.0.6 requirement: *id011 - !ruby/object:Gem::Dependency type: :development prerelease: false name: bundler version_requirements: &id012 !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirement: *id012 - !ruby/object:Gem::Dependency type: :development prerelease: false name: jeweler version_requirements: &id013 !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirement: *id013 - !ruby/object:Gem::Dependency type: :development prerelease: false name: rake version_requirements: &id014 !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirement: *id014 - !ruby/object:Gem::Dependency type: :development prerelease: false name: rspec version_requirements: &id015 !ruby/object:Gem::Requirement none: false requirements: - - "=" - !ruby/object:Gem::Version hash: 62196417 segments: - 2 - 0 - 0 - beta - 17 version: 2.0.0.beta.17 requirement: *id015 - !ruby/object:Gem::Dependency type: :development prerelease: false name: rcov version_requirements: &id016 !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirement: *id016 - !ruby/object:Gem::Dependency type: :development prerelease: false name: rdoc version_requirements: &id017 !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirement: *id017 description: | # 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 email: derek.kastner@brighterplanet.com executables: [] extensions: [] extra_rdoc_files: - README.markdown files: - lib/sniff.rb - lib/sniff/database.rb - lib/sniff/emitter.rb - lib/sniff/tasks.rb - lib/sniff/timeframe.rb - lib/test_support/db/fixtures/census_divisions.csv - lib/test_support/db/fixtures/census_regions.csv - lib/test_support/db/fixtures/climate_divisions.csv - lib/test_support/db/fixtures/countries.csv - lib/test_support/db/fixtures/egrid_regions.csv - lib/test_support/db/fixtures/egrid_subregions.csv - lib/test_support/db/fixtures/genders.csv - lib/test_support/db/fixtures/petroleum_administration_for_defense_districts.csv - lib/test_support/db/fixtures/states.csv - lib/test_support/db/fixtures/urbanities.csv - lib/test_support/db/fixtures/zip_codes.csv - README.markdown - spec/lib/sniff/database_spec.rb - spec/spec_helper.rb has_rdoc: true homepage: http://github.com/brighterplanet/sniff licenses: [] post_install_message: rdoc_options: - --charset=UTF-8 require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" required_rubygems_version: !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirements: [] rubyforge_project: rubygems_version: 1.3.7 signing_key: specification_version: 3 summary: Test support for Brighter Planet carbon gems test_files: - spec/lib/sniff/database_spec.rb - spec/spec_helper.rb