rails-gallery 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +9 -0
  4. data/Gemfile.lock +37 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.md +298 -0
  7. data/Rakefile +49 -0
  8. data/VERSION +1 -0
  9. data/app/views/gallery/_galleria.html.haml +4 -0
  10. data/app/views/gallery/_responsive.html.haml +15 -0
  11. data/app/views/gallery/_slideshow.html.haml +26 -0
  12. data/app/views/gallery/template/_responsive.html.haml +14 -0
  13. data/config/locales/rails_gallery.yml +5 -0
  14. data/lib/rails-gallery.rb +3 -0
  15. data/lib/rails-gallery/engine.rb +9 -0
  16. data/lib/rails-gallery/rgallery.rb +7 -0
  17. data/lib/rails-gallery/rgallery/page.rb +24 -0
  18. data/lib/rails-gallery/rgallery/pages.rb +34 -0
  19. data/lib/rails-gallery/rgallery/photo.rb +50 -0
  20. data/lib/rails-gallery/rgallery/photo_config.rb +18 -0
  21. data/lib/rails-gallery/rgallery/photos.rb +45 -0
  22. data/lib/rails-gallery/view_helper.rb +27 -0
  23. data/lib/rails-gallery/view_helper/galleria.rb +11 -0
  24. data/lib/rails-gallery/view_helper/responsive.rb +9 -0
  25. data/lib/rails-gallery/view_helper/slideshow.rb +9 -0
  26. data/rails-gallery.gemspec +217 -0
  27. data/spec/galleria_snippet.html +54 -0
  28. data/spec/galleria_snippet.html.haml +9 -0
  29. data/spec/images/photo_gallery/icons/IconsByGentleface.txt +1 -0
  30. data/spec/images/photo_gallery/icons/grid.png +0 -0
  31. data/spec/images/photo_gallery/icons/loading.gif +0 -0
  32. data/spec/images/photo_gallery/icons/next.png +0 -0
  33. data/spec/images/photo_gallery/icons/next_thumb.png +0 -0
  34. data/spec/images/photo_gallery/icons/pause.png +0 -0
  35. data/spec/images/photo_gallery/icons/play.png +0 -0
  36. data/spec/images/photo_gallery/icons/prev.png +0 -0
  37. data/spec/images/photo_gallery/icons/prev_thumb.png +0 -0
  38. data/spec/images/photo_gallery/icons/up.png +0 -0
  39. data/spec/images/photo_gallery/images/1.jpg +0 -0
  40. data/spec/images/photo_gallery/images/10.jpg +0 -0
  41. data/spec/images/photo_gallery/images/11.jpg +0 -0
  42. data/spec/images/photo_gallery/images/12.jpg +0 -0
  43. data/spec/images/photo_gallery/images/2.jpg +0 -0
  44. data/spec/images/photo_gallery/images/3.jpg +0 -0
  45. data/spec/images/photo_gallery/images/4.jpg +0 -0
  46. data/spec/images/photo_gallery/images/5.jpg +0 -0
  47. data/spec/images/photo_gallery/images/6.jpg +0 -0
  48. data/spec/images/photo_gallery/images/7.jpg +0 -0
  49. data/spec/images/photo_gallery/images/8.jpg +0 -0
  50. data/spec/images/photo_gallery/images/9.jpg +0 -0
  51. data/spec/images/photo_gallery/images/ImagesByTibchris.txt +3 -0
  52. data/spec/images/photo_gallery/images/thumbs/1.jpg +0 -0
  53. data/spec/images/photo_gallery/images/thumbs/10.jpg +0 -0
  54. data/spec/images/photo_gallery/images/thumbs/11.jpg +0 -0
  55. data/spec/images/photo_gallery/images/thumbs/12.jpg +0 -0
  56. data/spec/images/photo_gallery/images/thumbs/2.jpg +0 -0
  57. data/spec/images/photo_gallery/images/thumbs/3.jpg +0 -0
  58. data/spec/images/photo_gallery/images/thumbs/4.jpg +0 -0
  59. data/spec/images/photo_gallery/images/thumbs/5.jpg +0 -0
  60. data/spec/images/photo_gallery/images/thumbs/6.jpg +0 -0
  61. data/spec/images/photo_gallery/images/thumbs/7.jpg +0 -0
  62. data/spec/images/photo_gallery/images/thumbs/8.jpg +0 -0
  63. data/spec/images/photo_gallery/images/thumbs/9.jpg +0 -0
  64. data/spec/images/property/1.jpg +0 -0
  65. data/spec/images/property/2.jpg +0 -0
  66. data/spec/images/property/3.jpg +0 -0
  67. data/spec/images/property/4.jpg +0 -0
  68. data/spec/images/property/5.jpg +0 -0
  69. data/spec/images/property/6.jpg +0 -0
  70. data/spec/images/property/7.jpg +0 -0
  71. data/spec/images/property/ads/ad1.jpg +0 -0
  72. data/spec/images/property/ads/ad2.jpg +0 -0
  73. data/spec/images/property/ads/ad3.jpg +0 -0
  74. data/spec/images/property/thumbs/1.jpg +0 -0
  75. data/spec/images/property/thumbs/2.jpg +0 -0
  76. data/spec/images/property/thumbs/3.jpg +0 -0
  77. data/spec/images/property/thumbs/4.jpg +0 -0
  78. data/spec/images/property/thumbs/5.jpg +0 -0
  79. data/spec/images/property/thumbs/6.jpg +0 -0
  80. data/spec/images/property/thumbs/7.jpg +0 -0
  81. data/spec/images/responsive-gallery/icons/ajax-loader.gif +0 -0
  82. data/spec/images/responsive-gallery/icons/black.png +0 -0
  83. data/spec/images/responsive-gallery/icons/nav.png +0 -0
  84. data/spec/images/responsive-gallery/icons/nav_thumbs.png +0 -0
  85. data/spec/images/responsive-gallery/icons/pattern.png +0 -0
  86. data/spec/images/responsive-gallery/icons/views.png +0 -0
  87. data/spec/images/responsive-gallery/images/1.jpg +0 -0
  88. data/spec/images/responsive-gallery/images/10.jpg +0 -0
  89. data/spec/images/responsive-gallery/images/11.jpg +0 -0
  90. data/spec/images/responsive-gallery/images/12.jpg +0 -0
  91. data/spec/images/responsive-gallery/images/13.jpg +0 -0
  92. data/spec/images/responsive-gallery/images/14.jpg +0 -0
  93. data/spec/images/responsive-gallery/images/15.jpg +0 -0
  94. data/spec/images/responsive-gallery/images/16.jpg +0 -0
  95. data/spec/images/responsive-gallery/images/17.jpg +0 -0
  96. data/spec/images/responsive-gallery/images/18.jpg +0 -0
  97. data/spec/images/responsive-gallery/images/19.jpg +0 -0
  98. data/spec/images/responsive-gallery/images/2.jpg +0 -0
  99. data/spec/images/responsive-gallery/images/20.jpg +0 -0
  100. data/spec/images/responsive-gallery/images/21.jpg +0 -0
  101. data/spec/images/responsive-gallery/images/22.jpg +0 -0
  102. data/spec/images/responsive-gallery/images/23.jpg +0 -0
  103. data/spec/images/responsive-gallery/images/24.jpg +0 -0
  104. data/spec/images/responsive-gallery/images/3.jpg +0 -0
  105. data/spec/images/responsive-gallery/images/4.jpg +0 -0
  106. data/spec/images/responsive-gallery/images/5.jpg +0 -0
  107. data/spec/images/responsive-gallery/images/6.jpg +0 -0
  108. data/spec/images/responsive-gallery/images/7.jpg +0 -0
  109. data/spec/images/responsive-gallery/images/8.jpg +0 -0
  110. data/spec/images/responsive-gallery/images/9.jpg +0 -0
  111. data/spec/images/responsive-gallery/images/thumbs/1.jpg +0 -0
  112. data/spec/images/responsive-gallery/images/thumbs/10.jpg +0 -0
  113. data/spec/images/responsive-gallery/images/thumbs/11.jpg +0 -0
  114. data/spec/images/responsive-gallery/images/thumbs/12.jpg +0 -0
  115. data/spec/images/responsive-gallery/images/thumbs/13.jpg +0 -0
  116. data/spec/images/responsive-gallery/images/thumbs/14.jpg +0 -0
  117. data/spec/images/responsive-gallery/images/thumbs/15.jpg +0 -0
  118. data/spec/images/responsive-gallery/images/thumbs/16.jpg +0 -0
  119. data/spec/images/responsive-gallery/images/thumbs/17.jpg +0 -0
  120. data/spec/images/responsive-gallery/images/thumbs/18.jpg +0 -0
  121. data/spec/images/responsive-gallery/images/thumbs/19.jpg +0 -0
  122. data/spec/images/responsive-gallery/images/thumbs/2.jpg +0 -0
  123. data/spec/images/responsive-gallery/images/thumbs/20.jpg +0 -0
  124. data/spec/images/responsive-gallery/images/thumbs/21.jpg +0 -0
  125. data/spec/images/responsive-gallery/images/thumbs/22.jpg +0 -0
  126. data/spec/images/responsive-gallery/images/thumbs/23.jpg +0 -0
  127. data/spec/images/responsive-gallery/images/thumbs/24.jpg +0 -0
  128. data/spec/images/responsive-gallery/images/thumbs/3.jpg +0 -0
  129. data/spec/images/responsive-gallery/images/thumbs/4.jpg +0 -0
  130. data/spec/images/responsive-gallery/images/thumbs/5.jpg +0 -0
  131. data/spec/images/responsive-gallery/images/thumbs/6.jpg +0 -0
  132. data/spec/images/responsive-gallery/images/thumbs/7.jpg +0 -0
  133. data/spec/images/responsive-gallery/images/thumbs/8.jpg +0 -0
  134. data/spec/images/responsive-gallery/images/thumbs/9.jpg +0 -0
  135. data/spec/rails-gallery_spec.rb +7 -0
  136. data/spec/spec_helper.rb +10 -0
  137. data/vendor/assets/images/gallery/galleria/classic/loader.gif +0 -0
  138. data/vendor/assets/images/gallery/galleria/classic/map.png +0 -0
  139. data/vendor/assets/images/gallery/responsive/icons/ajax-loader.gif +0 -0
  140. data/vendor/assets/images/gallery/responsive/icons/black.png +0 -0
  141. data/vendor/assets/images/gallery/responsive/icons/nav.png +0 -0
  142. data/vendor/assets/images/gallery/responsive/icons/nav_thumbs.png +0 -0
  143. data/vendor/assets/images/gallery/responsive/icons/pattern.png +0 -0
  144. data/vendor/assets/images/gallery/responsive/icons/views.png +0 -0
  145. data/vendor/assets/images/gallery/slideshow/icons/grid.png +0 -0
  146. data/vendor/assets/images/gallery/slideshow/icons/loading.gif +0 -0
  147. data/vendor/assets/images/gallery/slideshow/icons/next.png +0 -0
  148. data/vendor/assets/images/gallery/slideshow/icons/next_thumb.png +0 -0
  149. data/vendor/assets/images/gallery/slideshow/icons/pause.png +0 -0
  150. data/vendor/assets/images/gallery/slideshow/icons/play.png +0 -0
  151. data/vendor/assets/images/gallery/slideshow/icons/prev.png +0 -0
  152. data/vendor/assets/images/gallery/slideshow/icons/prev_thumb.png +0 -0
  153. data/vendor/assets/images/gallery/slideshow/icons/up.png +0 -0
  154. data/vendor/assets/javascripts/gallery/galleria-1.2.8.js +5926 -0
  155. data/vendor/assets/javascripts/gallery/galleria-1.2.8.min.js +9 -0
  156. data/vendor/assets/javascripts/gallery/galleria/classic.js +95 -0
  157. data/vendor/assets/javascripts/gallery/galleria/classic.min.js +8 -0
  158. data/vendor/assets/javascripts/gallery/responsive.js +261 -0
  159. data/vendor/assets/javascripts/gallery/slideshow.js +308 -0
  160. data/vendor/assets/javascripts/jquery/jquery.easing-1.3.js +205 -0
  161. data/vendor/assets/javascripts/jquery/jquery.elastislide.js +467 -0
  162. data/vendor/assets/javascripts/jquery/jquery.tmpl.min.js +1 -0
  163. data/vendor/assets/stylesheets/gallery/galleria/classic.css +217 -0
  164. data/vendor/assets/stylesheets/gallery/responsive.css +105 -0
  165. data/vendor/assets/stylesheets/gallery/responsive/elastislide.css +69 -0
  166. data/vendor/assets/stylesheets/gallery/slideshow.css +171 -0
  167. metadata +297 -0
@@ -0,0 +1,26 @@
1
+ // http://tympanus.net/codrops/2010/07/05/minimalistic-slideshow-gallery/
2
+ #msg_slideshow.msg_slideshow
3
+ #msg_wrapper.msg_wrapper
4
+ #msg_controls.msg_controls
5
+ // right has to animate to 15px, default -110px
6
+ %a#msg_grid.msg_grid{href: "#"}
7
+ %a#msg_prev.msg_prev{href: "#"}
8
+ %a#msg_pause_play.msg_pause{href: "#"}
9
+ // has to change to msg_play if paused
10
+ %a#msg_next.msg_next{href: "#"}
11
+ #msg_thumbs.msg_thumbs
12
+ // top has to animate to 0px, default -230px
13
+ .msg_thumb_wrapper
14
+ - photos.page(:first).photos.each do |photo|
15
+ %a{href: "#"}
16
+ = image_tag photo.thumb, alt: "/assets/#{photo.path}"
17
+ - photos.pages.remainder.each do |page|
18
+ .msg_thumb_wrapper{style: 'display:none'}
19
+ - page.photos.each do |photo|
20
+ %a{href: "#"}
21
+ = image_tag photo.thumb, alt: "/assets/#{photo.path}"
22
+ %a#msg_thumb_next.msg_thumb_next{href: '#'}
23
+ %a#msg_thumb_prev.msg_thumb_prev{href: '#'}
24
+ %a#msg_thumb_close.msg_thumb_close{href: '#'}
25
+ %span.msg_loading
26
+ = t('rgallery.photos_loading')
@@ -0,0 +1,14 @@
1
+ %script#img-wrapper-tmpl{style: "display:none;"}
2
+ .rg-image-wrapper
3
+ {{if itemsCount > 1}}
4
+ .rg-image-nav
5
+ %a.rg-image-nav-prev{href: "#"}
6
+ = t('rgallery.previous')
7
+ %a.rg-image-nav-next{href: "#"}
8
+ = t('rgallery.next')
9
+ {{/if}}
10
+ .rg-image
11
+ .rg-loading
12
+ .rg-caption-wrapper
13
+ .rg-caption{style: "display:none;"}
14
+ %p
@@ -0,0 +1,5 @@
1
+ en:
2
+ rgallery:
3
+ previous: Previous
4
+ next: Next
5
+ photos_loading: Loading photos...
@@ -0,0 +1,3 @@
1
+ require 'rails-gallery/rgallery'
2
+ require 'rails-gallery/view_helper'
3
+ require 'rails-gallery/engine' if defined?(::Rails::Engine)
@@ -0,0 +1,9 @@
1
+ module RailsGallery
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'rails gallery' do
5
+ ActionView::Base.send :include, RailsGallery::ViewHelper
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ module RGallery
2
+ autoload :Photos, 'rails-gallery/rgallery/photos'
3
+ autoload :Pages, 'rails-gallery/rgallery/pages'
4
+ autoload :Page, 'rails-gallery/rgallery/page'
5
+ autoload :Photo, 'rails-gallery/rgallery/photo'
6
+ autoload :PhotoConfig, 'rails-gallery/rgallery/photo_config'
7
+ end
@@ -0,0 +1,24 @@
1
+ module RGallery
2
+ class Page < PhotoConfig
3
+ include Enumerable
4
+
5
+ def initialize photo_ids = [], options = {}
6
+ @photo_ids = photo_ids
7
+ super options
8
+ end
9
+
10
+ def photo_ids
11
+ @photo_ids ||= []
12
+ end
13
+
14
+ def photos
15
+ @photos ||= photo_ids.map {|id| photo_class.new id, options }
16
+ end
17
+
18
+ delegate :empty?, to: :photos
19
+
20
+ def each &block
21
+ photos.each {|photo| yield photo }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,34 @@
1
+ module RGallery
2
+ class Pages < PhotoConfig
3
+ include Enumerable
4
+
5
+ def initialize photo_list = [], options = {}
6
+ super options
7
+ self.send(:<<, photo_list) unless photo_list.blank?
8
+ end
9
+
10
+ def each &block
11
+ pages.each {|page| yield page }
12
+ end
13
+
14
+ def remainder
15
+ pages[1..-1] || []
16
+ end
17
+
18
+ def first
19
+ pages.first || []
20
+ end
21
+
22
+ def << photo_list
23
+ pages << RGallery::Page.new(photo_list, options)
24
+ end
25
+
26
+ delegate :empty?, to: :pages
27
+
28
+ protected
29
+
30
+ def pages
31
+ @pages ||= []
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,50 @@
1
+ module RGallery
2
+ class Photo
3
+ attr_reader :id, :options
4
+
5
+ def initialize id, options = {}
6
+ @id = id
7
+ @options = options
8
+ end
9
+
10
+ def filename
11
+ id
12
+ end
13
+
14
+ def file_path
15
+ "#{filename}.#{extension}"
16
+ end
17
+
18
+ def path
19
+ file_path
20
+ end
21
+
22
+ def thumb
23
+ path
24
+ end
25
+
26
+ def title
27
+ 'no title'
28
+ end
29
+
30
+ def alt
31
+ 'no alt'
32
+ end
33
+
34
+ def description
35
+ 'no description'
36
+ end
37
+
38
+ def extension
39
+ options[:extension] || self.class.extension
40
+ end
41
+
42
+ class << self
43
+ attr_writer :extension
44
+
45
+ def extension
46
+ @extension ||= :png
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,18 @@
1
+ module RGallery
2
+ class PhotoConfig
3
+ attr_writer :photo_class
4
+ attr_reader :options
5
+
6
+ def initialize options = {}
7
+ options ||= {}
8
+ @options = options
9
+ @photo_class = options[:photo_class] if options[:photo_class]
10
+ end
11
+
12
+ protected
13
+
14
+ def photo_class
15
+ @photo_class ||= Photos::Photo
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,45 @@
1
+ require 'enumerator'
2
+
3
+ module RGallery
4
+ class Photos < PhotoConfig
5
+ def initialize pages = nil, options = {}
6
+ unless pages.nil?
7
+ raise ArgumentError, "Must be a Photos::Pages or Array, was: #{pages}" unless valid_pages? pages
8
+ pages = pages_class.new pages, options if pages.kind_of?(Array)
9
+ @pages = pages
10
+ end
11
+ super options
12
+ end
13
+
14
+ def all
15
+ pages.inject([]) {|res, page| res += page.photos }.flatten.compact
16
+ end
17
+
18
+ def pages
19
+ @pages ||= pages_class.new nil, options
20
+ end
21
+
22
+ def page id
23
+ raise ArgumentError, "Page id must be one #{valid_page_ids}, was: #{id}" unless valid_page_id? id
24
+ pages.send(id)
25
+ end
26
+
27
+ protected
28
+
29
+ def valid_page_id? id
30
+ [:first].include? id.to_sym
31
+ end
32
+
33
+ def valid_page_ids
34
+ [:first]
35
+ end
36
+
37
+ def valid_pages? pages
38
+ pages.kind_of?(pages_class) || pages.kind_of?(Array)
39
+ end
40
+
41
+ def pages_class
42
+ RGallery::Pages
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,27 @@
1
+ module RailsGallery
2
+ module ViewHelper
3
+ def self.galleries
4
+ %w{galleria responsive slideshow}
5
+ end
6
+
7
+ # autoload all galleries when references
8
+ galleries.each do |gallery|
9
+ autoload gallery.camelize.to_sym, "rails-gallery/view_helper/#{gallery}"
10
+ end
11
+
12
+ def gallery_image type, photo
13
+ meth_name = "#{type}_gallery_image"
14
+ unless respond_to? meth_name
15
+ raise ArgumentError, "Gallery #{type} is not yet supported. Please add a View helper module for this gallery using the convention followed by the other galleries..."
16
+ end
17
+ send(meth_name, photo)
18
+ end
19
+
20
+ protected
21
+
22
+ # include view helper modules for all galleries :)
23
+ galleries.each do |gallery|
24
+ include "RailsGallery::ViewHelper::#{gallery.camelize}".constantize
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,11 @@
1
+ module RailsGallery
2
+ module ViewHelper
3
+ module Galleria
4
+ def galleria_gallery_image photo
5
+ content_tag :a, href: "/assets/#{photo.path}" do
6
+ image_tag photo.path, :"data-title" => photo.title, :"data-description" => photo.description
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ module RailsGallery
2
+ module ViewHelper
3
+ module Responsive
4
+ def responsive_gallery_image photo
5
+ image_tag photo.thumb, :"data-large" => "/assets/#{photo.path}", :alt => photo.alt, :"data-description" => photo.title
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module RailsGallery
2
+ module ViewHelper
3
+ module Slideshow
4
+ def slideshow_gallery_image photo
5
+ image_tag photo.thumb, alt: "/assets/#{photo.path}"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,217 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "rails-gallery"
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Kristian Mandrup"]
12
+ s.date = "2012-08-22"
13
+ s.description = "Adds popular javascript galleries to asset pipeline and includes a few Rails Gallery utils and helpers"
14
+ s.email = "kmandrup@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.md",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "app/views/gallery/_galleria.html.haml",
29
+ "app/views/gallery/_responsive.html.haml",
30
+ "app/views/gallery/_slideshow.html.haml",
31
+ "app/views/gallery/template/_responsive.html.haml",
32
+ "config/locales/rails_gallery.yml",
33
+ "lib/rails-gallery.rb",
34
+ "lib/rails-gallery/engine.rb",
35
+ "lib/rails-gallery/rgallery.rb",
36
+ "lib/rails-gallery/rgallery/page.rb",
37
+ "lib/rails-gallery/rgallery/pages.rb",
38
+ "lib/rails-gallery/rgallery/photo.rb",
39
+ "lib/rails-gallery/rgallery/photo_config.rb",
40
+ "lib/rails-gallery/rgallery/photos.rb",
41
+ "lib/rails-gallery/view_helper.rb",
42
+ "lib/rails-gallery/view_helper/galleria.rb",
43
+ "lib/rails-gallery/view_helper/responsive.rb",
44
+ "lib/rails-gallery/view_helper/slideshow.rb",
45
+ "rails-gallery.gemspec",
46
+ "spec/galleria_snippet.html",
47
+ "spec/galleria_snippet.html.haml",
48
+ "spec/images/photo_gallery/icons/IconsByGentleface.txt",
49
+ "spec/images/photo_gallery/icons/grid.png",
50
+ "spec/images/photo_gallery/icons/loading.gif",
51
+ "spec/images/photo_gallery/icons/next.png",
52
+ "spec/images/photo_gallery/icons/next_thumb.png",
53
+ "spec/images/photo_gallery/icons/pause.png",
54
+ "spec/images/photo_gallery/icons/play.png",
55
+ "spec/images/photo_gallery/icons/prev.png",
56
+ "spec/images/photo_gallery/icons/prev_thumb.png",
57
+ "spec/images/photo_gallery/icons/up.png",
58
+ "spec/images/photo_gallery/images/1.jpg",
59
+ "spec/images/photo_gallery/images/10.jpg",
60
+ "spec/images/photo_gallery/images/11.jpg",
61
+ "spec/images/photo_gallery/images/12.jpg",
62
+ "spec/images/photo_gallery/images/2.jpg",
63
+ "spec/images/photo_gallery/images/3.jpg",
64
+ "spec/images/photo_gallery/images/4.jpg",
65
+ "spec/images/photo_gallery/images/5.jpg",
66
+ "spec/images/photo_gallery/images/6.jpg",
67
+ "spec/images/photo_gallery/images/7.jpg",
68
+ "spec/images/photo_gallery/images/8.jpg",
69
+ "spec/images/photo_gallery/images/9.jpg",
70
+ "spec/images/photo_gallery/images/ImagesByTibchris.txt",
71
+ "spec/images/photo_gallery/images/thumbs/1.jpg",
72
+ "spec/images/photo_gallery/images/thumbs/10.jpg",
73
+ "spec/images/photo_gallery/images/thumbs/11.jpg",
74
+ "spec/images/photo_gallery/images/thumbs/12.jpg",
75
+ "spec/images/photo_gallery/images/thumbs/2.jpg",
76
+ "spec/images/photo_gallery/images/thumbs/3.jpg",
77
+ "spec/images/photo_gallery/images/thumbs/4.jpg",
78
+ "spec/images/photo_gallery/images/thumbs/5.jpg",
79
+ "spec/images/photo_gallery/images/thumbs/6.jpg",
80
+ "spec/images/photo_gallery/images/thumbs/7.jpg",
81
+ "spec/images/photo_gallery/images/thumbs/8.jpg",
82
+ "spec/images/photo_gallery/images/thumbs/9.jpg",
83
+ "spec/images/property/1.jpg",
84
+ "spec/images/property/2.jpg",
85
+ "spec/images/property/3.jpg",
86
+ "spec/images/property/4.jpg",
87
+ "spec/images/property/5.jpg",
88
+ "spec/images/property/6.jpg",
89
+ "spec/images/property/7.jpg",
90
+ "spec/images/property/ads/ad1.jpg",
91
+ "spec/images/property/ads/ad2.jpg",
92
+ "spec/images/property/ads/ad3.jpg",
93
+ "spec/images/property/thumbs/1.jpg",
94
+ "spec/images/property/thumbs/2.jpg",
95
+ "spec/images/property/thumbs/3.jpg",
96
+ "spec/images/property/thumbs/4.jpg",
97
+ "spec/images/property/thumbs/5.jpg",
98
+ "spec/images/property/thumbs/6.jpg",
99
+ "spec/images/property/thumbs/7.jpg",
100
+ "spec/images/responsive-gallery/icons/ajax-loader.gif",
101
+ "spec/images/responsive-gallery/icons/black.png",
102
+ "spec/images/responsive-gallery/icons/nav.png",
103
+ "spec/images/responsive-gallery/icons/nav_thumbs.png",
104
+ "spec/images/responsive-gallery/icons/pattern.png",
105
+ "spec/images/responsive-gallery/icons/views.png",
106
+ "spec/images/responsive-gallery/images/1.jpg",
107
+ "spec/images/responsive-gallery/images/10.jpg",
108
+ "spec/images/responsive-gallery/images/11.jpg",
109
+ "spec/images/responsive-gallery/images/12.jpg",
110
+ "spec/images/responsive-gallery/images/13.jpg",
111
+ "spec/images/responsive-gallery/images/14.jpg",
112
+ "spec/images/responsive-gallery/images/15.jpg",
113
+ "spec/images/responsive-gallery/images/16.jpg",
114
+ "spec/images/responsive-gallery/images/17.jpg",
115
+ "spec/images/responsive-gallery/images/18.jpg",
116
+ "spec/images/responsive-gallery/images/19.jpg",
117
+ "spec/images/responsive-gallery/images/2.jpg",
118
+ "spec/images/responsive-gallery/images/20.jpg",
119
+ "spec/images/responsive-gallery/images/21.jpg",
120
+ "spec/images/responsive-gallery/images/22.jpg",
121
+ "spec/images/responsive-gallery/images/23.jpg",
122
+ "spec/images/responsive-gallery/images/24.jpg",
123
+ "spec/images/responsive-gallery/images/3.jpg",
124
+ "spec/images/responsive-gallery/images/4.jpg",
125
+ "spec/images/responsive-gallery/images/5.jpg",
126
+ "spec/images/responsive-gallery/images/6.jpg",
127
+ "spec/images/responsive-gallery/images/7.jpg",
128
+ "spec/images/responsive-gallery/images/8.jpg",
129
+ "spec/images/responsive-gallery/images/9.jpg",
130
+ "spec/images/responsive-gallery/images/thumbs/1.jpg",
131
+ "spec/images/responsive-gallery/images/thumbs/10.jpg",
132
+ "spec/images/responsive-gallery/images/thumbs/11.jpg",
133
+ "spec/images/responsive-gallery/images/thumbs/12.jpg",
134
+ "spec/images/responsive-gallery/images/thumbs/13.jpg",
135
+ "spec/images/responsive-gallery/images/thumbs/14.jpg",
136
+ "spec/images/responsive-gallery/images/thumbs/15.jpg",
137
+ "spec/images/responsive-gallery/images/thumbs/16.jpg",
138
+ "spec/images/responsive-gallery/images/thumbs/17.jpg",
139
+ "spec/images/responsive-gallery/images/thumbs/18.jpg",
140
+ "spec/images/responsive-gallery/images/thumbs/19.jpg",
141
+ "spec/images/responsive-gallery/images/thumbs/2.jpg",
142
+ "spec/images/responsive-gallery/images/thumbs/20.jpg",
143
+ "spec/images/responsive-gallery/images/thumbs/21.jpg",
144
+ "spec/images/responsive-gallery/images/thumbs/22.jpg",
145
+ "spec/images/responsive-gallery/images/thumbs/23.jpg",
146
+ "spec/images/responsive-gallery/images/thumbs/24.jpg",
147
+ "spec/images/responsive-gallery/images/thumbs/3.jpg",
148
+ "spec/images/responsive-gallery/images/thumbs/4.jpg",
149
+ "spec/images/responsive-gallery/images/thumbs/5.jpg",
150
+ "spec/images/responsive-gallery/images/thumbs/6.jpg",
151
+ "spec/images/responsive-gallery/images/thumbs/7.jpg",
152
+ "spec/images/responsive-gallery/images/thumbs/8.jpg",
153
+ "spec/images/responsive-gallery/images/thumbs/9.jpg",
154
+ "spec/rails-gallery_spec.rb",
155
+ "spec/spec_helper.rb",
156
+ "vendor/assets/images/gallery/galleria/classic/loader.gif",
157
+ "vendor/assets/images/gallery/galleria/classic/map.png",
158
+ "vendor/assets/images/gallery/responsive/icons/ajax-loader.gif",
159
+ "vendor/assets/images/gallery/responsive/icons/black.png",
160
+ "vendor/assets/images/gallery/responsive/icons/nav.png",
161
+ "vendor/assets/images/gallery/responsive/icons/nav_thumbs.png",
162
+ "vendor/assets/images/gallery/responsive/icons/pattern.png",
163
+ "vendor/assets/images/gallery/responsive/icons/views.png",
164
+ "vendor/assets/images/gallery/slideshow/icons/grid.png",
165
+ "vendor/assets/images/gallery/slideshow/icons/loading.gif",
166
+ "vendor/assets/images/gallery/slideshow/icons/next.png",
167
+ "vendor/assets/images/gallery/slideshow/icons/next_thumb.png",
168
+ "vendor/assets/images/gallery/slideshow/icons/pause.png",
169
+ "vendor/assets/images/gallery/slideshow/icons/play.png",
170
+ "vendor/assets/images/gallery/slideshow/icons/prev.png",
171
+ "vendor/assets/images/gallery/slideshow/icons/prev_thumb.png",
172
+ "vendor/assets/images/gallery/slideshow/icons/up.png",
173
+ "vendor/assets/javascripts/gallery/galleria-1.2.8.js",
174
+ "vendor/assets/javascripts/gallery/galleria-1.2.8.min.js",
175
+ "vendor/assets/javascripts/gallery/galleria/classic.js",
176
+ "vendor/assets/javascripts/gallery/galleria/classic.min.js",
177
+ "vendor/assets/javascripts/gallery/responsive.js",
178
+ "vendor/assets/javascripts/gallery/slideshow.js",
179
+ "vendor/assets/javascripts/jquery/jquery.easing-1.3.js",
180
+ "vendor/assets/javascripts/jquery/jquery.elastislide.js",
181
+ "vendor/assets/javascripts/jquery/jquery.tmpl.min.js",
182
+ "vendor/assets/stylesheets/gallery/galleria/classic.css",
183
+ "vendor/assets/stylesheets/gallery/responsive.css",
184
+ "vendor/assets/stylesheets/gallery/responsive/elastislide.css",
185
+ "vendor/assets/stylesheets/gallery/slideshow.css"
186
+ ]
187
+ s.homepage = "http://github.com/kristianmandrup/rails-gallery"
188
+ s.licenses = ["MIT"]
189
+ s.require_paths = ["lib"]
190
+ s.rubygems_version = "1.8.24"
191
+ s.summary = "Javascript galleries & carousels for instant use with Rails 3+ :)"
192
+
193
+ if s.respond_to? :specification_version then
194
+ s.specification_version = 3
195
+
196
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
197
+ s.add_development_dependency(%q<rspec>, [">= 2.8.0"])
198
+ s.add_development_dependency(%q<rdoc>, [">= 3.12"])
199
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
200
+ s.add_development_dependency(%q<jeweler>, [">= 1.8.4"])
201
+ s.add_development_dependency(%q<simplecov>, [">= 0.5"])
202
+ else
203
+ s.add_dependency(%q<rspec>, [">= 2.8.0"])
204
+ s.add_dependency(%q<rdoc>, [">= 3.12"])
205
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
206
+ s.add_dependency(%q<jeweler>, [">= 1.8.4"])
207
+ s.add_dependency(%q<simplecov>, [">= 0.5"])
208
+ end
209
+ else
210
+ s.add_dependency(%q<rspec>, [">= 2.8.0"])
211
+ s.add_dependency(%q<rdoc>, [">= 3.12"])
212
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
213
+ s.add_dependency(%q<jeweler>, [">= 1.8.4"])
214
+ s.add_dependency(%q<simplecov>, [">= 0.5"])
215
+ end
216
+ end
217
+