fixture_builder 0.5.2.rc1 → 0.5.2.rc2

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: c86b3325f334daf08be3fd9635c973893ccdad34
4
- data.tar.gz: 3aa152fb4a495183f2e059eb48682e45fd9fcf04
3
+ metadata.gz: 81cd20ecb6c956f9666a8ee3d0ad3cf2546a3a13
4
+ data.tar.gz: d335c3ba894c9180b10e60094f20bb586a5a8824
5
5
  SHA512:
6
- metadata.gz: 04fb9eb40c4a7ae966d7e95fe16696a2dda9092f34aab960955bb53fecc95944ba541d612d32bee66f49291c14f94e38830ee532352141db6191cb6f3a0826c7
7
- data.tar.gz: 4f4ef5a551c3aa89de18356493e5d56ac469b758f1dd64709d0ad8f3409e8b18b2fb9f5c9d5223ddfeb74168f39dadb81d7702536dd52c56f072889532731d69
6
+ metadata.gz: 508b1e879f9ce082e6e6da91375c473c33b253b9abcecb3df506f07fae556dd428b5b08db5d2ccda5757e9eed30ea3c4ee294d9cedb319536920b47954af5c30
7
+ data.tar.gz: 7462e986371bb0de96a92c9a0962b64817dcdd8746eaa01b1cd9d577cf2623e328cd4cf90e4f2addc6661536b35120707e48857164c863b2c529c216be611a05
@@ -127,14 +127,14 @@ module FixtureBuilder
127
127
  def rebuild_fixtures?
128
128
  file_hashes_from_disk= @file_hashes
129
129
  file_hashes_from_config= read_config
130
- if Dir.glob('spec/fixtures/*.yml').blank?
131
- puts '=> rebuilding fixtures because spec/fixtures has no *.yml files'
130
+ if Dir.glob("#{fixture_directory}/*.yml").blank?
131
+ puts "=> rebuilding fixtures because fixture directory #{fixture_directory} has no *.yml files"
132
132
  return true
133
- elsif !::File.exists?(::File.expand_path('../../../tmp/fixture_builder.yml', __FILE__))
134
- puts '=> rebuilding fixtures because tmp/fixture_builder.yml does not exist'
133
+ elsif !::File.exists?(fixture_builder_file)
134
+ puts "=> rebuilding fixtures because fixture_builder config file #{fixture_builder_file} does not exist"
135
135
  return true
136
136
  elsif file_hashes_from_disk != file_hashes_from_config
137
- puts '=> rebuilding fixtures because one or more of the following files have changed:'
137
+ puts '=> rebuilding fixtures because one or more of the following files have changed (see http://www.rubydoc.info/gems/hashdiff for diff syntax):'
138
138
  HashDiff.diff(file_hashes_from_disk, file_hashes_from_config).map {|diff| print ' '; p diff}
139
139
  return true
140
140
  end
@@ -1,3 +1,3 @@
1
1
  module FixtureBuilder
2
- VERSION = '0.5.2.rc1'
2
+ VERSION = '0.5.2.rc2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixture_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2.rc1
4
+ version: 0.5.2.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Dy