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 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
@@ -0,0 +1,7 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ platforms :mri_18 do
6
+ gem "ruby-debug", ">= 0.10.3"
7
+ end
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,5 @@
1
+ require 'bundler'
2
+ require 'rspec/core/rake_task'
3
+ Bundler::GemHelper.install_tasks
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task :default => :spec
@@ -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
- - Kyle J. Ginavan
7
+ authors:
8
+ - Kyle J. Ginavan
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2009-07-09 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: shoulda
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 2.11.3
24
- - - <
25
- - !ruby/object:Gem::Version
26
- version: 2.12.0
27
- type: :development
28
- version_requirements: *id001
29
- - !ruby/object:Gem::Dependency
30
- name: mocha
31
- prerelease: false
32
- requirement: &id002 !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ">="
36
- - !ruby/object:Gem::Version
37
- version: 0.9.10
38
- - - <
39
- - !ruby/object:Gem::Version
40
- version: 0.10.0
41
- type: :development
42
- version_requirements: *id002
43
- - !ruby/object:Gem::Dependency
44
- name: activerecord
45
- prerelease: false
46
- requirement: &id003 !ruby/object:Gem::Requirement
47
- none: false
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- version: 2.3.0
52
- type: :development
53
- version_requirements: *id003
54
- - !ruby/object:Gem::Dependency
55
- name: activesupport
56
- prerelease: false
57
- requirement: &id004 !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 2.3.0
63
- type: :development
64
- version_requirements: *id004
65
- - !ruby/object:Gem::Dependency
66
- name: jeweler
67
- prerelease: false
68
- requirement: &id005 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: "0"
74
- type: :development
75
- version_requirements: *id005
76
- - !ruby/object:Gem::Dependency
77
- name: sqlite3-ruby
78
- prerelease: false
79
- requirement: &id006 !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: 1.3.2
85
- - - <
86
- - !ruby/object:Gem::Version
87
- version: 1.4.0
88
- type: :development
89
- version_requirements: *id006
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
- extra_rdoc_files:
97
- - README.rdoc
98
- - LICENSE
99
- files:
100
- - CHANGELOG.rdoc
101
- - README.rdoc
102
- - VERSION.yml
103
- - lib/factory_data_preloader/core_ext.rb
104
- - lib/factory_data_preloader/factory_data.rb
105
- - lib/factory_data_preloader/preloaded_data_hash.rb
106
- - lib/factory_data_preloader/preloader.rb
107
- - lib/factory_data_preloader/preloader_collection.rb
108
- - lib/factory_data_preloader/rails_core_ext.rb
109
- - lib/factory_data_preloader/railtie.rb
110
- - lib/factory_data_preloader.rb
111
- - test/factory_data_test.rb
112
- - test/lib/models.rb
113
- - test/lib/schema.rb
114
- - test/preloaded_data_hash_test.rb
115
- - test/preloader_test.rb
116
- - test/test_helper.rb
117
- - LICENSE
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
- - --inline-source
124
- - --charset=UTF-8
125
- require_paths:
126
- - lib
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
- - !ruby/object:Gem::Version
132
- version: "0"
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
- - !ruby/object:Gem::Version
138
- version: "0"
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
139
160
  requirements: []
140
-
141
161
  rubyforge_project:
142
- rubygems_version: 1.8.15
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.
data/VERSION.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :major: 1
3
- :minor: 0
4
- :patch: 0
5
- :build: 'beta0'