database_cleaner 0.6.0.rc.2 → 0.6.0.rc.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -22,6 +22,8 @@ of the hours and effort he put into making this feature request a reality.
22
22
 
23
23
  === Bugfixes
24
24
  * Updates the DataMapper truncation strategy to version 0.10.3. (Robert Rouse)
25
+ * Addresses Ruby 1.9 and 1.8 differences causing a bug in the AR PostgreSQLAdapter truncation strategy. (GH-14, James B. Byrne)
26
+ * Fixes syntax error that MySQL was throwing during DataMapper truncation. (Blake Gentry)
25
27
 
26
28
  == 0.5.2
27
29
 
@@ -46,7 +46,7 @@ module ActiveRecord
46
46
  @db_version ||= connection.select_values(
47
47
  "SELECT CHARACTER_VALUE
48
48
  FROM INFORMATION_SCHEMA.SQL_IMPLEMENTATION_INFO
49
- WHERE IMPLEMENTATION_INFO_NAME = 'DBMS VERSION' ").to_s
49
+ WHERE IMPLEMENTATION_INFO_NAME = 'DBMS VERSION' ").join.to_s
50
50
  end
51
51
 
52
52
  def self.cascade
@@ -30,7 +30,7 @@ module DataMapper
30
30
  execute("SET FOREIGN_KEY_CHECKS = 0;")
31
31
  yield
32
32
  ensure
33
- execute("SET FOREIGN_KEY_CHECKS = #{old.first};")
33
+ execute("SET FOREIGN_KEY_CHECKS = ?", *old)
34
34
  end
35
35
  end
36
36
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424113
4
+ hash: 15424115
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
9
  - 0
10
10
  - rc
11
- - 2
12
- version: 0.6.0.rc.2
11
+ - 3
12
+ version: 0.6.0.rc.3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Ben Mabey