visual_migrate 4.0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +1 -0
- data/Rakefile +34 -0
- data/app/assets/images/visual_migrate/bg_pagetop.gif +0 -0
- data/app/assets/javascripts/common.js +21 -0
- data/app/assets/javascripts/jquery.cookie.js +95 -0
- data/app/assets/javascripts/jquery.js +4 -0
- data/app/assets/javascripts/visual_migrate/application.js +13 -0
- data/app/assets/javascripts/visual_migrate/dialog.js +2 -0
- data/app/assets/javascripts/visual_migrate/index.js +2 -0
- data/app/assets/javascripts/vm-application.js +35 -0
- data/app/assets/stylesheets/visual_migrate/application.css +13 -0
- data/app/assets/stylesheets/visual_migrate/dialog.css +4 -0
- data/app/assets/stylesheets/visual_migrate/index.css +4 -0
- data/app/assets/stylesheets/vm-application.css +40 -0
- data/app/assets/stylesheets/vm-common.css +335 -0
- data/app/assets/template/sim003_blue.zip +0 -0
- data/app/assets/template/sim003_blue/src/css/common.css +329 -0
- data/app/assets/template/sim003_blue/src/images/bg_pagetop.gif +0 -0
- data/app/assets/template/sim003_blue/src/index.html +153 -0
- data/app/assets/template/sim003_blue/src/js/common.js +21 -0
- data/app/assets/template/sim003_blue/src/js/jquery.js +4 -0
- data/app/controllers/visual_migrate/application_controller.rb +5 -0
- data/app/controllers/visual_migrate/dialog_controller.rb +9 -0
- data/app/controllers/visual_migrate/index_controller.rb +174 -0
- data/app/helpers/visual_migrate/application_helper.rb +97 -0
- data/app/helpers/visual_migrate/dialog_helper.rb +4 -0
- data/app/helpers/visual_migrate/index_helper.rb +4 -0
- data/app/models/schema_migration.rb +2 -0
- data/app/views/layouts/visual_migrate/_columns.html.erb +133 -0
- data/app/views/layouts/visual_migrate/_func_add_column.html.erb +24 -0
- data/app/views/layouts/visual_migrate/_func_add_index.html.erb +20 -0
- data/app/views/layouts/visual_migrate/_func_add_timestamps.html.erb +8 -0
- data/app/views/layouts/visual_migrate/_func_change_column.html.erb +24 -0
- data/app/views/layouts/visual_migrate/_func_change_column_default.html.erb +12 -0
- data/app/views/layouts/visual_migrate/_func_create_table.html.erb +33 -0
- data/app/views/layouts/visual_migrate/_func_drop_table.html.erb +8 -0
- data/app/views/layouts/visual_migrate/_func_remove_column.html.erb +9 -0
- data/app/views/layouts/visual_migrate/_func_remove_index.html.erb +17 -0
- data/app/views/layouts/visual_migrate/_func_remove_timestamps.html.erb +8 -0
- data/app/views/layouts/visual_migrate/_func_rename_column.html.erb +12 -0
- data/app/views/layouts/visual_migrate/_func_rename_index.html.erb +10 -0
- data/app/views/layouts/visual_migrate/_func_rename_table.html.erb +9 -0
- data/app/views/layouts/visual_migrate/_migration_class.html.erb +20 -0
- data/app/views/layouts/visual_migrate/_migration_method.html.erb +40 -0
- data/app/views/layouts/visual_migrate/application.html.erb +68 -0
- data/app/views/layouts/visual_migrate/dialog.html.erb +28 -0
- data/app/views/visual_migrate/dialog/add_new_func.html.erb +45 -0
- data/app/views/visual_migrate/index/_section_migrations.html.erb +19 -0
- data/app/views/visual_migrate/index/_section_tables.html.erb +10 -0
- data/app/views/visual_migrate/index/command_line.html.erb +34 -0
- data/app/views/visual_migrate/index/direct_edit.html.erb +9 -0
- data/app/views/visual_migrate/index/edit_migration.html.erb +15 -0
- data/app/views/visual_migrate/index/modify_table.html.erb +1 -0
- data/config/routes.rb +70 -0
- data/lib/class_filter.rb +126 -0
- data/lib/func_filter.rb +560 -0
- data/lib/method_filter.rb +104 -0
- data/lib/migration_defs.rb +626 -0
- data/lib/tasks/visual-migrate_tasks.rake +4 -0
- data/lib/tasks/visual_migrate_tasks.rake +4 -0
- data/lib/visual_migrate.rb +6 -0
- data/lib/visual_migrate/activerecord.rb +23 -0
- data/lib/visual_migrate/engine.rb +5 -0
- data/lib/visual_migrate/migration.rb +15 -0
- data/lib/visual_migrate/version.rb +3 -0
- data/lib/visual_migrate_ripper.rb +157 -0
- data/test/dummy/Gemfile +84 -0
- data/test/dummy/Gemfile.lock +218 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/javascripts/index.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/index.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/index_controller.rb +9 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/index_helper.rb +2 -0
- data/test/dummy/app/models/test_table.rb +2 -0
- data/test/dummy/app/views/index/index.html.erb +23 -0
- data/test/dummy/app/views/layouts/application.html.erb +43 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +30 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +6 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131006135044_create_test_tables.rb +9 -0
- data/test/dummy/db/migrate/20131007030825_add_column_test_table.rb +13 -0
- data/test/dummy/db/migrate/20131026214458_rename_column_test_table.rb +5 -0
- data/test/dummy/db/migrate/20131030105601_change_column_test.rb +10 -0
- data/test/dummy/db/migrate/20131104225745_index_test.rb +9 -0
- data/test/dummy/db/migrate/20131105025821_rename_index_test.rb +5 -0
- data/test/dummy/db/migrate/20131105042853_remove_timestamps_test.rb +9 -0
- data/test/dummy/db/schema.rb +28 -0
- data/test/dummy/db/seeds.rb +20 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +90374 -0
- data/test/dummy/log/production.log +329 -0
- data/test/dummy/log/test.log +489 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/index.html.bak +38 -0
- data/test/dummy/spec/controllers/index_controller_spec.rb +19 -0
- data/test/dummy/spec/spec_helper.rb +46 -0
- data/test/dummy/spec/views/index/index.html.erb_spec.rb +17 -0
- data/test/dummy/test/controllers/index_controller_test.rb +7 -0
- data/test/dummy/test/fixtures/test_tables.yml +11 -0
- data/test/dummy/test/helpers/index_helper_test.rb +4 -0
- data/test/dummy/test/models/test_table_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/021fe5e1eadff30885806b7245f7e66e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0a9126be05e74d1b89f024c687b7dbfd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0b682b760de6f7c47a7236f024fee55d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0caf4a7a233e329f7d3bfe3fc2f37910 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0e059cd92931990c10b6c5b78014ec92 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/178af67c2277a751289e81fc2f96dc7d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/18650e945a1a2ad87b3d8997d1ccac10 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/19bf9cd3f01562cdecb4b5c825c8f36d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1b5f6c8780c3fcb34d2bbbabe38c3d94 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1df2ccc1ade2cfe4a9d0ce8b0ec2dadf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/272853fd0642f08e38174a609a2be457 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2aff43fdd4d59cb6a75288268ec363ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2c853768baf811357d81d41bdfd05dcf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/314d48e543146f617c4d3439a4d8d40d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/320853225bbf3512349dc1ef4ea80874 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32f1a742d35f7250e984b1de0554a894 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3807e3adca7677de6842a8048ad6d83b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/42ad84505ad8dfc0a4a724e8c889c607 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/46c5c46e37f5a22449050d7fc6f1dc26 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4fbe2f2c44de1e405b3562e4935176b9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/52d191f68c69ae795e8da63ef51ca640 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/54cf088ee215412d3800d9b1e0263c30 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/55165e8d7dcda66caf51df6c6417142d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/576fe10a40538bd3999a2b1b3fe334d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5793e837a2934ce3b84aac8785a874ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5900a8937fa5118d2a6ee8289614c854 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a9053557c1035de31eb2162db5b9d34 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5df80a6ab7f25724f11ce3179173ad60 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6373000f4849668f51493aaf8503c8e8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/65048e3e4fd096e06f7ca69a5af7ab9f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6bb983076781d92edbb1da256023c14b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6dfaf2d0d571c61e96bce5377fcddf7f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6efc50a7f372f50e09a67daa7ac00940 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6f7dfedc6e14ea8772e0284497539f90 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/70f64d1c4421c935f01a8d5aa647d792 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7999e525c88173c1beb785f002effc1d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7c188f2b1cb38e1b55dc8a8bb8785fe8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7d48e39953ffcdd70751e98d08d1282c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7ddca3ef38a810d93ddc026ee5fa7959 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7fecd8a0b0c56f928c31450f839c4731 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/842d637730ce4255c6beacff60b80157 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/89cd476f554d26de50608ac9ce6d0606 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9519989fc45811670fa6b1184fedecc7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/99cdbaecd1b34008d0853764ec707246 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a093237e72888c88a730f537a544e03b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a7c148cd78906c44016fdeb236569b5b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a83bebd10c561b2264affb4ed6a9f83b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b3ed09e62124bd9cf5f7a1ac14298d4f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/be45f47d31b8e7fd54a0b6087eeaf5de +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c00bfe3da0096cbd0434a6c66262fe23 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c78109332f6461183a94718da0068da6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cee8c6b09c33d2b276753e959712724e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d08ae02c560f15a5cb4d0447b0da29ad +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d990155237ca59ccb96cf2253f8059ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/df600f50f002512c95d93bcfbab891ed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e2a3afc837465539886843291aedd0f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eb7b0ec5bff36142ba070d1a39e194b1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f3aee0380718ef20b2e587a842ce697e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f408c68444462a9ae2effa5230b43edf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f898358aceb33227eb4403237acca034 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc7201c6cbef32453aa4175c520c8eae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fca81105f7109a6a96f05aedd0f1b883 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fdd7a6a4d56761d6463b3c34768fbc78 +0 -0
- data/test/dummy/tmp/restart.txt +0 -0
- data/test/dummy/tmp/visual-migrate_tmp.rb +5 -0
- data/test/dummy/tmp/visual_migrate_tmp.rb +10 -0
- data/test/fixtures/visual_migrate/schema_migrations.yml +11 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/models/visual_migrate/schema_migration_test.rb +9 -0
- data/test/test_helper.rb +15 -0
- data/test/visual_migrate_test.rb +7 -0
- metadata +487 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
|
5
|
+
<style>
|
|
6
|
+
body {
|
|
7
|
+
background-color: #EFEFEF;
|
|
8
|
+
color: #2E2F30;
|
|
9
|
+
text-align: center;
|
|
10
|
+
font-family: arial, sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
div.dialog {
|
|
14
|
+
width: 25em;
|
|
15
|
+
margin: 4em auto 0 auto;
|
|
16
|
+
border: 1px solid #CCC;
|
|
17
|
+
border-right-color: #999;
|
|
18
|
+
border-left-color: #999;
|
|
19
|
+
border-bottom-color: #BBB;
|
|
20
|
+
border-top: #B00100 solid 4px;
|
|
21
|
+
border-top-left-radius: 9px;
|
|
22
|
+
border-top-right-radius: 9px;
|
|
23
|
+
background-color: white;
|
|
24
|
+
padding: 7px 4em 0 4em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h1 {
|
|
28
|
+
font-size: 100%;
|
|
29
|
+
color: #730E15;
|
|
30
|
+
line-height: 1.5em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body > p {
|
|
34
|
+
width: 33em;
|
|
35
|
+
margin: 0 auto 1em;
|
|
36
|
+
padding: 1em 0;
|
|
37
|
+
background-color: #F7F7F7;
|
|
38
|
+
border: 1px solid #CCC;
|
|
39
|
+
border-right-color: #999;
|
|
40
|
+
border-bottom-color: #999;
|
|
41
|
+
border-bottom-left-radius: 4px;
|
|
42
|
+
border-bottom-right-radius: 4px;
|
|
43
|
+
border-top-color: #DADADA;
|
|
44
|
+
color: #666;
|
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
48
|
+
</head>
|
|
49
|
+
|
|
50
|
+
<body>
|
|
51
|
+
<!-- This file lives in public/404.html -->
|
|
52
|
+
<div class="dialog">
|
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
|
55
|
+
</div>
|
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
57
|
+
</body>
|
|
58
|
+
</html>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
|
5
|
+
<style>
|
|
6
|
+
body {
|
|
7
|
+
background-color: #EFEFEF;
|
|
8
|
+
color: #2E2F30;
|
|
9
|
+
text-align: center;
|
|
10
|
+
font-family: arial, sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
div.dialog {
|
|
14
|
+
width: 25em;
|
|
15
|
+
margin: 4em auto 0 auto;
|
|
16
|
+
border: 1px solid #CCC;
|
|
17
|
+
border-right-color: #999;
|
|
18
|
+
border-left-color: #999;
|
|
19
|
+
border-bottom-color: #BBB;
|
|
20
|
+
border-top: #B00100 solid 4px;
|
|
21
|
+
border-top-left-radius: 9px;
|
|
22
|
+
border-top-right-radius: 9px;
|
|
23
|
+
background-color: white;
|
|
24
|
+
padding: 7px 4em 0 4em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h1 {
|
|
28
|
+
font-size: 100%;
|
|
29
|
+
color: #730E15;
|
|
30
|
+
line-height: 1.5em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body > p {
|
|
34
|
+
width: 33em;
|
|
35
|
+
margin: 0 auto 1em;
|
|
36
|
+
padding: 1em 0;
|
|
37
|
+
background-color: #F7F7F7;
|
|
38
|
+
border: 1px solid #CCC;
|
|
39
|
+
border-right-color: #999;
|
|
40
|
+
border-bottom-color: #999;
|
|
41
|
+
border-bottom-left-radius: 4px;
|
|
42
|
+
border-bottom-right-radius: 4px;
|
|
43
|
+
border-top-color: #DADADA;
|
|
44
|
+
color: #666;
|
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
48
|
+
</head>
|
|
49
|
+
|
|
50
|
+
<body>
|
|
51
|
+
<!-- This file lives in public/422.html -->
|
|
52
|
+
<div class="dialog">
|
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
55
|
+
</div>
|
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
57
|
+
</body>
|
|
58
|
+
</html>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
|
5
|
+
<style>
|
|
6
|
+
body {
|
|
7
|
+
background-color: #EFEFEF;
|
|
8
|
+
color: #2E2F30;
|
|
9
|
+
text-align: center;
|
|
10
|
+
font-family: arial, sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
div.dialog {
|
|
14
|
+
width: 25em;
|
|
15
|
+
margin: 4em auto 0 auto;
|
|
16
|
+
border: 1px solid #CCC;
|
|
17
|
+
border-right-color: #999;
|
|
18
|
+
border-left-color: #999;
|
|
19
|
+
border-bottom-color: #BBB;
|
|
20
|
+
border-top: #B00100 solid 4px;
|
|
21
|
+
border-top-left-radius: 9px;
|
|
22
|
+
border-top-right-radius: 9px;
|
|
23
|
+
background-color: white;
|
|
24
|
+
padding: 7px 4em 0 4em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h1 {
|
|
28
|
+
font-size: 100%;
|
|
29
|
+
color: #730E15;
|
|
30
|
+
line-height: 1.5em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body > p {
|
|
34
|
+
width: 33em;
|
|
35
|
+
margin: 0 auto 1em;
|
|
36
|
+
padding: 1em 0;
|
|
37
|
+
background-color: #F7F7F7;
|
|
38
|
+
border: 1px solid #CCC;
|
|
39
|
+
border-right-color: #999;
|
|
40
|
+
border-bottom-color: #999;
|
|
41
|
+
border-bottom-left-radius: 4px;
|
|
42
|
+
border-bottom-right-radius: 4px;
|
|
43
|
+
border-top-color: #DADADA;
|
|
44
|
+
color: #666;
|
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
48
|
+
</head>
|
|
49
|
+
|
|
50
|
+
<body>
|
|
51
|
+
<!-- This file lives in public/500.html -->
|
|
52
|
+
<div class="dialog">
|
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
|
54
|
+
</div>
|
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
56
|
+
</body>
|
|
57
|
+
</html>
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
|
6
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
7
|
+
<meta http-equiv="imagetoolbar" content="no" />
|
|
8
|
+
<meta name="description" content="" />
|
|
9
|
+
<meta name="keywords" content="" />
|
|
10
|
+
<title>VisualMigrate Dummy Project</title>
|
|
11
|
+
<!--[if lt IE 7]>
|
|
12
|
+
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
|
|
13
|
+
<![endif]-->
|
|
14
|
+
<link href="/assets/common.css?body=1" media="all" rel="stylesheet" type="text/css" />
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<div id="top">
|
|
19
|
+
<div id="header">
|
|
20
|
+
<h1><a href="/visual_migrate/">VisualMigrate</a></h1>
|
|
21
|
+
<!-- /#header --></div>
|
|
22
|
+
<!--div id="topicPath">
|
|
23
|
+
<a href="index.html">ホーム</a> » カテゴリ » ページ
|
|
24
|
+
</div-->
|
|
25
|
+
<div id="contents">
|
|
26
|
+
<div id="main">
|
|
27
|
+
<p>
|
|
28
|
+
DummyProject
|
|
29
|
+
</p>
|
|
30
|
+
<!-- /#main --></div>
|
|
31
|
+
<!-- /#contents --></div>
|
|
32
|
+
<div id="footer">
|
|
33
|
+
<div class="copyright">Copyright © 2013 VisualMigrate project.</div>
|
|
34
|
+
<!-- /#footer --></div>
|
|
35
|
+
<!-- /#top --></div>
|
|
36
|
+
|
|
37
|
+
</body>
|
|
38
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# -*- coding:utf-8 -*-
|
|
2
|
+
require 'spec_helper'
|
|
3
|
+
|
|
4
|
+
describe IndexController do
|
|
5
|
+
describe 'マイグレート前のindex#indexは、' do
|
|
6
|
+
before do
|
|
7
|
+
get :index
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
it "status 200であること" do
|
|
11
|
+
response.status.should be(200)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it "index#indexを描画すること" do
|
|
15
|
+
response.should render_template("index")
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
|
3
|
+
require File.expand_path("../../config/environment", __FILE__)
|
|
4
|
+
require 'rspec/rails'
|
|
5
|
+
require 'rspec/autorun'
|
|
6
|
+
require 'capybara'
|
|
7
|
+
|
|
8
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
9
|
+
# in spec/support/ and its subdirectories.
|
|
10
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
11
|
+
|
|
12
|
+
# Checks for pending migrations before tests are run.
|
|
13
|
+
# If you are not using ActiveRecord, you can remove this line.
|
|
14
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
|
15
|
+
|
|
16
|
+
RSpec.configure do |config|
|
|
17
|
+
# ## Mock Framework
|
|
18
|
+
#
|
|
19
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
|
20
|
+
#
|
|
21
|
+
# config.mock_with :mocha
|
|
22
|
+
# config.mock_with :flexmock
|
|
23
|
+
# config.mock_with :rr
|
|
24
|
+
|
|
25
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
26
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
27
|
+
|
|
28
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
|
29
|
+
# examples within a transaction, remove the following line or assign false
|
|
30
|
+
# instead of true.
|
|
31
|
+
config.use_transactional_fixtures = true
|
|
32
|
+
|
|
33
|
+
# If true, the base class of anonymous controllers will be inferred
|
|
34
|
+
# automatically. This will be the default behavior in future versions of
|
|
35
|
+
# rspec-rails.
|
|
36
|
+
config.infer_base_class_for_anonymous_controllers = false
|
|
37
|
+
|
|
38
|
+
# Run specs in random order to surface order dependencies. If you find an
|
|
39
|
+
# order dependency and want to debug it, you can fix the order by providing
|
|
40
|
+
# the seed, which is printed after each run.
|
|
41
|
+
# --seed 1234
|
|
42
|
+
config.order = "random"
|
|
43
|
+
|
|
44
|
+
config.include Capybara::DSL
|
|
45
|
+
|
|
46
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# -*- coding:utf-8 -*-
|
|
2
|
+
require 'spec_helper'
|
|
3
|
+
|
|
4
|
+
describe 'index/index.html.erb' do
|
|
5
|
+
before do
|
|
6
|
+
visit '/index/index/'
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
it "著作権を表示すること" do
|
|
10
|
+
expect(page).to.should have_content('Copyright © 2013 VisualMigrate project.')
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it "tableを表示しないこと" do
|
|
14
|
+
expect(page).to.should_not have_tag('table')
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
2
|
+
|
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
|
5
|
+
# below each fixture, per the syntax in the comments below
|
|
6
|
+
#
|
|
7
|
+
one: {}
|
|
8
|
+
# column: value
|
|
9
|
+
#
|
|
10
|
+
two: {}
|
|
11
|
+
# column: value
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|