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 +4 -4
- data/lib/fixture_builder/configuration.rb +5 -5
- data/lib/fixture_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81cd20ecb6c956f9666a8ee3d0ad3cf2546a3a13
|
4
|
+
data.tar.gz: d335c3ba894c9180b10e60094f20bb586a5a8824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
131
|
-
puts
|
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?(
|
134
|
-
puts
|
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
|