sniff 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +5 -1
- data/lib/sniff.rb +4 -14
- data/lib/sniff/database.rb +20 -57
- data/lib/sniff/emitter.rb +12 -5
- data/spec/lib/sniff/database_spec.rb +8 -9
- metadata +56 -119
- data/lib/sniff/active_record_ext.rb +0 -12
- data/lib/sniff/conversions_ext.rb +0 -45
- data/lib/test_support/data_models/census_division.rb +0 -9
- data/lib/test_support/data_models/census_region.rb +0 -9
- data/lib/test_support/data_models/climate_division.rb +0 -8
- data/lib/test_support/data_models/country.rb +0 -9
- data/lib/test_support/data_models/egrid_region.rb +0 -7
- data/lib/test_support/data_models/egrid_subregion.rb +0 -8
- data/lib/test_support/data_models/gender.rb +0 -6
- data/lib/test_support/data_models/petroleum_administration_for_defense_district.rb +0 -9
- data/lib/test_support/data_models/state.rb +0 -13
- data/lib/test_support/data_models/urbanity.rb +0 -6
- data/lib/test_support/data_models/zip_code.rb +0 -14
- data/lib/test_support/db/fixtures/yearly_anonymous_emissions.csv +0 -0
- data/lib/test_support/db/fixtures/yearly_typical_emissions.csv +0 -0
- data/lib/test_support/db/schema.rb +0 -117
- data/spec/spec.opts +0 -2
- data/vendor/geokit-rails/CHANGELOG.rdoc +0 -46
- data/vendor/geokit-rails/MIT-LICENSE +0 -20
- data/vendor/geokit-rails/README.markdown +0 -561
- data/vendor/geokit-rails/Rakefile +0 -18
- data/vendor/geokit-rails/about.yml +0 -9
- data/vendor/geokit-rails/assets/api_keys_template +0 -61
- data/vendor/geokit-rails/init.rb +0 -1
- data/vendor/geokit-rails/install.rb +0 -14
- data/vendor/geokit-rails/lib/geokit-rails.rb +0 -24
- data/vendor/geokit-rails/lib/geokit-rails/acts_as_mappable.rb +0 -456
- data/vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb +0 -31
- data/vendor/geokit-rails/lib/geokit-rails/adapters/mysql.rb +0 -22
- data/vendor/geokit-rails/lib/geokit-rails/adapters/postgresql.rb +0 -22
- data/vendor/geokit-rails/lib/geokit-rails/adapters/sqlserver.rb +0 -43
- data/vendor/geokit-rails/lib/geokit-rails/defaults.rb +0 -22
- data/vendor/geokit-rails/lib/geokit-rails/geocoder_control.rb +0 -16
- data/vendor/geokit-rails/lib/geokit-rails/ip_geocode_lookup.rb +0 -46
- data/vendor/geokit-rails/test/acts_as_mappable_test.rb +0 -474
- data/vendor/geokit-rails/test/boot.rb +0 -25
- data/vendor/geokit-rails/test/database.yml +0 -20
- data/vendor/geokit-rails/test/fixtures/companies.yml +0 -7
- data/vendor/geokit-rails/test/fixtures/custom_locations.yml +0 -54
- data/vendor/geokit-rails/test/fixtures/locations.yml +0 -54
- data/vendor/geokit-rails/test/fixtures/mock_addresses.yml +0 -17
- data/vendor/geokit-rails/test/fixtures/mock_families.yml +0 -2
- data/vendor/geokit-rails/test/fixtures/mock_houses.yml +0 -9
- data/vendor/geokit-rails/test/fixtures/mock_organizations.yml +0 -5
- data/vendor/geokit-rails/test/fixtures/mock_people.yml +0 -5
- data/vendor/geokit-rails/test/fixtures/stores.yml +0 -0
- data/vendor/geokit-rails/test/ip_geocode_lookup_test.rb +0 -77
- data/vendor/geokit-rails/test/models/company.rb +0 -3
- data/vendor/geokit-rails/test/models/custom_location.rb +0 -12
- data/vendor/geokit-rails/test/models/location.rb +0 -4
- data/vendor/geokit-rails/test/models/mock_address.rb +0 -4
- data/vendor/geokit-rails/test/models/mock_family.rb +0 -3
- data/vendor/geokit-rails/test/models/mock_house.rb +0 -3
- data/vendor/geokit-rails/test/models/mock_organization.rb +0 -4
- data/vendor/geokit-rails/test/models/mock_person.rb +0 -4
- data/vendor/geokit-rails/test/models/store.rb +0 -3
- data/vendor/geokit-rails/test/schema.rb +0 -60
- data/vendor/geokit-rails/test/tasks.rake +0 -31
- data/vendor/geokit-rails/test/test_helper.rb +0 -23
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'mocha'
|
3
|
-
|
4
|
-
require 'boot'
|
5
|
-
|
6
|
-
require 'geokit'
|
7
|
-
require 'geokit-rails'
|
8
|
-
|
9
|
-
|
10
|
-
class GeokitTestCase < ActiveSupport::TestCase
|
11
|
-
begin
|
12
|
-
include ActiveRecord::TestFixtures
|
13
|
-
rescue NameError
|
14
|
-
puts "You appear to be using a pre-2.3 version of Rails. No need to include ActiveRecord::TestFixtures."
|
15
|
-
end
|
16
|
-
|
17
|
-
self.fixture_path = File.join(File.dirname(__FILE__), 'fixtures')
|
18
|
-
self.use_transactional_fixtures = true
|
19
|
-
self.use_instantiated_fixtures = false
|
20
|
-
|
21
|
-
fixtures :all
|
22
|
-
|
23
|
-
end
|