polygallery 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6a87a99a4a04b1317c00842d2233699aa441d40
4
- data.tar.gz: 3746a9497c65fc68e5934504e43027659f90bbc8
3
+ metadata.gz: 498466889ad29ec6561646661ebb6034617ccfd8
4
+ data.tar.gz: 35afdcbab075aae765308ce535853bff92f708c4
5
5
  SHA512:
6
- metadata.gz: 5563b72ef044978c9468809fc0261ae6ead554cf26e4f160eb4986a7281dcd50103451ce24aeb0cbe86e1025789a852981d1edb05aa579e4bbcbb6a66f97142d
7
- data.tar.gz: af6f2ab72aebd8235616eb937dfee41aab2e4f1fbc89c8324ca3a799b5843203940db911be19c118ede16e9fe582973f765bc4f1730d490d85fa61e71e275d73
6
+ metadata.gz: ff943059206c15033fda40513179917e33b5c60a2bb25442792f93a581576248bc8b271d0f693279c28f180f2e9b05fee8bb98cb02dd4561a7c8dabc3aac72ea
7
+ data.tar.gz: 858c812e8c2103186deac49fe8165f9d552a0d0d7c74e4c3805e74bb83b73cec678f2e041c66ec833a4c828e45d6c9f72e4a3ba1c2e2352de5e8da9536085623
@@ -0,0 +1,13 @@
1
+ MFaker = defined?(Faker) ? Faker : FFaker
2
+
3
+ FactoryGirl.define do
4
+ factory :polygallery_gallery, :class => Polygallery::Gallery do
5
+
6
+ trait :with_photos do
7
+ after(:create) do |gallery|
8
+ create :polygallery_photo, :gallery => gallery
9
+ end
10
+ end
11
+
12
+ end
13
+ end
@@ -0,0 +1,8 @@
1
+ include ActionDispatch::TestProcess
2
+ MFaker = defined?(Faker) ? Faker : FFaker
3
+
4
+ FactoryGirl.define do
5
+ factory :polygallery_photo, :class => Polygallery::Photo do
6
+ caption { [nil, MFaker::BaconIpsum.paragraph].sample }
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Polygallery
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polygallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -306,6 +306,8 @@ files:
306
306
  - lib/generators/polygallery/install/templates/polygallery_migration.rb
307
307
  - lib/polygallery.rb
308
308
  - lib/polygallery/engine.rb
309
+ - lib/polygallery/factories/polygallery/galleries.rb
310
+ - lib/polygallery/factories/polygallery/photos.rb
309
311
  - lib/polygallery/glue.rb
310
312
  - lib/polygallery/has_polygallery.rb
311
313
  - lib/polygallery/has_polyphotos.rb