fixation 1.0.0 → 1.1.0

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: ca6857caa4389c5c93c2be0ad4ddcd79bdd6895b
4
- data.tar.gz: 3130d2d5b400e597fb04c57fd80a8bb0449e8cc1
3
+ metadata.gz: a3b3168e7c5df3c31609251ba4a7c645d706e765
4
+ data.tar.gz: f5bfe0e79605be818a4bf47096fc03a9f9ae74a3
5
5
  SHA512:
6
- metadata.gz: f589e251617bf4efcb8e6818c35b1e471a06f07ce0dfc605edfa8ed4eeb1f779f29205cd844d609bffdfc22052f331d8cc234ff5d1f9fc158d7ff55752659fba
7
- data.tar.gz: db7f49521e7a588e71a0d672c168053eba47193b3ada05d9fbc34687465d898bf7aa0f984bcf635c37fdc2cff8f189782ff4a8db3d184f5b4eba2fd1621715f9
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!
@@ -1,3 +1,3 @@
1
1
  module Fixation
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Bryant