fixture_validation 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06f5281b8c533128715efb3dd03d11dc9d309e8f
4
- data.tar.gz: daf982132fda348a3718dfcabde636c82d264e66
3
+ metadata.gz: 5a64198be9d3b99091f2716500aba88e8d69fc25
4
+ data.tar.gz: ef1d836eadc863382b80a2cdebc7c9b9ff3d4383
5
5
  SHA512:
6
- metadata.gz: c2d3715b299c3316fa700345814e59c25fd5a54bc08edb6c3065b13e3e0834f61fe720d1387540fdd359f256d98c1cfcbb5437ba8c2ed189bb6a6bb774fc88f1
7
- data.tar.gz: 131e4cb846ad5d3551ae4564ba17fcc70b38fd86b8eed756b344db3fccaef0028ce6556c49e7a89c482ef393eb5b4bf6db0669854242327749f30f34f1637c91
6
+ metadata.gz: f552393f2462998bbdfc9381fb9ed36ae9a6f5fc7786303114de6d8744af786166091c2201ad3a7cd988be2f2d3095d24f016f2d00725163eb022276f68bafe8
7
+ data.tar.gz: de515457797bf2fa8afdf2fa008fb8869436a8d0fe3d13ee90aeb0cbf8d753eaa69d4edf37be7a1c045327152c48687874fc02f390f589e099349a1a24f7593b
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /.idea/
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'bundler', '~> 1.13'
24
24
  spec.add_development_dependency 'rake', '~> 10.0'
25
25
  spec.add_development_dependency 'minitest', '~> 5.0'
26
- spec.add_runtime_dependency 'rails'
26
+ spec.add_runtime_dependency 'rails', '~> 4.0', '~> 5.0'
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module FixtureValidation
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -7,11 +7,12 @@ class FixtureValidation::Test < ActiveSupport::TestCase
7
7
  test 'fixtures are valid' do
8
8
  count = 0
9
9
  klasses = []
10
- fixture_table_names.each do |klass_name|
10
+ fixture_table_names.each do |fixture_name|
11
+ klass_name = fixture_name.classify
11
12
  begin
12
- klasses << klass_name.classify.constantize
13
+ klasses << klass_name.constantize
13
14
  rescue NameError
14
- puts "Skipping #{klass_name}"
15
+ Rails.logger.debug "No model class (#{klass_name}) found for fixture #{fixture_name}"
15
16
  end
16
17
  end
17
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixture_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Falcone
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-12 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ - - "~>"
60
63
  - !ruby/object:Gem::Version
61
- version: '0'
64
+ version: '5.0'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - ">="
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '4.0'
72
+ - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '0'
74
+ version: '5.0'
69
75
  description:
70
76
  email:
71
77
  - danfalcone@gmail.com