ecm_pictures2 2.1.1 → 2.1.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: e1495965e02036d81941075d28eaffc02dfc3179
4
- data.tar.gz: c48f502e3913c22254c518d9fd600a5154099291
3
+ metadata.gz: af204c0977456bebc0e452d4eedb22229c8819f0
4
+ data.tar.gz: 80e31d30783b625693afbafd8cb516ad0fb2cc6c
5
5
  SHA512:
6
- metadata.gz: 99611b9324f1a7370b52724b77e7eea965f0e2bff5b324f530806140ffa7c2e35d023bf06b9302988abd10c9f6affe085e06d41140707dca827f5a9d5c348914
7
- data.tar.gz: d372d9fc41e94a9a8b7d0fb6f8b0701de875439ce6ecdb29c04526a58d2977726d9933d6e7bb319602611c33dadadd83df11d951f5ff20ae6ee5f684a4fc09b7
6
+ metadata.gz: a00e76f0cb9ad23279f92224741dac5ba160033a246ed0b691a1b4ba624de6e3d7d5bdc0ab31955bea7028809900169c40e2f4e79fb652c635ee8f641ecd3256
7
+ data.tar.gz: a3601fc0dfb3280bfa6e5e572dfc3f769d5c2b44cf2cb4bcd25ba2eb20c829bcfaa03ddebd3a2707b9ab51c2e4541333339bc8f232fe51913fc1fb3524e038cf
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Pictures
3
- VERSION = '2.1.1'
3
+ VERSION = '2.1.2'
4
4
  end
5
5
  end
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :ecm_pictures_attached_picture, class: Ecm::Pictures::AttachedPicture do
3
+ picture factory: :ecm_pictures_picture
4
+ pictureable factory: :post
5
+ end
6
+ end
@@ -0,0 +1,12 @@
1
+ FactoryGirl.define do
2
+ factory :ecm_pictures_picture_gallery, class: Ecm::Pictures::PictureGallery do
3
+ sequence(:name) { |n| "Picture gallery ##{n}" }
4
+
5
+ factory :ecm_pictures_picture_gallery_with_pictures do |picture_gallery|
6
+ 3.times do
7
+ picture_gallery.after(:create) { |pg| FactoryGirl.create(:ecm_pictures_picture, picture_gallery: pg) }
8
+ end
9
+ picture_gallery.pictures_count 3
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :ecm_pictures_picture, class: Ecm::Pictures::Picture do
3
+ image File.open(File.join(Ecm::Pictures::Engine.root, 'spec/files', 'ecm/pictures', 'picture/image.jpg'))
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :post do
3
+ sequence(:title) { |i| "Post ##{i}" }
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_pictures2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-25 00:00:00.000000000 Z
11
+ date: 2016-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -424,6 +424,11 @@ files:
424
424
  - lib/generators/ecm/pictures/install/templates/routes.source
425
425
  - lib/generators/ecm/pictures/locales/locales_generator.rb
426
426
  - lib/tasks/ecm_pictures_tasks.rake
427
+ - spec/factories/ecm/pictures/attached_pictures.rb
428
+ - spec/factories/ecm/pictures/picture_galleries.rb
429
+ - spec/factories/ecm/pictures/pictures.rb
430
+ - spec/factories/post.rb
431
+ - spec/files/ecm/pictures/picture/image.jpg
427
432
  homepage: https://github.com/robotex82/ecm_pictures
428
433
  licenses: []
429
434
  metadata: {}