fixturease 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/bin/fixturease.rb +7 -3
  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.3"
10
+ PKG_VERSION="0.3.1"
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|
data/bin/fixturease.rb CHANGED
@@ -75,7 +75,7 @@ else
75
75
  @@fixtures[self.class] ||= {}
76
76
  @@fixtures[self.class][self.id] = self unless self.new_record?
77
77
  end
78
-
78
+
79
79
  alias_method :to_yaml_orig, :to_yaml
80
80
  def to_yaml
81
81
  id || to_yaml_orig
@@ -85,7 +85,9 @@ else
85
85
  @@fixtures
86
86
  end
87
87
  end
88
- ActiveRecord::Base.send :increment_open_transactions
88
+ unless Rails::VERSION::STRING == "1.1.6"
89
+ ActiveRecord::Base.send :increment_open_transactions
90
+ end
89
91
  ActiveRecord::Base.connection.begin_db_transaction
90
92
  begin
91
93
  load_fixtures! if ENV['LOAD_FIXTURES']=='yes'
@@ -116,6 +118,8 @@ else
116
118
  puts "No new objects were created."
117
119
  end
118
120
  ActiveRecord::Base.connection.rollback_db_transaction
119
- ActiveRecord::Base.send :decrement_open_transactions
121
+ unless Rails::VERSION::STRING == "1.1.6"
122
+ ActiveRecord::Base.send :decrement_open_transactions
123
+ end
120
124
  end
121
125
  end
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.3"
7
- date: 2007-02-05 00:00:00 +02:00
6
+ version: 0.3.1
7
+ date: 2007-02-16 00:00:00 +02:00
8
8
  summary: Easy fixture creation tool
9
9
  require_paths:
10
10
  - lib