rails-gallery 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -136,9 +136,13 @@ $(function() {
136
136
  },
137
137
  _addImageWrapper= function() {
138
138
 
139
+ try {
139
140
  // adds the structure for the large image and the navigation buttons (if total items > 1)
140
141
  // also initializes the navigation events
141
- $('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).prependTo( $rgGallery );
142
+ $('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).prependTo( $rgGallery );
143
+ } catch(e) {
144
+ return;
145
+ }
142
146
 
143
147
  // $('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).appendTo( $rgGallery );
144
148
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-26 00:00:00.000000000 Z
12
+ date: 2012-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: hashie
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.2.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.2.0
14
46
  - !ruby/object:Gem::Dependency
15
47
  name: rspec
16
48
  requirement: !ruby/object:Gem::Requirement
@@ -115,6 +147,7 @@ files:
115
147
  - config/locales/rails_gallery.yml
116
148
  - lib/rails-gallery.rb
117
149
  - lib/rails-gallery/engine.rb
150
+ - lib/rails-gallery/photo_validation.rb
118
151
  - lib/rails-gallery/rgallery.rb
119
152
  - lib/rails-gallery/rgallery/page.rb
120
153
  - lib/rails-gallery/rgallery/pages.rb
@@ -125,6 +158,7 @@ files:
125
158
  - lib/rails-gallery/view_helper/galleria.rb
126
159
  - lib/rails-gallery/view_helper/responsive.rb
127
160
  - lib/rails-gallery/view_helper/slideshow.rb
161
+ - lib/rails-gallery/view_helper/touch_touch.rb
128
162
  - rails-gallery.gemspec
129
163
  - spec/galleria_snippet.html
130
164
  - spec/galleria_snippet.html.haml
@@ -234,7 +268,9 @@ files:
234
268
  - spec/images/responsive-gallery/images/thumbs/7.jpg
235
269
  - spec/images/responsive-gallery/images/thumbs/8.jpg
236
270
  - spec/images/responsive-gallery/images/thumbs/9.jpg
237
- - spec/rails-gallery_spec.rb
271
+ - spec/rails-gallery/view_helper_spec.rb
272
+ - spec/rgallery/photos_spec.rb
273
+ - spec/rgallery/property_photo.rb
238
274
  - spec/spec_helper.rb
239
275
  - vendor/assets/images/gallery/galleria/classic/loader.gif
240
276
  - vendor/assets/images/gallery/galleria/classic/map.png
@@ -257,6 +293,7 @@ files:
257
293
  - vendor/assets/images/gallery/touch_touch/preloader.gif
258
294
  - vendor/assets/javascripts/gallery/galleria-1.2.8.js
259
295
  - vendor/assets/javascripts/gallery/galleria-1.2.8.min.js
296
+ - vendor/assets/javascripts/gallery/galleria.js
260
297
  - vendor/assets/javascripts/gallery/galleria/classic.js
261
298
  - vendor/assets/javascripts/gallery/galleria/classic.min.js
262
299
  - vendor/assets/javascripts/gallery/responsive.js
@@ -269,7 +306,7 @@ files:
269
306
  - vendor/assets/stylesheets/gallery/responsive.css
270
307
  - vendor/assets/stylesheets/gallery/responsive/elastislide.css
271
308
  - vendor/assets/stylesheets/gallery/slideshow.css
272
- - vendor/assets/stylesheets/touch_touch.css
309
+ - vendor/assets/stylesheets/gallery/touch_touch.css
273
310
  homepage: http://github.com/kristianmandrup/rails-gallery
274
311
  licenses:
275
312
  - MIT
@@ -285,7 +322,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
322
  version: '0'
286
323
  segments:
287
324
  - 0
288
- hash: -1925983774391637922
325
+ hash: -3945990969777321608
289
326
  required_rubygems_version: !ruby/object:Gem::Requirement
290
327
  none: false
291
328
  requirements:
@@ -1,7 +0,0 @@
1
- require 'spec_helper')
2
-
3
- describe "RailsGallery" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
6
- end
7
- end