fixturease 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/fixturease.rb +6 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/bin/fixturease.rb
CHANGED
@@ -77,8 +77,12 @@ else
|
|
77
77
|
end
|
78
78
|
ActiveRecord::Base.send :increment_open_transactions
|
79
79
|
ActiveRecord::Base.connection.begin_db_transaction
|
80
|
-
|
81
|
-
|
80
|
+
begin
|
81
|
+
load_fixtures! if ENV['LOAD_FIXTURES']=='yes'
|
82
|
+
reset_sequences!
|
83
|
+
rescue NameError
|
84
|
+
end
|
85
|
+
|
82
86
|
at_exit do
|
83
87
|
vars = {}
|
84
88
|
instance_variables.each {|varname| vars[instance_variable_get(varname)]=varname.gsub(/^@/,"") if instance_variable_get(varname).is_a? ActiveRecord::Base}
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: fixturease
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
date: 2007-01-
|
6
|
+
version: 0.2.8
|
7
|
+
date: 2007-01-31 00:00:00 +02:00
|
8
8
|
summary: Easy fixture creation tool
|
9
9
|
require_paths:
|
10
10
|
- lib
|