fixation 1.0.0 → 1.1.0
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.
- checksums.yaml +4 -4
- data/lib/fixation.rb +12 -5
- data/lib/fixation/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: a3b3168e7c5df3c31609251ba4a7c645d706e765
|
|
4
|
+
data.tar.gz: f5bfe0e79605be818a4bf47096fc03a9f9ae74a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67670b4cb21db3794e855a7cd3b7cf504c241ae5af6f493ee4c638c59a5a5e0b905f575c8c1e9650775341f9c97c9f3c9ce2345e604e8ef712d64abf85962b4d
|
|
7
|
+
data.tar.gz: 62086ce7f21c3c1c74d2f4329b63f8c4282ef0609378b2ac174a5f01c95d51c827ccfc562c9fa30aa04eaa79c568fd2e06e0be68d295ac9ddd103fef3e67f2aa
|
data/lib/fixation.rb
CHANGED
|
@@ -258,11 +258,6 @@ module Fixation
|
|
|
258
258
|
cattr_accessor :paths
|
|
259
259
|
self.paths = %w(test/fixtures spec/fixtures)
|
|
260
260
|
|
|
261
|
-
def self.preload_for_spring
|
|
262
|
-
build_fixtures
|
|
263
|
-
unload_models!
|
|
264
|
-
end
|
|
265
|
-
|
|
266
261
|
def self.build_fixtures
|
|
267
262
|
@fixtures = Fixtures.new
|
|
268
263
|
end
|
|
@@ -295,6 +290,18 @@ module Fixation
|
|
|
295
290
|
defined?(Spring::Application)
|
|
296
291
|
end
|
|
297
292
|
|
|
293
|
+
def self.preload_for_spring
|
|
294
|
+
build_fixtures
|
|
295
|
+
unload_models!
|
|
296
|
+
watch_paths
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
def self.watch_paths
|
|
300
|
+
paths.each do |path|
|
|
301
|
+
Spring.watch(path)
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
298
305
|
# reloads Rails (using the code from Spring) in order to unload the model classes that get
|
|
299
306
|
# auto-loaded when we read the fixture definitions.
|
|
300
307
|
def self.unload_models!
|
data/lib/fixation/version.rb
CHANGED