fixturease 0.2.7 → 0.2.8

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/bin/fixturease.rb +6 -2
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ desc 'Default: run unit tests.'
7
7
  task :default => :spec
8
8
 
9
9
 
10
- PKG_VERSION="0.2.7"
10
+ PKG_VERSION="0.2.8"
11
11
  PKG_FILES=["bin/fixturease.rb","Rakefile","spec/database.yml","spec/fixturease_spec.rb"]
12
12
 
13
13
  spec = Gem::Specification.new do |s|
@@ -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
- load_fixtures! if ENV['LOAD_FIXTURES']=='yes'
81
- reset_sequences!
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
7
- date: 2007-01-30 00:00:00 +02:00
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