family_gallery 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/README.md +41 -0
- data/Rakefile +22 -0
- data/app/assets/javascripts/family_gallery/application.js.coffee +5 -0
- data/app/assets/javascripts/family_gallery/locales.js.coffee +7 -0
- data/app/assets/javascripts/family_gallery/pictures.js.coffee +16 -0
- data/app/assets/javascripts/family_gallery/user_taggings.js.coffee +30 -0
- data/app/assets/stylesheets/family_gallery/application.css.scss +6 -0
- data/app/assets/stylesheets/family_gallery/groups.css.scss +0 -0
- data/app/assets/stylesheets/family_gallery/layout.css.scss +116 -0
- data/app/assets/stylesheets/family_gallery/pictures.css.scss +32 -0
- data/app/assets/stylesheets/family_gallery/user_taggings.css.scss +19 -0
- data/app/controllers/family_gallery/base_controller.rb +14 -0
- data/app/controllers/family_gallery/groups_controller.rb +17 -0
- data/app/controllers/family_gallery/locales_controller.rb +8 -0
- data/app/controllers/family_gallery/pictures_controller.rb +29 -0
- data/app/controllers/family_gallery/resources_controller.rb +87 -0
- data/app/controllers/family_gallery/sessions_controller.rb +4 -0
- data/app/controllers/family_gallery/user_taggings_controller.rb +41 -0
- data/app/controllers/family_gallery/users_controller.rb +4 -0
- data/app/controllers/family_gallery/welcome_controller.rb +5 -0
- data/app/helpers/family_gallery/groups_helper.rb +8 -0
- data/app/helpers/family_gallery/layout_helper.rb +5 -0
- data/app/helpers/family_gallery/pictures_helper.rb +13 -0
- data/app/helpers/family_gallery/users_helper.rb +5 -0
- data/app/models/family_gallery/ability.rb +22 -0
- data/app/models/family_gallery/group.rb +8 -0
- data/app/models/family_gallery/group_picture_link.rb +8 -0
- data/app/models/family_gallery/picture.rb +76 -0
- data/app/models/family_gallery/user.rb +24 -0
- data/app/models/family_gallery/user_role.rb +7 -0
- data/app/models/family_gallery/user_tagging.rb +18 -0
- data/app/views/family_gallery/devise/shared/_links.html.haml +0 -0
- data/app/views/family_gallery/groups/_form.html.haml +4 -0
- data/app/views/family_gallery/groups/edit.html.haml +3 -0
- data/app/views/family_gallery/groups/index.html.haml +15 -0
- data/app/views/family_gallery/groups/new.html.haml +3 -0
- data/app/views/family_gallery/groups/show.html.haml +25 -0
- data/app/views/family_gallery/pictures/_form.html.haml +8 -0
- data/app/views/family_gallery/pictures/edit.html.haml +3 -0
- data/app/views/family_gallery/pictures/new.html.haml +3 -0
- data/app/views/family_gallery/pictures/show.html.haml +47 -0
- data/app/views/family_gallery/sessions/new.html.erb +26 -0
- data/app/views/family_gallery/user_taggings/_form.html.haml +9 -0
- data/app/views/family_gallery/user_taggings/new.html.haml +3 -0
- data/app/views/family_gallery/users/show.html.haml +12 -0
- data/app/views/family_gallery/welcome/index.html.haml +10 -0
- data/app/views/layouts/family_gallery/application.html.haml +41 -0
- data/config/initializers/devise.rb +259 -0
- data/config/initializers/omniauth.rb +7 -0
- data/config/locales/awesome_translations/app/views/family_gallery/groups/da.yml +10 -0
- data/config/locales/awesome_translations/app/views/family_gallery/groups/en.yml +10 -0
- data/config/locales/awesome_translations/app/views/family_gallery/pictures/da.yml +12 -0
- data/config/locales/awesome_translations/app/views/family_gallery/pictures/en.yml +12 -0
- data/config/locales/awesome_translations/app/views/family_gallery/user_taggings/da.yml +6 -0
- data/config/locales/awesome_translations/app/views/family_gallery/user_taggings/en.yml +6 -0
- data/config/locales/awesome_translations/app/views/family_gallery/users/da.yml +10 -0
- data/config/locales/awesome_translations/app/views/family_gallery/users/en.yml +10 -0
- data/config/locales/awesome_translations/app/views/family_gallery/welcome/da.yml +7 -0
- data/config/locales/awesome_translations/app/views/family_gallery/welcome/en.yml +7 -0
- data/config/locales/awesome_translations/controllers/family_gallery/da.yml +9 -0
- data/config/locales/awesome_translations/controllers/family_gallery/en.yml +9 -0
- data/config/locales/awesome_translations/da.yml +9 -0
- data/config/locales/awesome_translations/en.yml +9 -0
- data/config/locales/awesome_translations/models/family_gallery__group/da.yml +26 -0
- data/config/locales/awesome_translations/models/family_gallery__group/en.yml +26 -0
- data/config/locales/awesome_translations/models/family_gallery__picture/da.yml +13 -0
- data/config/locales/awesome_translations/models/family_gallery__picture/en.yml +13 -0
- data/config/locales/awesome_translations/models/family_gallery__user_tagging/da.yml +14 -0
- data/config/locales/awesome_translations/models/family_gallery__user_tagging/en.yml +14 -0
- data/config/locales/awesome_translations/views/family_gallery/groups/da.yml +12 -0
- data/config/locales/awesome_translations/views/family_gallery/groups/en.yml +9 -0
- data/config/locales/awesome_translations/views/family_gallery/pictures/da.yml +13 -0
- data/config/locales/awesome_translations/views/family_gallery/pictures/en.yml +13 -0
- data/config/locales/awesome_translations/views/layouts/family_gallery/da.yml +9 -0
- data/config/locales/awesome_translations/views/layouts/family_gallery/en.yml +9 -0
- data/config/locales/devise.en.yml +60 -0
- data/config/routes.rb +19 -0
- data/db/plugin_migrate/20150224155212_create_family_gallery_users.rb +46 -0
- data/db/plugin_migrate/20150224155422_create_family_gallery_groups.rb +14 -0
- data/db/plugin_migrate/20150224155704_create_family_gallery_pictures.rb +29 -0
- data/db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb +12 -0
- data/db/plugin_migrate/20150224184005_create_family_gallery_group_picture_links.rb +13 -0
- data/db/plugin_migrate/20150301144620_create_family_gallery_user_taggings.rb +16 -0
- data/db/plugin_migrate/20150301144620_create_user_taggings.rb +16 -0
- data/lib/family_gallery/base_family_gallery_controller.rb +9 -0
- data/lib/family_gallery/engine.rb +5 -0
- data/lib/family_gallery/version.rb +3 -0
- data/lib/family_gallery.rb +20 -0
- data/lib/tasks/family_gallery/db.rake +3 -0
- data/lib/tasks/family_gallery/seed.rake +14 -0
- data/lib/tasks/family_gallery_tasks.rake +4 -0
- data/spec/controllers/family_gallery/pictures_controller_spec.rb +20 -0
- data/spec/dummy/README.md +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.example.yml +39 -0
- data/spec/dummy/config/database.shippable.yml +5 -0
- data/spec/dummy/config/database.yml +13 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +32 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +41 -0
- data/spec/dummy/config/family_gallery.yml +3 -0
- data/spec/dummy/config/initializers/awesome_translations.rb +3 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/schema.rb +131 -0
- data/spec/dummy/log/test.log +3457 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/system/family_gallery/pictures/images/000/000/016/original/Profile.jpeg +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/79bc6a1530be4e47bb2bf0dda4943bc0e439789f/application.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/79bc6a1530be4e47bb2bf0dda4943bc0e439789f/groups.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/79bc6a1530be4e47bb2bf0dda4943bc0e439789f/layout.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/bc24de95c506de07c6571950d49f3258660a5d78/application.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/bc24de95c506de07c6571950d49f3258660a5d78/groups.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/bc24de95c506de07c6571950d49f3258660a5d78/layout.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/bc24de95c506de07c6571950d49f3258660a5d78/pictures.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/bc24de95c506de07c6571950d49f3258660a5d78/user_taggings.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0cc5658eb161251c8bd64e1cf25e2191 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/119923dc816dfafda90919183ba1581d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1442902bef094cd5f3d9fa021ab30bad +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1575b3a4a178623381cdd55596cd8bc7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1aab57c1924cdaa9ba148c9e3d5bbb85 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1dfc909a73e53e47b341f67cfd8a3fc3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/20d23fa5ea743ace10d6a5494fce8ddb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2128d293dc8ef13115c1f5d64b5acfc9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/21ce280aacf67faf44041900539d5470 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/235a5e7d077adf3448617346dc10129f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3bd5629974bb1919d009bcb1da7a7e49 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/41e4d54853d3193e68b50b72db515857 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/44b768d3351f06e343edc95634297681 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/50b9bcf05a8718d9cb5b99276f154ea9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5270ab363f9384ff7f43ff83bdaf3f82 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5316fc0620afefc2ba81b690c8e2c34d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/538966109f3bbd58bfb717ad57a37096 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/58b9ed99ad62ba462ca6a9272b96bef3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5fdd6c2e7777e739bd4e3400982c1bbf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/673ce11f5cb7033b29ccc99310e62b93 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/697d977cf9fc7e54534f5e29b0832836 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/69944efcc9ea99d47389db34b0e05add +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6aab60b365535cc305f37a738e75868b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6db8498274efddac6691248cc9afe855 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6e266734185d58588bcfaf0e33aa4162 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/81ab882fef1228d654a7c697f2324309 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/908bf508cc68079cab720d6b9c36cb95 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/91090eda0f104056144ac17a4fcae91c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a316bc0d459b308530ee6b622235d103 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a3c8104e5830cd7047c6a3a1c1e2ba32 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/adaf29eda594015193030af46474be58 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b349b574327b896b7a321351b14fe1d8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b34e86a2845f7901154358882afdeaa4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b446ef62b37b9bf3a8e24608d9f95634 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b512f2b016bd3aef8c28fa661e01308c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bd49bb0a6f5dfd284a750fb9cab40d85 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c39fce5fa19b758734af29527d4185ca +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c8ecba0dbc7774cd6db79cb7fbe1ef3e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c9b79d7ebc7ef5550a14749b52427cef +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c9c612c8259a6af5c4c02201dd2df161 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cb595904fcf7acdedf2b95571442fc59 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cfb60287b7af861000187e7ba72e39c1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d8de240bbb697f46b26a6ef75d522aa5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e4ec6c7c682836f272efa386cc68223d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/eb9ed717a7ef467bf260b11dfc8451eb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ebdbddd03e404d3fa30adfae674cb9ea +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/efd7a36b3d6d057aa5229aa6d21cbebb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fe3c3cb0cdabd1bbcc88520fc768a6e9 +0 -0
- data/spec/dummy/views/family_gallery/groups/da.yml +9 -0
- data/spec/dummy/views/family_gallery/groups/en.yml +8 -0
- data/spec/dummy/views/family_gallery/pictures/da.yml +9 -0
- data/spec/dummy/views/family_gallery/pictures/en.yml +9 -0
- data/spec/dummy/views/layouts/family_gallery/da.yml +6 -0
- data/spec/dummy/views/layouts/family_gallery/en.yml +6 -0
- data/spec/factories/family_gallery/group.rb +6 -0
- data/spec/factories/family_gallery/picture.rb +10 -0
- data/spec/factories/family_gallery/user.rb +12 -0
- data/spec/models/family_gallery/picture_spec.rb +14 -0
- data/spec/spec_helper.rb +28 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/039/original.jpg +0 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/040/original.jpg +0 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/041/original.jpg +0 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/042/original.jpg +0 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/043/original.jpg +0 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/044/original.jpg +0 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/045/original.jpg +0 -0
- data/spec/test_files/0/family_gallery/pictures/000/000/046/original.jpg +0 -0
- data/spec/test_pictures/christina.jpg +0 -0
- data/spec/test_pictures/sigrid.jpg +0 -0
- metadata +741 -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
|
data/spec/dummy/public/system/family_gallery/pictures/images/000/000/016/original/Profile.jpeg
ADDED
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
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,10 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :picture, class: "FamilyGallery::Picture" do
|
3
|
+
title { Forgery::Name.first_name }
|
4
|
+
description { Forgery::LoremIpsum.words(10, random: true) }
|
5
|
+
image { File.new("#{Rails.root}/../../spec/test_pictures/sigrid.jpg") }
|
6
|
+
|
7
|
+
association :user_owner, factory: :user
|
8
|
+
association :user_uploaded, factory: :user
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :user, class: "FamilyGallery::User" do
|
3
|
+
email { Forgery::Internet.email_address }
|
4
|
+
password { Forgery::LoremIpsum.words(2, random: true) }
|
5
|
+
|
6
|
+
factory :admin do
|
7
|
+
after :create do |user|
|
8
|
+
user.user_roles.create(role: "administrator")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe FamilyGallery::Picture do
|
4
|
+
let(:picture) { create :picture }
|
5
|
+
|
6
|
+
it "#parse_exif" do
|
7
|
+
picture.should have_attached_file :image
|
8
|
+
picture.taken_at.should eq Time.parse("2015-02-25 10:20:47 +0000")
|
9
|
+
picture.latitude.should eq 54.7000236388889
|
10
|
+
picture.longitude.should eq 11.3945503055556
|
11
|
+
picture.width.should eq 4128
|
12
|
+
picture.height.should eq 2322
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
4
|
+
ENV["RAILS_ENV"] ||= 'test'
|
5
|
+
require "dummy/config/environment"
|
6
|
+
require "rspec/rails"
|
7
|
+
require "forgery"
|
8
|
+
require "factory_girl_rails"
|
9
|
+
require "paperclip/matchers"
|
10
|
+
|
11
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
12
|
+
|
13
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
config.include ActionDispatch::TestProcess
|
17
|
+
config.include FactoryGirl::Syntax::Methods
|
18
|
+
config.include Paperclip::Shoulda::Matchers
|
19
|
+
|
20
|
+
config.expect_with :rspec do |c|
|
21
|
+
c.syntax = [:should, :expect]
|
22
|
+
end
|
23
|
+
|
24
|
+
config.include Devise::TestHelpers, type: :controller
|
25
|
+
config.infer_spec_type_from_file_location!
|
26
|
+
config.use_transactional_fixtures = true
|
27
|
+
config.infer_base_class_for_anonymous_controllers = false
|
28
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|