bmabey-database_cleaner 0.1.1 → 0.1.2

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.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Ben Mabey
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :major: 0
3
2
  :minor: 1
4
- :patch: 1
3
+ :patch: 2
4
+ :major: 0
@@ -13,6 +13,12 @@ module ActiveRecord
13
13
  end
14
14
  end
15
15
 
16
+ class JdbcAdapter
17
+ def truncate_table(table_name)
18
+ execute("TRUNCATE TABLE #{table_name};")
19
+ end
20
+ end
21
+
16
22
  end
17
23
 
18
24
  end
@@ -3,7 +3,7 @@ require 'database_cleaner/active_record/truncation'
3
3
  require 'active_record'
4
4
  module ActiveRecord
5
5
  module ConnectionAdapters
6
- [MysqlAdapter, SQLite3Adapter].each do |adapter|
6
+ [MysqlAdapter, SQLite3Adapter, JdbcAdapter].each do |adapter|
7
7
  describe adapter, "#truncate_table" do
8
8
  it "should truncate the table"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmabey-database_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mabey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-04 00:00:00 -08:00
12
+ date: 2009-03-05 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -19,8 +19,9 @@ executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
- extra_rdoc_files: []
23
-
22
+ extra_rdoc_files:
23
+ - README.textile
24
+ - LICENSE
24
25
  files:
25
26
  - README.textile
26
27
  - VERSION.yml
@@ -54,6 +55,7 @@ files:
54
55
  - spec/spec_helper.rb
55
56
  - Rakefile
56
57
  - cucumber.yml
58
+ - LICENSE
57
59
  has_rdoc: true
58
60
  homepage: http://github.com/bmabey/database_cleaner
59
61
  post_install_message: