yaml_db_anonymizer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,10 @@ module YamlDb
28
28
  super(io, table) unless Anonymizer.definition.is_a?(Hash) && Anonymizer.definition[table.to_s] == :truncate
29
29
  end
30
30
 
31
+ def self.tables
32
+ ActiveRecord::Base.connection.tables
33
+ end
34
+
31
35
  end
32
36
 
33
37
  end
@@ -1,5 +1,5 @@
1
1
  module YamlDb
2
2
  module Anonymizer
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -48,6 +48,12 @@ describe YamlDb::Anonymizer do
48
48
  @io = StringIO.new
49
49
  end
50
50
 
51
+ context 'tables' do
52
+ it 'dumps rails schema tables' do
53
+ YamlDb::Anonymizer::Dump.tables.should == %w(mytable schema_info schema_migrations)
54
+ end
55
+ end
56
+
51
57
  context 'truncated' do
52
58
  before do
53
59
  YamlDb::Anonymizer.define do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_db_anonymizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-05 00:00:00.000000000 Z
12
+ date: 2013-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yaml_db
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 1.8.21
139
+ rubygems_version: 1.8.24
140
140
  signing_key:
141
141
  specification_version: 3
142
142
  summary: A database dumper with anonymization