mince_migrator 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +20 -58
- data/bin/mince_migrator +125 -0
- data/lib/mince_migrator/cli_helper.rb +72 -0
- data/lib/mince_migrator/config.rb +30 -0
- data/lib/mince_migrator/creator.rb +48 -0
- data/lib/mince_migrator/deleter.rb +42 -0
- data/lib/mince_migrator/list.rb +46 -0
- data/lib/mince_migrator/list_report.rb +67 -0
- data/lib/mince_migrator/migration.rb +66 -0
- data/lib/mince_migrator/migrations/file.rb +74 -0
- data/lib/mince_migrator/migrations/loader.rb +52 -0
- data/lib/mince_migrator/migrations/name.rb +48 -0
- data/lib/mince_migrator/migrations/runner.rb +39 -0
- data/lib/mince_migrator/migrations/runner_validator.rb +47 -0
- data/lib/mince_migrator/migrations/template.mustache +24 -0
- data/lib/mince_migrator/migrations/template.rb +16 -0
- data/lib/mince_migrator/migrations/versioned_file.rb +38 -0
- data/lib/mince_migrator/ran_migration.rb +27 -0
- data/lib/mince_migrator/reverter.rb +57 -0
- data/lib/mince_migrator/status_report.rb +41 -0
- data/lib/mince_migrator/version.rb +18 -1
- data/lib/mince_migrator.rb +5 -4
- data/spec/integration/create_a_migration_spec.rb +57 -0
- data/spec/integration/deleting_a_migration_spec.rb +40 -0
- data/spec/integration/list_all_migrations_spec.rb +57 -0
- data/spec/integration/reverting_a_migration_spec.rb +59 -0
- data/spec/integration/running_a_migration_spec.rb +66 -0
- data/spec/integration_helper.rb +17 -0
- data/spec/support/db/a_second_migration.rb +24 -0
- data/spec/support/db/a_second_migration_2.rb +24 -0
- data/spec/support/db/create_seeded_admin_users.rb +24 -0
- data/spec/support/db/first_migration.rb +24 -0
- data/spec/support/db/first_migration_2.rb +24 -0
- data/spec/support/db/first_migration_3.rb +24 -0
- data/spec/support/db/first_migration_4.rb +24 -0
- data/spec/support/db/name_of_migration.rb +24 -0
- data/spec/support/invalid_interface_migration.rb +7 -0
- data/spec/support/not_a_migration.rb +2 -0
- data/spec/support/test_migration.rb +30 -0
- data/spec/units/mince_migrator/cli_helper_spec.rb +147 -0
- data/spec/units/mince_migrator/creator_spec.rb +80 -0
- data/spec/units/mince_migrator/deleter_spec.rb +52 -0
- data/spec/units/mince_migrator/list_spec.rb +53 -0
- data/spec/units/mince_migrator/migration_spec.rb +119 -0
- data/spec/units/mince_migrator/migrations/file_spec.rb +85 -0
- data/spec/units/mince_migrator/migrations/loader_spec.rb +47 -0
- data/spec/units/mince_migrator/migrations/name_spec.rb +47 -0
- data/spec/units/mince_migrator/migrations/runner_spec.rb +70 -0
- data/spec/units/mince_migrator/migrations/runner_validator_spec.rb +46 -0
- data/spec/units/mince_migrator/migrations/template_spec.rb +42 -0
- data/spec/units/mince_migrator/migrations/versioned_file_spec.rb +48 -0
- data/spec/units/mince_migrator/ran_migration_spec.rb +60 -0
- data/spec/units/mince_migrator/reverter_spec.rb +78 -0
- metadata +298 -26
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/Rakefile +0 -12
- data/mince_migrator.gemspec +0 -19
metadata
CHANGED
@@ -1,55 +1,327 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mince_migrator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matt Simpson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
13
|
-
dependencies:
|
14
|
-
|
15
|
-
|
11
|
+
date: 2013-05-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mince
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: gli
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mustache
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.99.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.99.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: command_line_reporter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: colored
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.2'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.9'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.9'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.6'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.6'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yard
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.7'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.7'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: redcarpet
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '2.1'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '2.1'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: debugger
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.2'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.2'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rb-fsevent
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.9.0
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ~>
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.9.0
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: hashy_db
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ~>
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '2.0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ~>
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '2.0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: mince_mongo_db
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ~>
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '1.0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ~>
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '1.0'
|
209
|
+
description: Provides the ability to write migrations for the mince gems
|
16
210
|
email:
|
17
|
-
- matt
|
18
|
-
executables:
|
211
|
+
- matt@railsgrammer.com
|
212
|
+
executables:
|
213
|
+
- mince_migrator
|
19
214
|
extensions: []
|
20
215
|
extra_rdoc_files: []
|
21
216
|
files:
|
22
|
-
-
|
23
|
-
-
|
217
|
+
- bin/mince_migrator
|
218
|
+
- lib/mince_migrator/cli_helper.rb
|
219
|
+
- lib/mince_migrator/config.rb
|
220
|
+
- lib/mince_migrator/creator.rb
|
221
|
+
- lib/mince_migrator/deleter.rb
|
222
|
+
- lib/mince_migrator/list.rb
|
223
|
+
- lib/mince_migrator/list_report.rb
|
224
|
+
- lib/mince_migrator/migration.rb
|
225
|
+
- lib/mince_migrator/migrations/file.rb
|
226
|
+
- lib/mince_migrator/migrations/loader.rb
|
227
|
+
- lib/mince_migrator/migrations/name.rb
|
228
|
+
- lib/mince_migrator/migrations/runner.rb
|
229
|
+
- lib/mince_migrator/migrations/runner_validator.rb
|
230
|
+
- lib/mince_migrator/migrations/template.mustache
|
231
|
+
- lib/mince_migrator/migrations/template.rb
|
232
|
+
- lib/mince_migrator/migrations/versioned_file.rb
|
233
|
+
- lib/mince_migrator/ran_migration.rb
|
234
|
+
- lib/mince_migrator/reverter.rb
|
235
|
+
- lib/mince_migrator/status_report.rb
|
236
|
+
- lib/mince_migrator/version.rb
|
237
|
+
- lib/mince_migrator.rb
|
24
238
|
- LICENSE.txt
|
25
239
|
- README.md
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
240
|
+
- spec/integration/create_a_migration_spec.rb
|
241
|
+
- spec/integration/deleting_a_migration_spec.rb
|
242
|
+
- spec/integration/list_all_migrations_spec.rb
|
243
|
+
- spec/integration/reverting_a_migration_spec.rb
|
244
|
+
- spec/integration/running_a_migration_spec.rb
|
245
|
+
- spec/integration_helper.rb
|
246
|
+
- spec/support/db/a_second_migration.rb
|
247
|
+
- spec/support/db/a_second_migration_2.rb
|
248
|
+
- spec/support/db/create_seeded_admin_users.rb
|
249
|
+
- spec/support/db/first_migration.rb
|
250
|
+
- spec/support/db/first_migration_2.rb
|
251
|
+
- spec/support/db/first_migration_3.rb
|
252
|
+
- spec/support/db/first_migration_4.rb
|
253
|
+
- spec/support/db/name_of_migration.rb
|
254
|
+
- spec/support/invalid_interface_migration.rb
|
255
|
+
- spec/support/not_a_migration.rb
|
256
|
+
- spec/support/test_migration.rb
|
257
|
+
- spec/units/mince_migrator/cli_helper_spec.rb
|
258
|
+
- spec/units/mince_migrator/creator_spec.rb
|
259
|
+
- spec/units/mince_migrator/deleter_spec.rb
|
260
|
+
- spec/units/mince_migrator/list_spec.rb
|
261
|
+
- spec/units/mince_migrator/migration_spec.rb
|
262
|
+
- spec/units/mince_migrator/migrations/file_spec.rb
|
263
|
+
- spec/units/mince_migrator/migrations/loader_spec.rb
|
264
|
+
- spec/units/mince_migrator/migrations/name_spec.rb
|
265
|
+
- spec/units/mince_migrator/migrations/runner_spec.rb
|
266
|
+
- spec/units/mince_migrator/migrations/runner_validator_spec.rb
|
267
|
+
- spec/units/mince_migrator/migrations/template_spec.rb
|
268
|
+
- spec/units/mince_migrator/migrations/versioned_file_spec.rb
|
269
|
+
- spec/units/mince_migrator/ran_migration_spec.rb
|
270
|
+
- spec/units/mince_migrator/reverter_spec.rb
|
30
271
|
homepage: https://github.com/coffeencoke/mince_migrator
|
31
|
-
licenses:
|
272
|
+
licenses:
|
273
|
+
- MIT
|
274
|
+
metadata: {}
|
32
275
|
post_install_message:
|
33
276
|
rdoc_options: []
|
34
277
|
require_paths:
|
35
278
|
- lib
|
36
279
|
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
280
|
requirements:
|
39
|
-
- -
|
281
|
+
- - '>='
|
40
282
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
283
|
+
version: 1.9.3
|
42
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
285
|
requirements:
|
45
|
-
- -
|
286
|
+
- - '>='
|
46
287
|
- !ruby/object:Gem::Version
|
47
288
|
version: '0'
|
48
289
|
requirements: []
|
49
|
-
rubyforge_project:
|
50
|
-
rubygems_version:
|
290
|
+
rubyforge_project: mince_migrator
|
291
|
+
rubygems_version: 2.0.3
|
51
292
|
signing_key:
|
52
|
-
specification_version:
|
53
|
-
summary:
|
54
|
-
test_files:
|
55
|
-
|
293
|
+
specification_version: 4
|
294
|
+
summary: Manages migrations for Mince gems
|
295
|
+
test_files:
|
296
|
+
- spec/integration/create_a_migration_spec.rb
|
297
|
+
- spec/integration/deleting_a_migration_spec.rb
|
298
|
+
- spec/integration/list_all_migrations_spec.rb
|
299
|
+
- spec/integration/reverting_a_migration_spec.rb
|
300
|
+
- spec/integration/running_a_migration_spec.rb
|
301
|
+
- spec/integration_helper.rb
|
302
|
+
- spec/support/db/a_second_migration.rb
|
303
|
+
- spec/support/db/a_second_migration_2.rb
|
304
|
+
- spec/support/db/create_seeded_admin_users.rb
|
305
|
+
- spec/support/db/first_migration.rb
|
306
|
+
- spec/support/db/first_migration_2.rb
|
307
|
+
- spec/support/db/first_migration_3.rb
|
308
|
+
- spec/support/db/first_migration_4.rb
|
309
|
+
- spec/support/db/name_of_migration.rb
|
310
|
+
- spec/support/invalid_interface_migration.rb
|
311
|
+
- spec/support/not_a_migration.rb
|
312
|
+
- spec/support/test_migration.rb
|
313
|
+
- spec/units/mince_migrator/cli_helper_spec.rb
|
314
|
+
- spec/units/mince_migrator/creator_spec.rb
|
315
|
+
- spec/units/mince_migrator/deleter_spec.rb
|
316
|
+
- spec/units/mince_migrator/list_spec.rb
|
317
|
+
- spec/units/mince_migrator/migration_spec.rb
|
318
|
+
- spec/units/mince_migrator/migrations/file_spec.rb
|
319
|
+
- spec/units/mince_migrator/migrations/loader_spec.rb
|
320
|
+
- spec/units/mince_migrator/migrations/name_spec.rb
|
321
|
+
- spec/units/mince_migrator/migrations/runner_spec.rb
|
322
|
+
- spec/units/mince_migrator/migrations/runner_validator_spec.rb
|
323
|
+
- spec/units/mince_migrator/migrations/template_spec.rb
|
324
|
+
- spec/units/mince_migrator/migrations/versioned_file_spec.rb
|
325
|
+
- spec/units/mince_migrator/ran_migration_spec.rb
|
326
|
+
- spec/units/mince_migrator/reverter_spec.rb
|
327
|
+
has_rdoc: true
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'rake'
|
3
|
-
require 'rspec/core/rake_task'
|
4
|
-
|
5
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
6
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
7
|
-
spec.rspec_opts = ['--backtrace']
|
8
|
-
# spec.ruby_opts = ['-w']
|
9
|
-
end
|
10
|
-
|
11
|
-
task :default => :spec
|
12
|
-
|
data/mince_migrator.gemspec
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'mince_migrator/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |gem|
|
7
|
-
gem.name = "mince_migrator"
|
8
|
-
gem.version = MinceMigrator::VERSION
|
9
|
-
gem.authors = ["Matt Simpson"]
|
10
|
-
gem.email = ["matt.simpson3@gmail.com"]
|
11
|
-
gem.description = %q{Mince Migrator is a library that provides a way to run database migrations for your application using the Mince libraries}
|
12
|
-
gem.summary = %q{Provides the ability to write migrations for the mince gems}
|
13
|
-
gem.homepage = "https://github.com/coffeencoke/mince_migrator"
|
14
|
-
|
15
|
-
gem.files = `git ls-files`.split($/)
|
16
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
-
gem.require_paths = ["lib"]
|
19
|
-
end
|