refinerycms-photo-gallery 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +4 -0
- data/README.md +8 -8
- data/app/assets/javascripts/refinery/photo_gallery/photo_gallery.js +3 -4
- data/lib/refinery/photo_gallery/extensions/pages_controller_extension.rb +2 -5
- data/lib/refinery/photo_gallery/version.rb +1 -1
- metadata +16 -29
- data/screenshots/01_collections#index.png +0 -0
- data/screenshots/02_albums#create.png +0 -0
- data/screenshots/03_photos#upload.png +0 -0
- data/screenshots/04_photos#upload- chooser.png +0 -0
- data/screenshots/05_photo#upoad-queue.png +0 -0
- data/screenshots/06_photos#upload-uploading.png +0 -0
- data/screenshots/07_photos#upload-uploading_2.png +0 -0
- data/screenshots/08_photos#edit_multiple.png +0 -0
- data/screenshots/09_albums#index.png +0 -0
- data/screenshots/10_albums_EXIF_reading.png +0 -0
- data/screenshots/11_frontend_show.png +0 -0
- data/screenshots/12_show_photo_using_fancybox.png +0 -0
- data/screenshots/13_pages.png +0 -0
data/Changelog.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.1.2 [31 January 2013]
|
2
|
+
* fix issue #3 by changing around_filter to before_filter.
|
3
|
+
* fix issue #2 slide_to JS function don't work in Chrome
|
4
|
+
|
1
5
|
## 0.1.1 [20 October 2012]
|
2
6
|
* allow to edit filenames in plupload editor before uploading start
|
3
7
|
* allow to upload another photos in the same album after uploading is done, without need to do page refresh
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ This version of refinerycms-photo-gallery supports Rails 3.2.x and Refinery CMS
|
|
9
9
|
## Features
|
10
10
|
|
11
11
|
* Multiple photo uploading with [Plupload](http://www.plupload.com/) 1.5.4
|
12
|
-
*
|
12
|
+
* Only HTML5 runtime is supported
|
13
13
|
* Client side photo resizing to do faster uploading on slow connections
|
14
14
|
* Server side resizing with Carrierwave
|
15
15
|
* Attach album to page. One album can be attached to many pages.
|
@@ -25,11 +25,11 @@ use it on profit websites.
|
|
25
25
|
|
26
26
|
## Screenshots
|
27
27
|
|
28
|
-
All screenshots are in
|
28
|
+
All screenshots are in branch screenshots
|
29
29
|
|
30
|
-
![Photo uploading](https://raw.github.com/Matho/refinerycms-photo-gallery/
|
31
|
-
![Frontend album](https://raw.github.com/Matho/refinerycms-photo-gallery/
|
32
|
-
![Frontend album](https://raw.github.com/Matho/refinerycms-photo-gallery/
|
30
|
+
![Photo uploading](https://raw.github.com/Matho/refinerycms-photo-gallery/screenshots/screenshots/07_photos%23upload-uploading_2.png)
|
31
|
+
![Frontend album](https://raw.github.com/Matho/refinerycms-photo-gallery/screenshots/screenshots/11_frontend_show.png)
|
32
|
+
![Frontend album](https://raw.github.com/Matho/refinerycms-photo-gallery/screenshots/screenshots/12_show_photo_using_fancybox.png)
|
33
33
|
|
34
34
|
|
35
35
|
## Demo
|
@@ -73,7 +73,7 @@ Instructions for installation you can find under [www.sno.phy.queensu.ca/~phil/e
|
|
73
73
|
Open up your ``Gemfile`` and add at the bottom this line:
|
74
74
|
|
75
75
|
```ruby
|
76
|
-
gem 'refinerycms-photo-gallery', '~> 0.1.0'
|
76
|
+
gem 'refinerycms-photo-gallery', '~> 0.1.0'
|
77
77
|
```
|
78
78
|
|
79
79
|
Now, run
|
@@ -220,12 +220,12 @@ Remove gem from Gemfile
|
|
220
220
|
* add support for amazon S3 storage
|
221
221
|
* travis, codeclimate
|
222
222
|
|
223
|
+
## Code
|
224
|
+
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/Matho/refinerycms-photo-gallery)
|
223
225
|
|
224
226
|
## Known bugs
|
225
227
|
|
226
|
-
* Only html5 runtime is now supported
|
227
228
|
* Files with spaces in file names are rejected if you upload them using drag&drop
|
228
|
-
* After collection is created, you are redirected to albums#index instead of collection#index
|
229
229
|
* Due to Opera bug I turn off Plupload client side mime type validation. It is able to choose files with non valid
|
230
230
|
file extensions to upload queue. ( But server side validation reject these files.).
|
231
231
|
|
@@ -1,19 +1,18 @@
|
|
1
1
|
if (history && history.pushState) {
|
2
2
|
function slide_to(target){
|
3
3
|
var scrollToPosition = $(target).offset().top;
|
4
|
-
console.log(scrollToPosition);
|
5
4
|
|
6
|
-
|
5
|
+
|
6
|
+
$("html,body").animate({ 'scrollTop': scrollToPosition }, 600, function(){
|
7
7
|
//window.location.hash = "" + target;
|
8
8
|
// This hash change will jump the page to the top of the div with the same id
|
9
9
|
// so we need to force the page to back to the end of the animation
|
10
|
-
$(
|
10
|
+
$("html,body").animate({ 'scrollTop': scrollToPosition }, 0);
|
11
11
|
});
|
12
12
|
|
13
13
|
}
|
14
14
|
|
15
15
|
$(document).ready(function(){
|
16
|
-
|
17
16
|
$('#photo_gallery').on("click", ".pagination a[href]", function() {
|
18
17
|
slide_to($('#photo_gallery'));
|
19
18
|
$.getScript(this.href);
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
module Refinery
|
3
2
|
module PhotoGallery
|
4
3
|
module Extensions
|
@@ -6,10 +5,10 @@ module Refinery
|
|
6
5
|
|
7
6
|
def self.included(base)
|
8
7
|
base.class_eval do
|
9
|
-
|
8
|
+
before_filter :ajax_photo_gallery, :only => :show
|
10
9
|
|
11
10
|
|
12
|
-
def
|
11
|
+
def ajax_photo_gallery
|
13
12
|
# this is only for fragment caching to create 1 cache file version for first page
|
14
13
|
params[:page].blank? ? params[:page] = 1 : params[:page]
|
15
14
|
|
@@ -17,8 +16,6 @@ module Refinery
|
|
17
16
|
respond_to do |format|
|
18
17
|
format.js { render :partial=> "/refinery/photo_gallery/albums/photos"}
|
19
18
|
end
|
20
|
-
else
|
21
|
-
show
|
22
19
|
end
|
23
20
|
end
|
24
21
|
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-photo-gallery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1
|
5
4
|
prerelease:
|
5
|
+
version: 0.1.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Espen Antonsen
|
@@ -10,17 +10,16 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-01-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
|
16
|
+
type: :runtime
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.0.3
|
23
|
-
type: :runtime
|
24
23
|
prerelease: false
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
26
25
|
none: false
|
@@ -28,15 +27,15 @@ dependencies:
|
|
28
27
|
- - ~>
|
29
28
|
- !ruby/object:Gem::Version
|
30
29
|
version: 2.0.3
|
30
|
+
name: refinerycms-core
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
|
-
|
32
|
+
type: :runtime
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
none: false
|
35
35
|
requirements:
|
36
36
|
- - ~>
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 2.0.1
|
39
|
-
type: :runtime
|
40
39
|
prerelease: false
|
41
40
|
version_requirements: !ruby/object:Gem::Requirement
|
42
41
|
none: false
|
@@ -44,15 +43,15 @@ dependencies:
|
|
44
43
|
- - ~>
|
45
44
|
- !ruby/object:Gem::Version
|
46
45
|
version: 2.0.1
|
46
|
+
name: refinerycms-settings
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
|
48
|
+
type: :runtime
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
type: :runtime
|
56
55
|
prerelease: false
|
57
56
|
version_requirements: !ruby/object:Gem::Requirement
|
58
57
|
none: false
|
@@ -60,15 +59,15 @@ dependencies:
|
|
60
59
|
- - ! '>='
|
61
60
|
- !ruby/object:Gem::Version
|
62
61
|
version: '0'
|
62
|
+
name: mime-types
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
|
-
|
64
|
+
type: :runtime
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: 0.6.2
|
71
|
-
type: :runtime
|
72
71
|
prerelease: false
|
73
72
|
version_requirements: !ruby/object:Gem::Requirement
|
74
73
|
none: false
|
@@ -76,15 +75,15 @@ dependencies:
|
|
76
75
|
- - '='
|
77
76
|
- !ruby/object:Gem::Version
|
78
77
|
version: 0.6.2
|
78
|
+
name: carrierwave
|
79
79
|
- !ruby/object:Gem::Dependency
|
80
|
-
|
80
|
+
type: :runtime
|
81
81
|
requirement: !ruby/object:Gem::Requirement
|
82
82
|
none: false
|
83
83
|
requirements:
|
84
84
|
- - ! '>='
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
|
-
type: :runtime
|
88
87
|
prerelease: false
|
89
88
|
version_requirements: !ruby/object:Gem::Requirement
|
90
89
|
none: false
|
@@ -92,15 +91,15 @@ dependencies:
|
|
92
91
|
- - ! '>='
|
93
92
|
- !ruby/object:Gem::Version
|
94
93
|
version: '0'
|
94
|
+
name: mini_magick
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
|
-
|
96
|
+
type: :runtime
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
98
98
|
none: false
|
99
99
|
requirements:
|
100
100
|
- - ! '>='
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
|
-
type: :runtime
|
104
103
|
prerelease: false
|
105
104
|
version_requirements: !ruby/object:Gem::Requirement
|
106
105
|
none: false
|
@@ -108,15 +107,15 @@ dependencies:
|
|
108
107
|
- - ! '>='
|
109
108
|
- !ruby/object:Gem::Version
|
110
109
|
version: '0'
|
110
|
+
name: mini_exiftool
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
|
112
|
+
type: :development
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
none: false
|
115
115
|
requirements:
|
116
116
|
- - ~>
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: 2.0.0
|
119
|
-
type: :development
|
120
119
|
prerelease: false
|
121
120
|
version_requirements: !ruby/object:Gem::Requirement
|
122
121
|
none: false
|
@@ -124,6 +123,7 @@ dependencies:
|
|
124
123
|
- - ~>
|
125
124
|
- !ruby/object:Gem::Version
|
126
125
|
version: 2.0.0
|
126
|
+
name: refinerycms-testing
|
127
127
|
description: Open source Ruby on Rails photo gallery engine designed for integration
|
128
128
|
with Refinery CMS.
|
129
129
|
email: espen@inspired.no, martin.markech@matho.sk
|
@@ -289,19 +289,6 @@ files:
|
|
289
289
|
- lib/refinery/photo_gallery/version.rb
|
290
290
|
- lib/refinerycms-photo-gallery.rb
|
291
291
|
- refinerycms-photo-gallery.gemspec
|
292
|
-
- screenshots/01_collections#index.png
|
293
|
-
- screenshots/02_albums#create.png
|
294
|
-
- screenshots/03_photos#upload.png
|
295
|
-
- screenshots/04_photos#upload- chooser.png
|
296
|
-
- screenshots/05_photo#upoad-queue.png
|
297
|
-
- screenshots/06_photos#upload-uploading.png
|
298
|
-
- screenshots/07_photos#upload-uploading_2.png
|
299
|
-
- screenshots/08_photos#edit_multiple.png
|
300
|
-
- screenshots/09_albums#index.png
|
301
|
-
- screenshots/10_albums_EXIF_reading.png
|
302
|
-
- screenshots/11_frontend_show.png
|
303
|
-
- screenshots/12_show_photo_using_fancybox.png
|
304
|
-
- screenshots/13_pages.png
|
305
292
|
homepage: http://github.com/Matho/refinerycms-photo-gallery
|
306
293
|
licenses: []
|
307
294
|
post_install_message:
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/screenshots/13_pages.png
DELETED
Binary file
|