sniff 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/sniff/database.rb +2 -0
  2. metadata +3 -3
@@ -145,6 +145,8 @@ module Sniff
145
145
  fixtures.each do |fixture_file|
146
146
  klass = File.basename(fixture_file, '.csv').
147
147
  camelize.singularize
148
+ pluralized_klass = klass.pluralize
149
+ klass = klass.pluralize unless Object.const_defined?(klass)
148
150
  if Object.const_defined?(klass) and klass.constantize.table_exists?
149
151
  log "Loading fixture #{fixture_file}"
150
152
  Fixtures.create_fixtures(fixtures_path, fixture_file[(fixtures_path.size + 1)..-5])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sniff
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Derek Kastner