data-anonymization 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -68,7 +68,7 @@ Postgresql database having **composite primary key**
68
68
 
69
69
  ## Changelog
70
70
 
71
- #### 0.5.1 (Oct ??, 2012)
71
+ #### 0.5.1 (Oct 26, 2012)
72
72
 
73
73
  1. Minor fixes release, no major functionality or feature added.
74
74
 
@@ -17,12 +17,12 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency('activerecord', '~> 3.2.8')
21
- gem.add_dependency('composite_primary_keys', '~> 5.0.8')
22
- gem.add_dependency('activesupport', '~> 3.2.8')
23
- gem.add_dependency('rgeo', '~> 0.3.15')
20
+ gem.add_dependency('activerecord', '~> 3.2.11')
21
+ gem.add_dependency('composite_primary_keys', '~> 5.0.11')
22
+ gem.add_dependency('activesupport', '~> 3.2.11')
23
+ gem.add_dependency('rgeo', '~> 0.3.20')
24
24
  gem.add_dependency('rgeo-geojson', '~> 0.2.3')
25
- gem.add_dependency('powerbar', '~> 1.0.8')
26
- gem.add_dependency('parallel', '~> 0.5.18')
25
+ gem.add_dependency('powerbar', '~> 1.0.11')
26
+ gem.add_dependency('parallel', '~> 0.6.1')
27
27
  gem.add_dependency('thor', '~> 0.16.0')
28
28
  end
@@ -1,4 +1,4 @@
1
- system "bundle exec ruby whitelist_dsl.rb"
1
+ system "bundle exec ruby examples/whitelist_dsl.rb"
2
2
 
3
3
  require 'data-anonymization'
4
4
 
@@ -1,3 +1,3 @@
1
1
  module DataAnonymization
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -29,6 +29,7 @@ describe "End 2 End RDBMS Whitelist Acceptance Test using SQLite database" do
29
29
  anonymize('email').using FieldStrategy::StringTemplate.new('test+#{row_number}@gmail.com')
30
30
  anonymize 'terms_n_condition', 'age', 'longitude'
31
31
  anonymize('latitude').using FieldStrategy::RandomFloatDelta.new(2.0)
32
+ whitelist 'created_at','updated_at'
32
33
  end
33
34
  end
34
35
 
@@ -47,6 +48,7 @@ describe "End 2 End RDBMS Whitelist Acceptance Test using SQLite database" do
47
48
  new_rec.age.should be_between(0,100)
48
49
  new_rec.latitude.should be_between( 38.689060, 42.689060)
49
50
  new_rec.longitude.should be_between( -84.044636, -64.044636)
50
-
51
+ new_rec.created_at.should == Time.new(2010,10,10)
52
+ new_rec.updated_at.should == Time.new(2010,5,5)
51
53
  end
52
54
  end
@@ -17,6 +17,8 @@ class CustomerSample
17
17
  t.integer :age
18
18
  t.float :latitude
19
19
  t.float :longitude
20
+
21
+ t.timestamps
20
22
  end
21
23
  end
22
24
  end
@@ -36,7 +38,8 @@ class CustomerSample
36
38
  :birth_date => Date.new(1977,7,8), :address => "F 501 Shanti Nagar",
37
39
  :state => "Maharastra", :zipcode => "411048", :phone => "9923700662",
38
40
  :email => "parekh.sunit@gmail.com", :terms_n_condition => true,
39
- :age => 34, :longitude => -74.044636, :latitude => +40.689060}
41
+ :age => 34, :longitude => -74.044636, :latitude => +40.689060,
42
+ :created_at => Time.new(2010,10,10), :updated_at => Time.new(2010,5,5)}
40
43
 
41
44
  def self.insert_record connection_spec, data_hash = SAMPLE_DATA
42
45
  DataAnon::Utils::TempDatabase.establish_connection connection_spec
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data-anonymization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-10-26 00:00:00.000000000 Z
14
+ date: 2013-01-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activerecord
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 3.2.8
23
+ version: 3.2.11
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  requirements:
29
29
  - - ~>
30
30
  - !ruby/object:Gem::Version
31
- version: 3.2.8
31
+ version: 3.2.11
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: composite_primary_keys
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ~>
38
38
  - !ruby/object:Gem::Version
39
- version: 5.0.8
39
+ version: 5.0.11
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 5.0.8
47
+ version: 5.0.11
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: activesupport
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  requirements:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 3.2.8
55
+ version: 3.2.11
56
56
  type: :runtime
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ~>
62
62
  - !ruby/object:Gem::Version
63
- version: 3.2.8
63
+ version: 3.2.11
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: rgeo
66
66
  requirement: !ruby/object:Gem::Requirement
@@ -68,7 +68,7 @@ dependencies:
68
68
  requirements:
69
69
  - - ~>
70
70
  - !ruby/object:Gem::Version
71
- version: 0.3.15
71
+ version: 0.3.20
72
72
  type: :runtime
73
73
  prerelease: false
74
74
  version_requirements: !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - ~>
78
78
  - !ruby/object:Gem::Version
79
- version: 0.3.15
79
+ version: 0.3.20
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rgeo-geojson
82
82
  requirement: !ruby/object:Gem::Requirement
@@ -100,7 +100,7 @@ dependencies:
100
100
  requirements:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: 1.0.8
103
+ version: 1.0.11
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ dependencies:
108
108
  requirements:
109
109
  - - ~>
110
110
  - !ruby/object:Gem::Version
111
- version: 1.0.8
111
+ version: 1.0.11
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: parallel
114
114
  requirement: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ dependencies:
116
116
  requirements:
117
117
  - - ~>
118
118
  - !ruby/object:Gem::Version
119
- version: 0.5.18
119
+ version: 0.6.1
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ dependencies:
124
124
  requirements:
125
125
  - - ~>
126
126
  - !ruby/object:Gem::Version
127
- version: 0.5.18
127
+ version: 0.6.1
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: thor
130
130
  requirement: !ruby/object:Gem::Requirement