factory_data_preloader 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +28 -0
- data/.rbenv-version +1 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +50 -0
- data/Rakefile +5 -0
- data/factory_data_preloader.gemspec +30 -0
- metadata +152 -127
- data/CHANGELOG.rdoc +0 -59
- data/LICENSE +0 -20
- data/VERSION.yml +0 -5
data/.gitignore
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
.DS_Store
|
2
|
+
.rvmrc
|
3
|
+
.idea
|
4
|
+
*.pgz
|
5
|
+
config/database.yml
|
6
|
+
log/*.log
|
7
|
+
public/flash/*.swf
|
8
|
+
tmp/**/*
|
9
|
+
*.tmproj
|
10
|
+
public/stylesheets/packaged/*.css
|
11
|
+
public/javascripts/packaged/*.js
|
12
|
+
tmp
|
13
|
+
log
|
14
|
+
config/*.sphinx.conf
|
15
|
+
db/sphinx/
|
16
|
+
sphinx/**/*
|
17
|
+
public/packages/*
|
18
|
+
.gitconfig
|
19
|
+
config/sphinx.yml
|
20
|
+
.bundle
|
21
|
+
bin/*
|
22
|
+
.sass-cache
|
23
|
+
project.rvmrc
|
24
|
+
public/assets
|
25
|
+
*.gem
|
26
|
+
|
27
|
+
/.ey_local_data
|
28
|
+
/.vagrant
|
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3-p194
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
factory_data_preloader (1.0.2)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activemodel (3.2.9)
|
10
|
+
activesupport (= 3.2.9)
|
11
|
+
builder (~> 3.0.0)
|
12
|
+
activerecord (3.2.9)
|
13
|
+
activemodel (= 3.2.9)
|
14
|
+
activesupport (= 3.2.9)
|
15
|
+
arel (~> 3.0.2)
|
16
|
+
tzinfo (~> 0.3.29)
|
17
|
+
activesupport (3.2.9)
|
18
|
+
i18n (~> 0.6)
|
19
|
+
multi_json (~> 1.0)
|
20
|
+
arel (3.0.2)
|
21
|
+
builder (3.0.4)
|
22
|
+
columnize (0.3.6)
|
23
|
+
i18n (0.6.1)
|
24
|
+
linecache (0.46)
|
25
|
+
rbx-require-relative (> 0.0.4)
|
26
|
+
mocha (0.9.12)
|
27
|
+
multi_json (1.5.0)
|
28
|
+
rbx-require-relative (0.0.9)
|
29
|
+
ruby-debug (0.10.4)
|
30
|
+
columnize (>= 0.1)
|
31
|
+
ruby-debug-base (~> 0.10.4.0)
|
32
|
+
ruby-debug-base (0.10.4)
|
33
|
+
linecache (>= 0.3)
|
34
|
+
shoulda (2.11.3)
|
35
|
+
sqlite3 (1.3.6)
|
36
|
+
sqlite3-ruby (1.3.3)
|
37
|
+
sqlite3 (>= 1.3.3)
|
38
|
+
tzinfo (0.3.35)
|
39
|
+
|
40
|
+
PLATFORMS
|
41
|
+
ruby
|
42
|
+
|
43
|
+
DEPENDENCIES
|
44
|
+
activerecord (>= 2.3.0)
|
45
|
+
activesupport (>= 2.3.0)
|
46
|
+
factory_data_preloader!
|
47
|
+
mocha (>= 0.9.10, < 0.10.0)
|
48
|
+
ruby-debug (>= 0.10.3)
|
49
|
+
shoulda (>= 2.11.3, < 2.12.0)
|
50
|
+
sqlite3-ruby (>= 1.3.2, < 1.4.0)
|
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{factory_data_preloader}
|
5
|
+
s.version = "1.0.2"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Kyle J. Ginavan"]
|
9
|
+
s.date = %q{2009-07-09}
|
10
|
+
s.email = %q{kylejginavan@gmail.com}
|
11
|
+
s.extra_rdoc_files = ["README.rdoc"]
|
12
|
+
|
13
|
+
s.files = `git ls-files`.split("\n")
|
14
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
15
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
|
18
|
+
s.has_rdoc = true
|
19
|
+
s.homepage = %q{http://github.com/kylejginavan/factory_data_preloader}
|
20
|
+
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
s.rubygems_version = %q{1.3.1}
|
23
|
+
s.summary = %q{A library for preloading test data in rails applications.}
|
24
|
+
|
25
|
+
s.add_development_dependency("shoulda", [">= 2.11.3", "< 2.12.0"])
|
26
|
+
s.add_development_dependency("mocha", [">= 0.9.10", "< 0.10.0"])
|
27
|
+
s.add_development_dependency("activerecord", [">= 2.3.0"])
|
28
|
+
s.add_development_dependency("activesupport", [">= 2.3.0"])
|
29
|
+
s.add_development_dependency("sqlite3-ruby", [">= 1.3.2", "< 1.4.0"])
|
30
|
+
end
|
metadata
CHANGED
@@ -1,147 +1,172 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_data_preloader
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
4
5
|
prerelease:
|
5
|
-
version: 1.0.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
7
|
+
authors:
|
8
|
+
- Kyle J. Ginavan
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
12
|
+
date: 2009-07-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: shoulda
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.11.3
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 2.12.0
|
25
|
+
type: :development
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.11.3
|
33
|
+
- - <
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 2.12.0
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mocha
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.9.10
|
44
|
+
- - <
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.10.0
|
47
|
+
type: :development
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.9.10
|
55
|
+
- - <
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 0.10.0
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: activerecord
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 2.3.0
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 2.3.0
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: activesupport
|
76
|
+
requirement: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 2.3.0
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.3.0
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: sqlite3-ruby
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.3.2
|
98
|
+
- - <
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 1.4.0
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ! '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.3.2
|
109
|
+
- - <
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 1.4.0
|
90
112
|
description:
|
91
113
|
email: kylejginavan@gmail.com
|
92
114
|
executables: []
|
93
|
-
|
94
115
|
extensions: []
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
116
|
+
extra_rdoc_files:
|
117
|
+
- README.rdoc
|
118
|
+
files:
|
119
|
+
- .gitignore
|
120
|
+
- .rbenv-version
|
121
|
+
- Gemfile
|
122
|
+
- Gemfile.lock
|
123
|
+
- README.rdoc
|
124
|
+
- Rakefile
|
125
|
+
- factory_data_preloader.gemspec
|
126
|
+
- lib/factory_data_preloader.rb
|
127
|
+
- lib/factory_data_preloader/core_ext.rb
|
128
|
+
- lib/factory_data_preloader/factory_data.rb
|
129
|
+
- lib/factory_data_preloader/preloaded_data_hash.rb
|
130
|
+
- lib/factory_data_preloader/preloader.rb
|
131
|
+
- lib/factory_data_preloader/preloader_collection.rb
|
132
|
+
- lib/factory_data_preloader/rails_core_ext.rb
|
133
|
+
- lib/factory_data_preloader/railtie.rb
|
134
|
+
- test/factory_data_test.rb
|
135
|
+
- test/lib/models.rb
|
136
|
+
- test/lib/schema.rb
|
137
|
+
- test/preloaded_data_hash_test.rb
|
138
|
+
- test/preloader_test.rb
|
139
|
+
- test/test_helper.rb
|
118
140
|
homepage: http://github.com/kylejginavan/factory_data_preloader
|
119
141
|
licenses: []
|
120
|
-
|
121
142
|
post_install_message:
|
122
|
-
rdoc_options:
|
123
|
-
|
124
|
-
|
125
|
-
require_paths:
|
126
|
-
|
127
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
+
rdoc_options:
|
144
|
+
- --inline-source
|
145
|
+
- --charset=UTF-8
|
146
|
+
require_paths:
|
147
|
+
- lib
|
148
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
149
|
none: false
|
129
|
-
requirements:
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
155
|
none: false
|
135
|
-
requirements:
|
136
|
-
|
137
|
-
|
138
|
-
|
156
|
+
requirements:
|
157
|
+
- - ! '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
139
160
|
requirements: []
|
140
|
-
|
141
161
|
rubyforge_project:
|
142
|
-
rubygems_version: 1.8.
|
162
|
+
rubygems_version: 1.8.23
|
143
163
|
signing_key:
|
144
164
|
specification_version: 3
|
145
165
|
summary: A library for preloading test data in rails applications.
|
146
|
-
test_files:
|
147
|
-
|
166
|
+
test_files:
|
167
|
+
- test/factory_data_test.rb
|
168
|
+
- test/lib/models.rb
|
169
|
+
- test/lib/schema.rb
|
170
|
+
- test/preloaded_data_hash_test.rb
|
171
|
+
- test/preloader_test.rb
|
172
|
+
- test/test_helper.rb
|
data/CHANGELOG.rdoc
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
== 1.0.0.beta0 / 2010-12-21
|
2
|
-
|
3
|
-
* Added Gemfile and updated gemspec to list all dependencies
|
4
|
-
* Require all libraries needed (YAML and singleton)
|
5
|
-
* Updated tests to work with latest shoulda
|
6
|
-
|
7
|
-
== 1.0.0.beta0 / 2010-12-20
|
8
|
-
|
9
|
-
* Updating to Rails 3 compat
|
10
|
-
|
11
|
-
== 0.5.2 / 2009-07-09
|
12
|
-
|
13
|
-
* Improved backtrace output.
|
14
|
-
|
15
|
-
== 0.5.1 / 2009-07-07
|
16
|
-
|
17
|
-
* Fixed a couple of bugs that caused the data to be preloaded multiple times or deleted multiple times.
|
18
|
-
|
19
|
-
== 0.5.0 / 2009-07-07
|
20
|
-
|
21
|
-
* Added better error handling. The data[:key] = record form is deprecated in favor of data.add(:key) { record }.
|
22
|
-
* Allow preloaders to be redefined. This should make this more compatible with autotest.
|
23
|
-
|
24
|
-
== 0.4.3 / 2009-06-05
|
25
|
-
|
26
|
-
* Added shoulda and mocha development dependencies.
|
27
|
-
|
28
|
-
== 0.4.2 / 2009-06-02
|
29
|
-
|
30
|
-
* Raise an appropriate error when the developer tries to get a record for a preloader that was never run.
|
31
|
-
|
32
|
-
== 0.4.1 / 2009-06-01
|
33
|
-
|
34
|
-
* Updated documentation (Forgot to for the 0.4.0 release).
|
35
|
-
|
36
|
-
== 0.4.0 / 2009-06-01
|
37
|
-
|
38
|
-
* Added ability to only preload some of the types.
|
39
|
-
* During preloading, print to the console to indicate the records being preloaded and a benchmark.
|
40
|
-
|
41
|
-
== 0.3.2 / 2009-04-07
|
42
|
-
|
43
|
-
* Fixed a bug with the ordering of the dependent preloaders.
|
44
|
-
|
45
|
-
== 0.3.1 / 2009-03-30
|
46
|
-
|
47
|
-
* Updated documentation. (Forgot to for 0.3.0 release)
|
48
|
-
|
49
|
-
== 0.3.0 / 2009-03-30
|
50
|
-
|
51
|
-
* Added logic to auto load the factory_data files.
|
52
|
-
|
53
|
-
== 0.2.0 / 2009-03-30
|
54
|
-
|
55
|
-
* Added :depends_on option to the preloader, to force the preloaders to load in the correct order based on your foreign keys and table dependencies.
|
56
|
-
|
57
|
-
== 0.1.0 / 2009-03-30
|
58
|
-
|
59
|
-
* Initial release
|
data/LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2009 Myron Marston, Kashless.org
|
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.
|