ruby_gallery 0.1.6 → 0.1.7

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.
Files changed (31) hide show
  1. data/.DS_Store +0 -0
  2. data/VERSION +1 -1
  3. data/app/assets/images/.DS_Store +0 -0
  4. data/app/assets/javascripts/.DS_Store +0 -0
  5. data/app/assets/javascripts/ruby_gallery/app.js +4 -0
  6. data/app/assets/javascripts/{ruby_gallery.js → ruby_gallery/ruby_gallery.js} +2 -2
  7. data/app/assets/stylesheets/{colorbox.css → ruby_gallery/colorbox.css.erb} +14 -14
  8. data/app/assets/stylesheets/{ruby_gallery.css.scss → ruby_gallery/ruby_gallery.css.scss.erb} +28 -15
  9. data/app/assets/stylesheets/ruby_gallery/styles.css +14 -0
  10. data/app/helpers/ruby_gallery/ruby_gallery_helper.rb +8 -8
  11. data/app/views/shared/_photo_box.html.erb +3 -2
  12. data/config/initializers/_load_config.rb +5 -0
  13. data/config/initializers/ruby_gallery.rb +0 -0
  14. data/config/locales/ruby_gallery.en.yml +10 -0
  15. data/lib/generators/ruby_gallery/install_generator.rb +4 -52
  16. data/lib/ruby_gallery/attachments_controller.rb +1 -0
  17. data/ruby_gallery.gemspec +25 -18
  18. metadata +26 -19
  19. data/app/helpers/ruby_gallery/test_helper.rb +0 -16
  20. /data/app/assets/images/{border.png → ruby_gallery/border.png} +0 -0
  21. /data/app/assets/images/{controls.png → ruby_gallery/controls.png} +0 -0
  22. /data/app/assets/images/{loading.gif → ruby_gallery/loading.gif} +0 -0
  23. /data/app/assets/images/{loading_background.png → ruby_gallery/loading_background.png} +0 -0
  24. /data/app/assets/images/{overlay.png → ruby_gallery/overlay.png} +0 -0
  25. /data/app/assets/images/{upload_processing.gif → ruby_gallery/upload_processing.gif} +0 -0
  26. /data/app/assets/javascripts/{jquery-ui.js → ruby_gallery/jquery-ui.js} +0 -0
  27. /data/app/assets/javascripts/{jquery.colorbox.js → ruby_gallery/jquery.colorbox.js} +0 -0
  28. /data/app/assets/stylesheets/{entypo.eot → ruby_gallery/entypo.eot} +0 -0
  29. /data/app/assets/stylesheets/{entypo.svg → ruby_gallery/entypo.svg} +0 -0
  30. /data/app/assets/stylesheets/{entypo.ttf → ruby_gallery/entypo.ttf} +0 -0
  31. /data/app/assets/stylesheets/{entypo.woff → ruby_gallery/entypo.woff} +0 -0
data/.DS_Store ADDED
Binary file
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
Binary file
Binary file
@@ -0,0 +1,4 @@
1
+ //= require ./jquery-ui
2
+ //= require ./jquery.colorbox
3
+ //= require ./ruby_gallery
4
+ //= require jquery-fileupload/basic
@@ -66,8 +66,8 @@ $(document).ready(function(){
66
66
  });
67
67
 
68
68
  $(document.body).delegate('span.remove-photo','mouseout',function(event){
69
- $(this).addClass('blur');
70
- $(this).removeClass('hide');
69
+ $(this).removeClass('blur');
70
+ $(this).addClass('hide');
71
71
 
72
72
  });
73
73
  });
@@ -19,24 +19,24 @@
19
19
  Change the following styles to modify the appearance of Colorbox. They are
20
20
  ordered & tabbed in a way that represents the nesting of the generated HTML.
21
21
  */
22
- #cboxOverlay{background:url(/assets/overlay.png) repeat 0 0;}
22
+ #cboxOverlay{background:url(<%= asset_path "ruby_gallery/overlay.png" %>) repeat 0 0;}
23
23
  #colorbox{outline:0;}
24
- #cboxTopLeft{width:21px; height:21px; background:url(/assets/controls.png) no-repeat -101px 0;}
25
- #cboxTopRight{width:21px; height:21px; background:url(/assets/controls.png) no-repeat -130px 0;}
26
- #cboxBottomLeft{width:21px; height:21px; background:url(/assets/controls.png) no-repeat -101px -29px;}
27
- #cboxBottomRight{width:21px; height:21px; background:url(/assets/controls.png) no-repeat -130px -29px;}
28
- #cboxMiddleLeft{width:21px; background:url(/assets/controls.png) left top repeat-y;}
29
- #cboxMiddleRight{width:21px; background:url(/assets/controls.png) right top repeat-y;}
30
- #cboxTopCenter{height:21px; background:url(/assets/border.png) 0 0 repeat-x;}
31
- #cboxBottomCenter{height:21px; background:url(/assets/border.png) 0 -29px repeat-x;}
24
+ #cboxTopLeft{width:21px; height:21px; background:url(<%= asset_path "ruby_gallery/controls.png" %>) no-repeat -101px 0;}
25
+ #cboxTopRight{width:21px; height:21px; background:url(<%= asset_path "ruby_gallery/controls.png" %>) no-repeat -130px 0;}
26
+ #cboxBottomLeft{width:21px; height:21px; background:url(<%= asset_path "ruby_gallery/controls.png" %>) no-repeat -101px -29px;}
27
+ #cboxBottomRight{width:21px; height:21px; background:url(<%= asset_path "ruby_gallery/controls.png" %>) no-repeat -130px -29px;}
28
+ #cboxMiddleLeft{width:21px; background:url(<%= asset_path "ruby_gallery/controls.png" %>) left top repeat-y;}
29
+ #cboxMiddleRight{width:21px; background:url(<%= asset_path "ruby_gallery/controls.png" %>) right top repeat-y;}
30
+ #cboxTopCenter{height:21px; background:url(<%= asset_path "ruby_gallery/border.png" %>) 0 0 repeat-x;}
31
+ #cboxBottomCenter{height:21px; background:url(<%= asset_path "ruby_gallery/border.png" %>) 0 -29px repeat-x;}
32
32
  #cboxContent{background:#fff; overflow:hidden;}
33
33
  .cboxIframe{background:#fff;}
34
34
  #cboxError{padding:50px; border:1px solid #ccc;}
35
35
  #cboxLoadedContent{margin-bottom:28px;}
36
36
  #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
37
37
  #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
38
- #cboxLoadingOverlay{background:url(/assets/loading_background.png) no-repeat center center;}
39
- #cboxLoadingGraphic{background:url(/assets/loading.gif) no-repeat center center;}
38
+ #cboxLoadingOverlay{background:url(<%= asset_path "ruby_gallery/loading_background.png" %>) no-repeat center center;}
39
+ #cboxLoadingGraphic{background:url(<%= asset_path "ruby_gallery/loading.gif" %>) no-repeat center center;}
40
40
 
41
41
  /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
42
42
  #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
@@ -45,11 +45,11 @@
45
45
  #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
46
46
 
47
47
  #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
48
- #cboxPrevious{position:absolute; bottom:0; left:0; background:url(/assets/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
48
+ #cboxPrevious{position:absolute; bottom:0; left:0; background:url(<%= asset_path "ruby_gallery/controls.png" %>) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
49
49
  #cboxPrevious:hover{background-position:-75px -25px;}
50
- #cboxNext{position:absolute; bottom:0; left:27px; background:url(/assets/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
50
+ #cboxNext{position:absolute; bottom:0; left:27px; background:url(<%= asset_path "ruby_gallery/controls.png" %>) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
51
51
  #cboxNext:hover{background-position:-50px -25px;}
52
- #cboxClose{position:absolute; bottom:0; right:0; background:url(/assets/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
52
+ #cboxClose{position:absolute; bottom:0; right:0; background:url(<%= asset_path "ruby_gallery/controls.png" %>) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
53
53
  #cboxClose:hover{background-position:-25px -25px;}
54
54
 
55
55
  /*
@@ -2,11 +2,11 @@
2
2
 
3
3
  @font-face {
4
4
  font-family: "entypo";
5
- src: url('/assets/entypo.eot');
6
- src: url('/assets/entypo.eot?#iefix') format('embedded-opentype'),
7
- url('/assets/entypo.woff') format('woff'),
8
- url('/assets/entypo.ttf') format('truetype'),
9
- url('/assets/entypo.svg#EntypoRegular') format('svg');
5
+ src: url(<%= asset_path "ruby_gallery/entypo.eot" %>);
6
+ src: url(<%= asset_path "ruby_gallery/entypo.eot?#iefix"%>) format('embedded-opentype'),
7
+ url(<%= asset_path "ruby_gallery/entypo.woff"%>) format('woff'),
8
+ url(<%= asset_path "ruby_gallery/entypo.ttf"%>) format('truetype'),
9
+ url(<%= asset_path "ruby_gallery/entypo.svg#EntypoRegular"%>) format('svg');
10
10
  font-weight: normal;
11
11
  font-style: normal;
12
12
  }
@@ -24,34 +24,44 @@ form.fileupload{
24
24
  }
25
25
 
26
26
  div.upload-box{
27
+ @include clearfix;
27
28
  display: block;
28
- margin: 0 auto !important;
29
- width: 450px !important;
29
+ margin: 0 auto;
30
+ width:420px;
30
31
  div.legend {
32
+ float: left;
33
+ width: 100%;
31
34
  border-bottom: 3px solid #bbb;
32
35
  margin-bottom: 10px;
33
36
  color: #999;
34
37
  font-weight: bold;
35
38
  font-size: 14px;
36
39
  }
40
+
41
+ div.form-box {
42
+ float: left;
43
+ }
37
44
  }
38
45
 
39
46
 
40
47
  div.file-box{
48
+ float: left;
49
+ @include clearfix;
41
50
  display:block;
42
51
  margin-bottom: 5px;
43
- height:185px;
44
52
  width: 100%;
45
- ul {
46
- @include clearfix;
53
+ border: 1px solid #999;
54
+ @include box-shadow(1px 1px 3px 0px #999);
55
+ ul#photos_album {
47
56
  width: 100%;
57
+ float: left;
58
+ @include clearfix;
48
59
  height: 275px;
49
- overflow-y: scroll;
60
+ overflow-y: auto;
50
61
  list-style: none;
51
62
  display: inline-block;
63
+ margin-left: -28px;
52
64
 
53
- border: 1px solid #999;
54
- @include box-shadow(1px 3px 5px 0px #999);
55
65
  li.photo-cat {
56
66
  position: relative;
57
67
  float: left;
@@ -61,13 +71,16 @@ div.file-box{
61
71
  text-align: center;
62
72
  span.remove-photo {
63
73
  position: absolute;
64
- top: 5px ;
74
+ top: -15px ;
65
75
  right: 10px;
66
76
  }
67
77
  a.gallery-colorbox{
78
+ @include clearfix;
68
79
  text-decoration: none;
69
80
  img{
81
+ float: left;
70
82
  @include box-shadow(1px 0px 3px 0px #999);
83
+
71
84
  }
72
85
  }
73
86
  }
@@ -81,7 +94,7 @@ span.upload-button {
81
94
  }
82
95
 
83
96
  div.pic-icon{
84
- background: url("/assets/upload_processing.gif");
97
+ background: url(<%= asset_path "ruby_gallery/upload_processing.gif"%>);
85
98
  margin:45px;
86
99
  width:35px;
87
100
  height:35px;
@@ -0,0 +1,14 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require ./colorbox
12
+ *= require ./ruby_gallery
13
+ *= require jquery.fileupload-ui
14
+ */
@@ -4,23 +4,23 @@ module RubyGallery::RubyGalleryHelper
4
4
  opts = {reorder: true, multiple_upload: true}.merge(opts)
5
5
  content = ""
6
6
  content += content_tag(:div, class: "upload-box") do
7
- [content_tag(:div, 'Upload album', class: "legend"),
7
+ [content_tag(:div, t("ruby_gallery.web_content.upload_album"), class: "legend"),
8
8
  content_tag(:div, class: "form-box") do
9
9
  [content_tag(:form, id: "fileupload", class: "fileupload", method: "POST", enctype: "multipart/form-data", action: "/#{model_name}/upload_album?id=#{params[:id]}", multipart: true) do
10
10
  content_tag(:span, id: "upload_button", class: "upload-button btn btn-success fileinput-button", status: "") do
11
11
  [content_tag(:i, "", class: "icon-plus icon-white"),
12
- content_tag(:span, "Upload"),
12
+ content_tag(:span, t("ruby_gallery.web_content.upload_button")),
13
13
  tag(:input, class: "upload-button-input", type: :file, multiple: "multiple", name: "file[]")].join.html_safe
14
14
  end
15
15
  end,
16
- content_tag(:a, "Close", class: "close-link", href: "#")].join.html_safe
16
+ content_tag(:a, t("ruby_gallery.web_content.close_link"), class: "close-link", href: "#")].join.html_safe
17
17
  end].join.html_safe +
18
18
 
19
19
  [content_tag(:div , id: "file_box", class: "file-box", data_model: "#{model_name}", model_id: "#{object.id}") do
20
20
  content_tag(:ul, id: "photos_album", class: "album #{opts[:reorder] ? "ruby-gallery-sortable" : ""}", data_url: "/#{model_name}/update_ruby_gallery_position?id=#{object.id}") do
21
21
 
22
22
  if object.nil? || object.album_photos.size == 0
23
- content_tag(:span, "No file selected", id: "no_file")
23
+ content_tag(:span, t("ruby_gallery.web_content.no_file_selected"), id: "no_file")
24
24
  else
25
25
  img_array = []
26
26
  object.album_photos.order("position ASC").each do |photo|
@@ -60,13 +60,13 @@ module RubyGallery::RubyGalleryHelper
60
60
  var types = /(.)(png|jpg|gif|jpeg)$/i;
61
61
  var file = data.files[0];
62
62
  if (types.test(file.type) || types.test(file.name) ){
63
- $('span.upload-button span').html("processing");
63
+ $('span.upload-button span').html("#{t("ruby_gallery.web_content.processing")}");
64
64
  $("span#no_285.giffile").remove();
65
65
  $("span#no_file").remove();
66
66
  $('#file_box ul#photos_album').append("<li class='photo-cat new-photo' ><div id='progress' class='pic-icon' ></div></li>");
67
67
  data.submit();
68
68
  } else {
69
- alert("Please upload image files");
69
+ alert("#{t("ruby_gallery.web_content.please_upload_image_files")}");
70
70
  }
71
71
  }
72
72
  },
@@ -77,12 +77,12 @@ module RubyGallery::RubyGalleryHelper
77
77
  done: function(e, data){
78
78
  var report = '';
79
79
  if(data.result != 'failed'){
80
- $('span#upload_button span').html("Upload");
80
+ $('span#upload_button span').html("#{t("ruby_gallery.web_content.upload_button")}");
81
81
  var fn = renderPhoto(data.result);
82
82
  $('#file_box ul#photos_album li.new-photo').fadeOut();
83
83
  fn.call();
84
84
  } else {
85
- $('#file_box ul#photos_album li.new-photo').html("Upload failed!");
85
+ $('#file_box ul#photos_album li.new-photo').html("#{t("ruby_gallery.web_content.upload_failed")}");
86
86
  var t = setTimeout(function(){
87
87
  $('#file_box ul#photos_album li.new-photo').remove();
88
88
  }, 2000);
@@ -1,6 +1,7 @@
1
1
  <li class='photo-cat photo_<%=photo.id %>' key="<%= photo.id%>">
2
2
  <span class="entypo-icon-1 remove-photo hide", photo_id="<%= photo.id %>">&#10006;</span>
3
- <a class="gallery-colorbox" href="<%= photo.photo.url(:medium)%>">
4
- <%= image_tag photo.photo.url(:thumb) ,size: '120x120' %>
3
+ <a class="gallery-colorbox" href="<%= photo.photo.url(:original)%>">
4
+ <%= image_tag photo.photo.url(:medium) ,size: '120x120' %>
5
+ </a>
5
6
  <input type="hidden" name="position-item" class="item-position" value="<%= photo.position%>" />
6
7
  </li>
@@ -0,0 +1,5 @@
1
+ APP_CONFIG = {development: {}, test: {}, staging: {}, production: {}} if defined?(APP_CONFIG) == false
2
+
3
+ if File.exists?("#{Rails.root}/config/config.yml")
4
+ APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env].symbolize_keys
5
+ end
File without changes
@@ -0,0 +1,10 @@
1
+ en:
2
+ ruby_gallery:
3
+ web_content:
4
+ upload_album: Upload Album
5
+ upload_button: Upload
6
+ close_link: Close
7
+ no_file_selected: No file selected.
8
+ processing: processing
9
+ please_upload_image_files: Please upload image files.
10
+ upload_failed: Upload failed.
@@ -11,67 +11,19 @@ module RubyGallery
11
11
  desc "Creates a Congig file and copy locate files to your application."
12
12
 
13
13
  class_option :orm
14
-
15
- def copy_jsfile
16
- copy_file "../../../app/assets/javascripts/ruby_gallery.js", "app/assets/javascripts/ruby_gallery.js"
17
- copy_file "../../../app/assets/javascripts/jquery-ui.js", "app/assets/javascripts/jquery-ui.js"
18
- copy_file "../../../app/assets/javascripts/jquery.colorbox.js", "app/assets/javascripts/jquery.colorbox.js"
19
- end
20
-
21
- def copy_cssfile
22
- copy_file "../../../app/assets/stylesheets/ruby_gallery.css.scss", "app/assets/stylesheets/ruby_gallery.css.scss"
23
- copy_file "../../../app/assets/stylesheets/colorbox.css", "app/assets/stylesheets/colorbox.css"
24
- end
25
-
26
- def copy_imgfile
27
- copy_file "../../../app/assets/images/upload_processing.gif", "app/assets/images/upload_processing.gif"
28
- copy_file "../../../app/assets/images/controls.png", "app/assets/images/controls.png"
29
- copy_file "../../../app/assets/images/loading.gif", "app/assets/images/loading.gif"
30
- copy_file "../../../app/assets/images/loading_background.png", "app/assets/images/loading_background.png"
31
- copy_file "../../../app/assets/images/overlay.png", "app/assets/images/overlay.png"
32
- copy_file "../../../app/assets/images/border.png", "app/assets/images/border.png"
33
- end
34
-
35
-
36
-
14
+
37
15
  def inject_javascript
38
16
  append_to_file 'app/assets/javascripts/application.js' do
39
17
  out = "\n"
40
- out << "//= require ruby_gallery"
41
- end
42
-
43
- append_to_file 'app/assets/javascripts/application.js' do
44
- out = "\n"
45
- out << "//= require jquery.colorbox"
46
- end
47
-
48
- append_to_file 'app/assets/javascripts/application.js' do
49
- out = "\n"
50
- out << "//= require jquery-fileupload/basic"
51
- end
52
-
53
- append_to_file 'app/assets/javascripts/application.js' do
54
- out = "\n"
55
- out << "//= require jquery-ui"
18
+ out << "//= require ruby_gallery/app"
56
19
  end
57
20
  end
58
21
 
59
22
  def inject_css
60
23
  append_to_file 'app/assets/stylesheets/application.css' do
61
24
  out = "\n"
62
- out << "/* *= require ruby_gallery */"
63
- end
64
-
65
- append_to_file 'app/assets/stylesheets/application.css' do
66
- out = "\n"
67
- out << "/* *= require colorbox */"
68
- end
69
-
70
- append_to_file 'app/assets/stylesheets/application.css' do
71
- out = "\n"
72
- out << "/* *= require jquery.fileupload-ui */"
73
- end
74
-
25
+ out << "/* *= require ruby_gallery/styles */"
26
+ end
75
27
  end
76
28
 
77
29
  end
@@ -28,6 +28,7 @@ module RubyGallery
28
28
  end
29
29
 
30
30
  define_method("update_ruby_gallery_position") do
31
+
31
32
  object = class_object.find(params[:id])
32
33
  json = params[:json]
33
34
  json.each do |key,value|
data/ruby_gallery.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ruby_gallery"
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Dang"]
12
- s.date = "2013-03-29"
12
+ s.date = "2013-04-01"
13
13
  s.description = "Upload image use gallery"
14
14
  s.email = "peter@rubify.com"
15
15
  s.extra_rdoc_files = [
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  "README.markdown"
18
18
  ]
19
19
  s.files = [
20
+ ".DS_Store",
20
21
  ".document",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
@@ -25,26 +26,32 @@ Gem::Specification.new do |s|
25
26
  "Rakefile",
26
27
  "VERSION",
27
28
  "app/.DS_Store",
28
- "app/assets/images/border.png",
29
- "app/assets/images/controls.png",
30
- "app/assets/images/loading.gif",
31
- "app/assets/images/loading_background.png",
32
- "app/assets/images/overlay.png",
33
- "app/assets/images/upload_processing.gif",
34
- "app/assets/javascripts/jquery-ui.js",
35
- "app/assets/javascripts/jquery.colorbox.js",
36
- "app/assets/javascripts/ruby_gallery.js",
29
+ "app/assets/images/.DS_Store",
30
+ "app/assets/images/ruby_gallery/border.png",
31
+ "app/assets/images/ruby_gallery/controls.png",
32
+ "app/assets/images/ruby_gallery/loading.gif",
33
+ "app/assets/images/ruby_gallery/loading_background.png",
34
+ "app/assets/images/ruby_gallery/overlay.png",
35
+ "app/assets/images/ruby_gallery/upload_processing.gif",
36
+ "app/assets/javascripts/.DS_Store",
37
+ "app/assets/javascripts/ruby_gallery/app.js",
38
+ "app/assets/javascripts/ruby_gallery/jquery-ui.js",
39
+ "app/assets/javascripts/ruby_gallery/jquery.colorbox.js",
40
+ "app/assets/javascripts/ruby_gallery/ruby_gallery.js",
37
41
  "app/assets/stylesheets/.DS_Store",
38
- "app/assets/stylesheets/colorbox.css",
39
- "app/assets/stylesheets/entypo.eot",
40
- "app/assets/stylesheets/entypo.svg",
41
- "app/assets/stylesheets/entypo.ttf",
42
- "app/assets/stylesheets/entypo.woff",
43
- "app/assets/stylesheets/ruby_gallery.css.scss",
42
+ "app/assets/stylesheets/ruby_gallery/colorbox.css.erb",
43
+ "app/assets/stylesheets/ruby_gallery/entypo.eot",
44
+ "app/assets/stylesheets/ruby_gallery/entypo.svg",
45
+ "app/assets/stylesheets/ruby_gallery/entypo.ttf",
46
+ "app/assets/stylesheets/ruby_gallery/entypo.woff",
47
+ "app/assets/stylesheets/ruby_gallery/ruby_gallery.css.scss.erb",
48
+ "app/assets/stylesheets/ruby_gallery/styles.css",
44
49
  "app/helpers/ruby_gallery/ruby_gallery_helper.rb",
45
- "app/helpers/ruby_gallery/test_helper.rb",
46
50
  "app/models/album_photo.rb",
47
51
  "app/views/shared/_photo_box.html.erb",
52
+ "config/initializers/_load_config.rb",
53
+ "config/initializers/ruby_gallery.rb",
54
+ "config/locales/ruby_gallery.en.yml",
48
55
  "lib/generators/active_record/ruby_gallery_generator.rb",
49
56
  "lib/generators/active_record/templates/album_photo_migration.rb",
50
57
  "lib/generators/active_record/templates/migration.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-29 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bourbon
@@ -147,6 +147,7 @@ extra_rdoc_files:
147
147
  - LICENSE.txt
148
148
  - README.markdown
149
149
  files:
150
+ - .DS_Store
150
151
  - .document
151
152
  - Gemfile
152
153
  - Gemfile.lock
@@ -155,26 +156,32 @@ files:
155
156
  - Rakefile
156
157
  - VERSION
157
158
  - app/.DS_Store
158
- - app/assets/images/border.png
159
- - app/assets/images/controls.png
160
- - app/assets/images/loading.gif
161
- - app/assets/images/loading_background.png
162
- - app/assets/images/overlay.png
163
- - app/assets/images/upload_processing.gif
164
- - app/assets/javascripts/jquery-ui.js
165
- - app/assets/javascripts/jquery.colorbox.js
166
- - app/assets/javascripts/ruby_gallery.js
159
+ - app/assets/images/.DS_Store
160
+ - app/assets/images/ruby_gallery/border.png
161
+ - app/assets/images/ruby_gallery/controls.png
162
+ - app/assets/images/ruby_gallery/loading.gif
163
+ - app/assets/images/ruby_gallery/loading_background.png
164
+ - app/assets/images/ruby_gallery/overlay.png
165
+ - app/assets/images/ruby_gallery/upload_processing.gif
166
+ - app/assets/javascripts/.DS_Store
167
+ - app/assets/javascripts/ruby_gallery/app.js
168
+ - app/assets/javascripts/ruby_gallery/jquery-ui.js
169
+ - app/assets/javascripts/ruby_gallery/jquery.colorbox.js
170
+ - app/assets/javascripts/ruby_gallery/ruby_gallery.js
167
171
  - app/assets/stylesheets/.DS_Store
168
- - app/assets/stylesheets/colorbox.css
169
- - app/assets/stylesheets/entypo.eot
170
- - app/assets/stylesheets/entypo.svg
171
- - app/assets/stylesheets/entypo.ttf
172
- - app/assets/stylesheets/entypo.woff
173
- - app/assets/stylesheets/ruby_gallery.css.scss
172
+ - app/assets/stylesheets/ruby_gallery/colorbox.css.erb
173
+ - app/assets/stylesheets/ruby_gallery/entypo.eot
174
+ - app/assets/stylesheets/ruby_gallery/entypo.svg
175
+ - app/assets/stylesheets/ruby_gallery/entypo.ttf
176
+ - app/assets/stylesheets/ruby_gallery/entypo.woff
177
+ - app/assets/stylesheets/ruby_gallery/ruby_gallery.css.scss.erb
178
+ - app/assets/stylesheets/ruby_gallery/styles.css
174
179
  - app/helpers/ruby_gallery/ruby_gallery_helper.rb
175
- - app/helpers/ruby_gallery/test_helper.rb
176
180
  - app/models/album_photo.rb
177
181
  - app/views/shared/_photo_box.html.erb
182
+ - config/initializers/_load_config.rb
183
+ - config/initializers/ruby_gallery.rb
184
+ - config/locales/ruby_gallery.en.yml
178
185
  - lib/generators/active_record/ruby_gallery_generator.rb
179
186
  - lib/generators/active_record/templates/album_photo_migration.rb
180
187
  - lib/generators/active_record/templates/migration.rb
@@ -201,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
208
  version: '0'
202
209
  segments:
203
210
  - 0
204
- hash: 392206747184538881
211
+ hash: -4397084449230226205
205
212
  required_rubygems_version: !ruby/object:Gem::Requirement
206
213
  none: false
207
214
  requirements:
@@ -1,16 +0,0 @@
1
- module RubyGallery::TestHelper
2
- def upload_factory(model_name, fields={})
3
- object = model_name.to_s.singularize.classify.constantize.find(params[:id])
4
-
5
- content_tag(:div, class: "factory-box") do
6
- content_tag(:form, action: "/upload_factories/upload_processes")
7
- content_tag(:ul, class: "factory-content") do
8
- content_tag(:li, class: "factory-item") do
9
- [tag(:label, 'Upload Photo'),
10
- tag(:input, type: 'file', multiple: "", class: "factory-input")].join.html_safe
11
- end
12
- end
13
- end
14
-
15
- end #end def
16
- end