seedbank 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/seedbank.rb +1 -3
- data/lib/seedbank/dsl.rb +5 -0
- data/lib/seedbank/{task.rb → rename_task.rb} +1 -1
- data/lib/seedbank/version.rb +1 -1
- data/lib/tasks/seed.rake +0 -2
- metadata +154 -137
data/README.md
CHANGED
data/lib/seedbank.rb
CHANGED
data/lib/seedbank/dsl.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
module Seedbank
|
2
2
|
module DSL
|
3
3
|
|
4
|
+
def self.included(base)
|
5
|
+
Rake::Task.extend(Seedbank::RenameTask)
|
6
|
+
Rake::Application.send(:include, Seedbank::TaskManager)
|
7
|
+
end
|
8
|
+
|
4
9
|
def override_task(*args, &block)
|
5
10
|
name, params, deps = Rake.application.resolve_args(args.dup)
|
6
11
|
fq_name = Rake.application.instance_variable_get(:@scope).dup.push(name).join(':')
|
data/lib/seedbank/version.rb
CHANGED
data/lib/tasks/seed.rake
CHANGED
metadata
CHANGED
@@ -1,155 +1,172 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: seedbank
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
7
|
+
authors:
|
8
|
+
- James McCarthy
|
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
|
-
|
12
|
+
date: 2012-03-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: minitest
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.2'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: flexmock
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 3.2.6
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.2.6
|
62
|
+
description: ! "\n Extends Rails seeds to split out complex seeds into multiple\n
|
63
|
+
\ files and lets each environment have it's own seeds.\n "
|
49
64
|
email: james2mccarthy@gmail.com
|
50
65
|
executables: []
|
51
|
-
|
52
66
|
extensions: []
|
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
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
- test/test_helper.rb
|
67
|
+
extra_rdoc_files:
|
68
|
+
- MIT-LICENSE
|
69
|
+
- README.md
|
70
|
+
files:
|
71
|
+
- .gitignore
|
72
|
+
- .travis.yml
|
73
|
+
- Gemfile
|
74
|
+
- MIT-LICENSE
|
75
|
+
- README.md
|
76
|
+
- Rakefile
|
77
|
+
- TODO.txt
|
78
|
+
- lib/seedbank.rb
|
79
|
+
- lib/seedbank/dsl.rb
|
80
|
+
- lib/seedbank/railtie.rb
|
81
|
+
- lib/seedbank/rename_task.rb
|
82
|
+
- lib/seedbank/runner.rb
|
83
|
+
- lib/seedbank/task_manager.rb
|
84
|
+
- lib/seedbank/version.rb
|
85
|
+
- lib/tasks/seed.rake
|
86
|
+
- seedbank.gemspec
|
87
|
+
- test/dummy/Rakefile
|
88
|
+
- test/dummy/app/controllers/application_controller.rb
|
89
|
+
- test/dummy/app/models/fake_model.rb
|
90
|
+
- test/dummy/config.ru
|
91
|
+
- test/dummy/config/application.rb
|
92
|
+
- test/dummy/config/boot.rb
|
93
|
+
- test/dummy/config/database.yml
|
94
|
+
- test/dummy/config/environment.rb
|
95
|
+
- test/dummy/config/environments/development.rb
|
96
|
+
- test/dummy/config/environments/test.rb
|
97
|
+
- test/dummy/config/initializers/secret_token.rb
|
98
|
+
- test/dummy/config/initializers/session_store.rb
|
99
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
100
|
+
- test/dummy/config/locales/en.yml
|
101
|
+
- test/dummy/config/routes.rb
|
102
|
+
- test/dummy/db/seeds.rb
|
103
|
+
- test/dummy/db/seeds/circular1.seeds.rb
|
104
|
+
- test/dummy/db/seeds/circular2.seeds.rb
|
105
|
+
- test/dummy/db/seeds/dependency.seeds.rb
|
106
|
+
- test/dummy/db/seeds/dependency2.seeds.rb
|
107
|
+
- test/dummy/db/seeds/dependent.seeds.rb
|
108
|
+
- test/dummy/db/seeds/dependent_on_nested.seeds.rb
|
109
|
+
- test/dummy/db/seeds/dependent_on_several.seeds.rb
|
110
|
+
- test/dummy/db/seeds/no_block.seeds.rb
|
111
|
+
- test/dummy/script/rails
|
112
|
+
- test/seedbank/runner_test.rb
|
113
|
+
- test/test_helper.rb
|
101
114
|
homepage: http://github.com/james2m/seedbank
|
102
115
|
licenses: []
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
116
|
+
post_install_message: ! "\n ================================================================================\n\n
|
117
|
+
\ Rails 2.x\n ---------\n If you are using Seedbank with Rails 2.x you will need
|
118
|
+
to place the following at \n the end of your Rakefile so Rubygems can load the
|
119
|
+
seedbank tasks;\n\n require 'seedbank'\n Seedbank.load_tasks if defined?(Seedbank)\n\n
|
120
|
+
\ Rails 3.x\n ---------\n Your work here is done!\n\n ================================================================================\n
|
121
|
+
\ "
|
122
|
+
rdoc_options:
|
123
|
+
- --charset=UTF-8
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
127
|
none: false
|
111
|
-
requirements:
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
133
|
none: false
|
117
|
-
requirements:
|
118
|
-
|
119
|
-
|
120
|
-
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 1.2.0
|
121
138
|
requirements: []
|
122
|
-
|
123
139
|
rubyforge_project:
|
124
140
|
rubygems_version: 1.8.24
|
125
141
|
signing_key:
|
126
142
|
specification_version: 3
|
127
|
-
summary: Extends Rails seeds to split out complex seeds into their own file and have
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
143
|
+
summary: Extends Rails seeds to split out complex seeds into their own file and have
|
144
|
+
different seeds for each environment.
|
145
|
+
test_files:
|
146
|
+
- test/dummy/Rakefile
|
147
|
+
- test/dummy/app/controllers/application_controller.rb
|
148
|
+
- test/dummy/app/models/fake_model.rb
|
149
|
+
- test/dummy/config.ru
|
150
|
+
- test/dummy/config/application.rb
|
151
|
+
- test/dummy/config/boot.rb
|
152
|
+
- test/dummy/config/database.yml
|
153
|
+
- test/dummy/config/environment.rb
|
154
|
+
- test/dummy/config/environments/development.rb
|
155
|
+
- test/dummy/config/environments/test.rb
|
156
|
+
- test/dummy/config/initializers/secret_token.rb
|
157
|
+
- test/dummy/config/initializers/session_store.rb
|
158
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
159
|
+
- test/dummy/config/locales/en.yml
|
160
|
+
- test/dummy/config/routes.rb
|
161
|
+
- test/dummy/db/seeds.rb
|
162
|
+
- test/dummy/db/seeds/circular1.seeds.rb
|
163
|
+
- test/dummy/db/seeds/circular2.seeds.rb
|
164
|
+
- test/dummy/db/seeds/dependency.seeds.rb
|
165
|
+
- test/dummy/db/seeds/dependency2.seeds.rb
|
166
|
+
- test/dummy/db/seeds/dependent.seeds.rb
|
167
|
+
- test/dummy/db/seeds/dependent_on_nested.seeds.rb
|
168
|
+
- test/dummy/db/seeds/dependent_on_several.seeds.rb
|
169
|
+
- test/dummy/db/seeds/no_block.seeds.rb
|
170
|
+
- test/dummy/script/rails
|
171
|
+
- test/seedbank/runner_test.rb
|
172
|
+
- test/test_helper.rb
|