data_factory 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/data_factory/base_factory.rb +3 -3
- metadata +58 -58
- data/DataFactory-0.1.gem +0 -0
@@ -10,7 +10,7 @@ module DataFactory
|
|
10
10
|
# defaults set for the columns, and will override the defaults if passed. For example:
|
11
11
|
#
|
12
12
|
# obj = Employee.create!(:last_name => 'Smith')
|
13
|
-
def create!(params)
|
13
|
+
def create!(params=Hash.new)
|
14
14
|
df = create(params)
|
15
15
|
df.commit
|
16
16
|
df
|
@@ -20,7 +20,7 @@ module DataFactory
|
|
20
20
|
# For example:
|
21
21
|
#
|
22
22
|
# obj = Employee.create(:last_name => 'Smith')
|
23
|
-
def create(params)
|
23
|
+
def create(params=Hash.new)
|
24
24
|
df = build(params)
|
25
25
|
df.generate_insert
|
26
26
|
df.run_insert
|
@@ -31,7 +31,7 @@ module DataFactory
|
|
31
31
|
# into the database. For example:
|
32
32
|
#
|
33
33
|
# obj = Employee.build(:last_name => 'Smith')
|
34
|
-
def build(params)
|
34
|
+
def build(params=Hash.new)
|
35
35
|
df = self.new
|
36
36
|
df.generate_column_data(params)
|
37
37
|
df
|
metadata
CHANGED
@@ -1,77 +1,77 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_factory
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
version: 0.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.1
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Stephen O'Donnell
|
13
|
-
autorequire:
|
9
|
+
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2013-02-12 00:00:00 +00:00
|
18
|
-
default_executable:
|
12
|
+
date: 2013-02-12 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description: Generates data to insert into database tables, allowing columns to be defaulted or overriden. Intended to be used when testing wide tables where many not null columns may need to be populated but are not part of the test
|
22
15
|
email: stephen@betteratoracle.com
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
|
-
extra_rdoc_files:
|
18
|
+
extra_rdoc_files:
|
28
19
|
- README.md
|
29
|
-
files:
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
39
|
-
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
45
|
-
|
46
|
-
|
20
|
+
files:
|
21
|
+
- !binary |-
|
22
|
+
dGVzdC9iYXNlX2FwaV90ZXN0LnJi
|
23
|
+
- !binary |-
|
24
|
+
dGVzdC9iYXNlX2RzbF90ZXN0LnJi
|
25
|
+
- !binary |-
|
26
|
+
dGVzdC9oZWxwZXIucmI=
|
27
|
+
- !binary |-
|
28
|
+
dGVzdC9zYW5pdHkucmI=
|
29
|
+
- !binary |-
|
30
|
+
dGVzdC90ZXN0X3J1bm5lci5yYg==
|
31
|
+
- !binary |-
|
32
|
+
bGliL2RhdGFfZmFjdG9yeS5yYg==
|
33
|
+
- !binary |-
|
34
|
+
bGliL2RhdGFfZmFjdG9yeS9iYXNlLnJi
|
35
|
+
- !binary |-
|
36
|
+
bGliL2RhdGFfZmFjdG9yeS9iYXNlX2FwaS5yYg==
|
37
|
+
- !binary |-
|
38
|
+
bGliL2RhdGFfZmFjdG9yeS9iYXNlX2RzbC5yYg==
|
39
|
+
- !binary |-
|
40
|
+
bGliL2RhdGFfZmFjdG9yeS9iYXNlX2ZhY3RvcnkucmI=
|
41
|
+
- !binary |-
|
42
|
+
bGliL2RhdGFfZmFjdG9yeS9jb2x1bW4ucmI=
|
43
|
+
- !binary |-
|
44
|
+
bGliL2RhdGFfZmFjdG9yeS9leGNlcHRpb25zLnJi
|
45
|
+
- !binary |-
|
46
|
+
bGliL2RhdGFfZmFjdG9yeS9yYW5kb20ucmI=
|
47
|
+
- !binary |-
|
48
|
+
UmFrZWZpbGUucmI=
|
49
|
+
- !binary |-
|
50
|
+
UkVBRE1FLm1k
|
47
51
|
homepage: http://betteratoracle.com
|
48
52
|
licenses: []
|
49
|
-
|
50
|
-
post_install_message:
|
53
|
+
post_install_message:
|
51
54
|
rdoc_options: []
|
52
|
-
|
53
|
-
require_paths:
|
55
|
+
require_paths:
|
54
56
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
67
|
-
|
68
|
-
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: !binary |-
|
62
|
+
MA==
|
63
|
+
none: false
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: !binary |-
|
69
|
+
MA==
|
70
|
+
none: false
|
69
71
|
requirements: []
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
signing_key:
|
72
|
+
rubyforge_project:
|
73
|
+
rubygems_version: 1.8.25
|
74
|
+
signing_key:
|
74
75
|
specification_version: 3
|
75
76
|
summary: A gem to generate template insert statements for use when unit testing database code
|
76
77
|
test_files: []
|
77
|
-
|
data/DataFactory-0.1.gem
DELETED
Binary file
|