database_flusher 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ae582039a16a7f6b25c12b09683663d3061c9fb
4
- data.tar.gz: ee031d973bf006c2640d8bae58b8aee97457c617
3
+ metadata.gz: cd3ca4c9c2b757975e1eee5bc86ff3e4abb3c71e
4
+ data.tar.gz: 33476f378b785b6430153ae42ffd357151ea2d96
5
5
  SHA512:
6
- metadata.gz: 489db40d248249811e8f16420dfda4c02a2e3b42bd2c709028061b371c8efcc3b2ab4c8e584a9f0c0f687396ce3aeb881fb5195933c9954409fb3d72f2774e5c
7
- data.tar.gz: 9b039b7933fa803c298719792e74f5255c4b4f13e6310207777fe35c32dcd7580b833430e13763b3a5891673abee6fd4fe603219e4ed6ec90a90c12949fcf73a
6
+ metadata.gz: 83cdd2965b69e1da78a670f72bdd57b6df616fecc1d52dd79389324e005441f43c677180d3ab5b24d1536d0c869d12e25816f368eab92a77793c54a178e96177
7
+ data.tar.gz: 2bfb080ce5e88077939071d8dddb0b099fab1787238f5b9a4848de35c258e23dd5d73ba4fa4c3ebd1c1b7b458a823e4f04fae6df0ea31adf08a5fcccf82cd9dd
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # DatabaseFlusher
2
2
 
3
3
  [![Build Status](https://travis-ci.org/ebeigarts/database_flusher.svg?branch=master)](https://travis-ci.org/ebeigarts/database_flusher)
4
+ [![Code Climate](https://codeclimate.com/github/ebeigarts/database_flusher/badges/gpa.svg)](https://codeclimate.com/github/ebeigarts/database_flusher)
4
5
 
5
6
  database_flusher is a tiny and fast database cleaner inspired by [database_cleaner](https://github.com/DatabaseCleaner/database_cleaner) and [database_rewinder](https://github.com/amatsuda/database_rewinder).
6
7
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'set'
2
3
 
3
4
  require 'database_flusher/version'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  module ActiveRecord
3
4
  class AbstractAdapter
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  module ActiveRecord
3
4
  class Mysql2Adapter < AbstractAdapter
@@ -1,9 +1,10 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  module ActiveRecord
3
4
  class PostgreSQLAdapter < AbstractAdapter
4
5
  private
5
6
 
6
- def disable_referential_integrity(*tables, &block)
7
+ def disable_referential_integrity(*tables)
7
8
  begin
8
9
  execute(tables.collect { |name| "ALTER TABLE #{quote_table_name(name)} DISABLE TRIGGER ALL" }.join(";"))
9
10
  rescue
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  module ActiveRecord
3
4
  class SQLiteAdapter < AbstractAdapter
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'database_flusher/active_record/adapters/abstract_adapter'
2
3
  require 'database_flusher/active_record/adapters/mysql2_adapter'
3
4
  require 'database_flusher/active_record/adapters/postgresql_adapter'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  module ActiveRecord
3
4
  class TransactionStrategy
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  class Cleaner
3
4
  attr_reader :strategy
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  module Mongoid
3
4
  class DeletionStrategy
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
3
  class NullStrategy
3
4
  def start; end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module DatabaseFlusher
2
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.2.1'.freeze
3
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_flusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edgars Beigarts
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.4.8
188
+ rubygems_version: 2.5.2
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: super-fast database cleaner