family_gallery 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb9bd8ff1742a50b87118c7e4e74860eb201cba9
4
- data.tar.gz: b399079ff4188128638193efa402cc3e1251317e
3
+ metadata.gz: 24486c204555aff97894007a46c2d8ac2fd4614a
4
+ data.tar.gz: 439588df217f9c82b6a33e395b98b309083406ec
5
5
  SHA512:
6
- metadata.gz: 5346864ec274e6f5e562f7c493fa7453d8bfdc741c712c2b75232cd2b720cd00f2fa56ec2dbab0c7d723a7fa7907f1438916c0439349e0c4e4b25cf08b517ed7
7
- data.tar.gz: cf4be9ec70467a24e688e9469cbbf895538e33f25371f8c6015d853561b21355adf48ea0162badfedf3fc5bb853772355e6bf79cd3c9c53e9138e779e2f89086
6
+ metadata.gz: 2b812774b5391ffedc5db884da4120b3b0b6c22982168baa71f4f01f9dbfbf223573fa484bd85279787114d9d3973495d7d2c12232db407165378b8f51cdbd40
7
+ data.tar.gz: ba9c6c210dffc95388c9695036ada0c17e8275005a59e3b35028e4d5d458543160dfd8ba30977ce143505e5a84427a103f7cd85dfd7a02acb9f4cda8e0b05dfe
@@ -1,3 +1,5 @@
1
+ require "omniauth"
2
+
1
3
  OmniAuth.config.logger = Rails.logger
2
4
 
3
5
  config = YAML.load(File.read(File.join(Rails.root, "config", "family_gallery.yml")))
@@ -1,3 +1,3 @@
1
1
  module FamilyGallery
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -3455,3 +3455,66 @@ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150302-30421-4
3455
3455
  SQL (0.4ms) UPDATE `family_gallery_pictures` SET `image_file_name` = 'sigrid.jpg', `image_content_type` = 'image/jpeg', `image_file_size` = 2361140, `image_updated_at` = '2015-03-02 17:46:54', `user_owner_id` = 52, `user_uploaded_id` = 53, `created_at` = '2015-03-02 17:46:54', `updated_at` = '2015-03-02 17:46:54', `id` = 46, `width` = 4128, `height` = 2322, `taken_at` = '2015-02-25 10:20:47', `latitude` = 54.7000236388889, `longitude` = 11.3945503055556 WHERE `family_gallery_pictures`.`id` = 46
3456
3456
   (0.1ms) RELEASE SAVEPOINT active_record_1
3457
3457
   (7.9ms) ROLLBACK
3458
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations`
3459
+  (0.1ms) BEGIN
3460
+  (0.2ms) SAVEPOINT active_record_1
3461
+ FamilyGallery::User Exists (0.2ms) SELECT 1 AS one FROM `family_gallery_users` WHERE `family_gallery_users`.`email` = BINARY 'dferguson@edgepulse.info' LIMIT 1
3462
+ SQL (0.2ms) INSERT INTO `family_gallery_users` (`created_at`, `email`, `encrypted_password`, `updated_at`) VALUES ('2015-03-03 10:18:39', 'dferguson@edgepulse.info', '$2a$04$QZwlGP22ggGgcxbj0DFiLO.Boz8a9B0mwRPIpWa3qQ9MJjxcytwie', '2015-03-03 10:18:39')
3463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3464
+  (0.1ms) SAVEPOINT active_record_1
3465
+ FamilyGallery::UserRole Exists (0.2ms) SELECT 1 AS one FROM `family_gallery_user_roles` WHERE (`family_gallery_user_roles`.`role` = BINARY 'administrator' AND `family_gallery_user_roles`.`user_id` = 1) LIMIT 1
3466
+ FamilyGallery::User Load (0.4ms) SELECT `family_gallery_users`.* FROM `family_gallery_users` WHERE `family_gallery_users`.`id` = 1 LIMIT 1
3467
+ SQL (0.3ms) INSERT INTO `family_gallery_user_roles` (`created_at`, `role`, `updated_at`, `user_id`) VALUES ('2015-03-03 10:18:39', 'administrator', '2015-03-03 10:18:39', 1)
3468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3469
+  (0.1ms) SAVEPOINT active_record_1
3470
+ SQL (0.3ms) INSERT INTO `family_gallery_groups` (`created_at`, `updated_at`) VALUES ('2015-03-03 10:18:39', '2015-03-03 10:18:39')
3471
+ SQL (0.2ms) INSERT INTO `family_gallery_group_translations` (`created_at`, `description`, `family_gallery_group_id`, `locale`, `name`, `updated_at`) VALUES ('2015-03-03 10:18:39', 'natoque penatibus et magnis dis parturient montes nascetur ridiculus mus', 1, 'en', 'ac nibh', '2015-03-03 10:18:39')
3472
+ FamilyGallery::Group Load (0.2ms) SELECT `family_gallery_groups`.* FROM `family_gallery_groups` WHERE `family_gallery_groups`.`id` = 1 LIMIT 1
3473
+ SQL (0.2ms) UPDATE `family_gallery_groups` SET `family_gallery_groups`.`updated_at` = '2015-03-03 10:18:39' WHERE `family_gallery_groups`.`id` = 1
3474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3475
+ Processing by FamilyGallery::PicturesController#create as HTML
3476
+ Parameters: {"picture"=>{"title"=>"Test title", "description"=>"Test test", "image"=>#<Rack::Test::UploadedFile:0x000000050fd7f0 @content_type="image/jpeg", @original_filename="sigrid.jpg", @tempfile=#<Tempfile:/tmp/sigrid.jpg20150303-14676-n63h1k>>}, "group_id"=>"1"}
3477
+ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150303-14676-67kkny.jpg'
3478
+ FamilyGallery::User Load (0.4ms) SELECT `family_gallery_users`.* FROM `family_gallery_users` WHERE `family_gallery_users`.`id` = 1 ORDER BY `family_gallery_users`.`id` ASC LIMIT 1
3479
+ FamilyGallery::UserRole Load (0.2ms) SELECT `family_gallery_user_roles`.* FROM `family_gallery_user_roles` WHERE `family_gallery_user_roles`.`user_id` = 1
3480
+ FamilyGallery::Group Load (0.3ms) SELECT `family_gallery_groups`.* FROM `family_gallery_groups` WHERE `family_gallery_groups`.`id` = 1 LIMIT 1
3481
+ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150303-14676-2alnn3.jpg'
3482
+ FamilyGallery::Group Load (0.2ms) SELECT `family_gallery_groups`.* FROM `family_gallery_groups` WHERE `family_gallery_groups`.`id` = 1 LIMIT 1
3483
+  (0.2ms) SAVEPOINT active_record_1
3484
+ FamilyGallery::GroupPictureLink Exists (0.3ms) SELECT 1 AS one FROM `family_gallery_group_picture_links` WHERE (`family_gallery_group_picture_links`.`picture_id` IS NULL AND `family_gallery_group_picture_links`.`group_id` = 1) LIMIT 1
3485
+ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150303-14676-mbbsvl.jpg'
3486
+ SQL (0.3ms) INSERT INTO `family_gallery_pictures` (`created_at`, `image_content_type`, `image_file_name`, `image_file_size`, `image_updated_at`, `updated_at`, `user_owner_id`, `user_uploaded_id`) VALUES ('2015-03-03 10:18:39', 'image/jpeg', 'sigrid.jpg', 2361140, '2015-03-03 10:18:39', '2015-03-03 10:18:39', 1, 1)
3487
+ SQL (0.2ms) INSERT INTO `family_gallery_picture_translations` (`created_at`, `description`, `family_gallery_picture_id`, `locale`, `title`, `updated_at`) VALUES ('2015-03-03 10:18:39', 'Test test', 1, 'en', 'Test title', '2015-03-03 10:18:39')
3488
+ FamilyGallery::Picture Load (0.2ms) SELECT `family_gallery_pictures`.* FROM `family_gallery_pictures` WHERE `family_gallery_pictures`.`id` = 1 LIMIT 1
3489
+ SQL (0.2ms) UPDATE `family_gallery_pictures` SET `family_gallery_pictures`.`updated_at` = '2015-03-03 10:18:39' WHERE `family_gallery_pictures`.`id` = 1
3490
+ FamilyGallery::GroupPictureLink Exists (0.2ms) SELECT 1 AS one FROM `family_gallery_group_picture_links` WHERE (`family_gallery_group_picture_links`.`picture_id` = BINARY 1 AND `family_gallery_group_picture_links`.`group_id` = 1) LIMIT 1
3491
+ SQL (0.2ms) INSERT INTO `family_gallery_group_picture_links` (`created_at`, `group_id`, `picture_id`, `updated_at`) VALUES ('2015-03-03 10:18:39', 1, 1, '2015-03-03 10:18:39')
3492
+ FamilyGallery::Picture Load (0.2ms) SELECT `family_gallery_pictures`.* FROM `family_gallery_pictures` WHERE `family_gallery_pictures`.`id` = 1 LIMIT 1
3493
+ FamilyGallery::GroupPictureLink Exists (0.2ms) SELECT 1 AS one FROM `family_gallery_group_picture_links` WHERE (`family_gallery_group_picture_links`.`picture_id` = BINARY 1 AND `family_gallery_group_picture_links`.`id` != 1 AND `family_gallery_group_picture_links`.`group_id` = 1) LIMIT 1
3494
+ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150303-14676-18pg97s.jpg'
3495
+ SQL (0.3ms) UPDATE `family_gallery_pictures` SET `image_file_name` = 'sigrid.jpg', `image_content_type` = 'image/jpeg', `image_file_size` = 2361140, `image_updated_at` = '2015-03-03 10:18:39', `user_uploaded_id` = 1, `user_owner_id` = 1, `created_at` = '2015-03-03 10:18:39', `updated_at` = '2015-03-03 10:18:39', `id` = 1, `width` = 4128, `height` = 2322, `taken_at` = '2015-02-25 10:20:47', `latitude` = 54.7000236388889, `longitude` = 11.3945503055556 WHERE `family_gallery_pictures`.`id` = 1
3496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3497
+ Redirected to http://test.host/pictures/1
3498
+ Completed 302 Found in 167ms (ActiveRecord: 6.1ms)
3499
+  (14.7ms) ROLLBACK
3500
+  (0.1ms) BEGIN
3501
+ Command :: file -b --mime '/media/storage/Dev/Rails/family_gallery/spec/dummy/../../spec/test_pictures/sigrid.jpg'
3502
+ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150303-14676-1x9rfu5.jpg'
3503
+  (0.2ms) SAVEPOINT active_record_1
3504
+ FamilyGallery::User Exists (0.2ms) SELECT 1 AS one FROM `family_gallery_users` WHERE `family_gallery_users`.`email` = BINARY 'dcastillo@zooveo.org' LIMIT 1
3505
+ SQL (0.1ms) INSERT INTO `family_gallery_users` (`created_at`, `email`, `encrypted_password`, `updated_at`) VALUES ('2015-03-03 10:18:39', 'dcastillo@zooveo.org', '$2a$04$F5GYptti.BCSLto6lXoWROowHTW./h8.JkL6tbijJDjRzfXGpFN5e', '2015-03-03 10:18:39')
3506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3507
+  (0.1ms) SAVEPOINT active_record_1
3508
+ FamilyGallery::User Exists (0.2ms) SELECT 1 AS one FROM `family_gallery_users` WHERE `family_gallery_users`.`email` = BINARY 'pwhite@oyondu.biz' LIMIT 1
3509
+ SQL (0.2ms) INSERT INTO `family_gallery_users` (`created_at`, `email`, `encrypted_password`, `updated_at`) VALUES ('2015-03-03 10:18:39', 'pwhite@oyondu.biz', '$2a$04$V1qoJ2kdvNtyJgsZlVSmme/vBCjLbAJ3fyVsTFiZCvodGo9WGuEcG', '2015-03-03 10:18:39')
3510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3511
+  (0.1ms) SAVEPOINT active_record_1
3512
+ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150303-14676-1mxar5m.jpg'
3513
+ SQL (0.2ms) INSERT INTO `family_gallery_pictures` (`created_at`, `image_content_type`, `image_file_name`, `image_file_size`, `image_updated_at`, `updated_at`, `user_owner_id`, `user_uploaded_id`) VALUES ('2015-03-03 10:18:39', 'image/jpeg', 'sigrid.jpg', 2361140, '2015-03-03 10:18:39', '2015-03-03 10:18:39', 2, 3)
3514
+ SQL (0.2ms) INSERT INTO `family_gallery_picture_translations` (`created_at`, `description`, `family_gallery_picture_id`, `locale`, `title`, `updated_at`) VALUES ('2015-03-03 10:18:39', 'quam pede lobortis ligula sit amet eleifend pede libero quis', 2, 'en', 'Virginia', '2015-03-03 10:18:39')
3515
+ FamilyGallery::Picture Load (0.3ms) SELECT `family_gallery_pictures`.* FROM `family_gallery_pictures` WHERE `family_gallery_pictures`.`id` = 2 LIMIT 1
3516
+ SQL (0.6ms) UPDATE `family_gallery_pictures` SET `family_gallery_pictures`.`updated_at` = '2015-03-03 10:18:39' WHERE `family_gallery_pictures`.`id` = 2
3517
+ Command :: file -b --mime '/tmp/baa276aea63b66769df1f5dad6c13bf420150303-14676-1equvjl.jpg'
3518
+ SQL (0.3ms) UPDATE `family_gallery_pictures` SET `image_file_name` = 'sigrid.jpg', `image_content_type` = 'image/jpeg', `image_file_size` = 2361140, `image_updated_at` = '2015-03-03 10:18:39', `user_owner_id` = 2, `user_uploaded_id` = 3, `created_at` = '2015-03-03 10:18:39', `updated_at` = '2015-03-03 10:18:39', `id` = 2, `width` = 4128, `height` = 2322, `taken_at` = '2015-02-25 10:20:47', `latitude` = 54.7000236388889, `longitude` = 11.3945503055556 WHERE `family_gallery_pictures`.`id` = 2
3519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3520
+  (10.6ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: family_gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
@@ -584,6 +584,8 @@ files:
584
584
  - spec/factories/family_gallery/user.rb
585
585
  - spec/models/family_gallery/picture_spec.rb
586
586
  - spec/spec_helper.rb
587
+ - spec/test_files/0/family_gallery/pictures/000/000/001/original.jpg
588
+ - spec/test_files/0/family_gallery/pictures/000/000/002/original.jpg
587
589
  - spec/test_files/0/family_gallery/pictures/000/000/039/original.jpg
588
590
  - spec/test_files/0/family_gallery/pictures/000/000/040/original.jpg
589
591
  - spec/test_files/0/family_gallery/pictures/000/000/041/original.jpg
@@ -625,6 +627,7 @@ test_files:
625
627
  - spec/factories/family_gallery/picture.rb
626
628
  - spec/factories/family_gallery/user.rb
627
629
  - spec/factories/family_gallery/group.rb
630
+ - spec/test_files/0/family_gallery/pictures/000/000/001/original.jpg
628
631
  - spec/test_files/0/family_gallery/pictures/000/000/039/original.jpg
629
632
  - spec/test_files/0/family_gallery/pictures/000/000/045/original.jpg
630
633
  - spec/test_files/0/family_gallery/pictures/000/000/044/original.jpg
@@ -632,6 +635,7 @@ test_files:
632
635
  - spec/test_files/0/family_gallery/pictures/000/000/041/original.jpg
633
636
  - spec/test_files/0/family_gallery/pictures/000/000/046/original.jpg
634
637
  - spec/test_files/0/family_gallery/pictures/000/000/042/original.jpg
638
+ - spec/test_files/0/family_gallery/pictures/000/000/002/original.jpg
635
639
  - spec/test_files/0/family_gallery/pictures/000/000/043/original.jpg
636
640
  - spec/dummy/app/controllers/application_controller.rb
637
641
  - spec/dummy/app/views/layouts/application.html.erb