simple_dragonfly_preview 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +32 -0
- data/app/assets/images/simple_dragonfly_preview/default.png +0 -0
- data/app/assets/images/simple_dragonfly_preview/spinner.png +0 -0
- data/app/controllers/simple_dragonfly_preview/image_controller.rb +16 -0
- data/app/inputs/image_preview_input.rb +17 -0
- data/app/views/simple_dragonfly_preview/image/_form.html.erb +19 -0
- data/app/views/simple_dragonfly_preview/image/iframe.html.erb +26 -0
- data/config/routes.rb +6 -0
- data/lib/simple_dragonfly_preview/engine.rb +6 -0
- data/lib/simple_dragonfly_preview/version.rb +3 -0
- data/lib/simple_dragonfly_preview.rb +4 -0
- data/lib/tasks/simple_dragonfly_preview_tasks.rake +4 -0
- data/test/controllers/image_preview_controller_test.rb +7 -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/users.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/assets/stylesheets/users.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/users_controller.rb +58 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/users_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +5 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/users/_form.html.erb +22 -0
- data/test/dummy/app/views/users/edit.html.erb +6 -0
- data/test/dummy/app/views/users/index.html.erb +31 -0
- data/test/dummy/app/views/users/new.html.erb +5 -0
- data/test/dummy/app/views/users/show.html.erb +19 -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/application.rb +24 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -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/dragonfly.rb +1 -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/simple_form.rb +145 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/locales/simple_form.en.yml +26 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131106190012_create_users.rb +11 -0
- data/test/dummy/db/schema.rb +24 -0
- data/test/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/test/dummy/log/development.log +4065 -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/system/dragonfly/development/2013/11/06/17_17_07_379_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/17_17_07_379_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/19_47_44_909_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/19_47_44_909_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_02_19_732_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_02_19_732_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_05_04_413_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_05_04_413_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_11_27_417_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_11_27_417_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_12_04_402_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_12_04_402_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_13_31_438_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_13_31_438_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_14_00_53_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_14_00_53_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_14_53_100_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_14_53_100_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_20_26_483_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_20_26_483_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_23_29_213_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_23_29_213_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_24_09_631_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_24_09_631_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_30_19_219_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_30_19_219_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_30_36_584_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_30_36_584_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_48_08_938_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/20_48_08_938_file.meta +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/21_31_39_624_file +0 -0
- data/test/dummy/public/system/dragonfly/development/2013/11/06/21_31_39_624_file.meta +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/87b209c0c9da28094a8d5581a21262c6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8cecc47a3ddd0a9848bf1d1cbe60383d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bbcddcc7335ba72d83d17571509087ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cebc6db0bbb8120f430da3970b173d2f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/58/b6fa2d2a74a3ef1fea5845ac9573e2d25f5286 +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/7b/32780ab9b84841f36f1576b37a0cd5476252d4 +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/83/304fe1783b6b597cee1dd99a53c9184cb96e5d +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/cc/a80f62f140fe784594a1ce19e96084f6e4770c +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/f6/4b1a2917301497c041917973f735ed587195b9 +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/f6/f56b06a206c11d9093474da07df840bf5ea613 +0 -0
- data/test/dummy/tmp/dragonfly/cache/body/f7/9d14e20c87fa050f16093012c5ea8d815626f9 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/01/e17596e376d0db6d720322f860991275563642 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/03/7a3dcab9043427874569c1f414ba35600d2c36 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/0c/8799b7bd12cf2b3645e38245ced7829d14f106 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/12/65e1ff41d2014dea8a39a8de17a99be8d2f581 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/14/757d5b9e46a9079107921e45ffe2bc96720eb5 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/2a/9077525d0d3b2430a7792085fd18cb329deda0 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/2d/1b0e400901a88a4bb203208c4b8d55a28312ee +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/33/c4106eaf95f852b802f2f16b293db599b59f0e +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/62/9a4d46f66e07fcaa95abfa10ba28e620453c27 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/6f/9a6334a80e6d672ea03cf3021dc2240ca41f74 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/73/e422186fab924ced8a5191a5c61e9d0a9e6cf6 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/95/dce4906519fc41c551c82122a43a4e7c6471a7 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/a6/3d35e5d8ca31cdd7f4d357f0094e1e3e07bc23 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/a7/c81c66c7e20b6cf2dff682a7f8191d233983d9 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/ab/f78311e13b624fbd7162145233dafe5669e05e +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/af/2eda96ffffa526ea422e0aa89603ada5311939 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/d4/9b42d53788ac422a69911bde13971ffa91ce66 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/e5/b9dbb1462a34c756f8a2e6a0ead7fd2d35ba2f +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/ef/62aeb6dfe3d09905fb65647fba51728b0cdfb8 +0 -0
- data/test/dummy/tmp/dragonfly/cache/meta/f6/254e02b41e832883906facda80b957356c48bf +0 -0
- data/test/helpers/image_preview_helper_test.rb +4 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/simple_dragonfly_preview_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +360 -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
|
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
|
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
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|