cropimage_riffpad 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/.gitignore +17 -0
  2. data/.gitignore.swp +0 -0
  3. data/Gemfile +13 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +29 -0
  6. data/Rakefile +1 -0
  7. data/app/assets/images/Jcrop.gif +0 -0
  8. data/app/assets/images/blank.gif +0 -0
  9. data/app/assets/images/fancy_close.png +0 -0
  10. data/app/assets/images/fancy_loading.png +0 -0
  11. data/app/assets/images/fancy_nav_left.png +0 -0
  12. data/app/assets/images/fancy_nav_right.png +0 -0
  13. data/app/assets/images/fancy_shadow_e.png +0 -0
  14. data/app/assets/images/fancy_shadow_n.png +0 -0
  15. data/app/assets/images/fancy_shadow_ne.png +0 -0
  16. data/app/assets/images/fancy_shadow_nw.png +0 -0
  17. data/app/assets/images/fancy_shadow_s.png +0 -0
  18. data/app/assets/images/fancy_shadow_se.png +0 -0
  19. data/app/assets/images/fancy_shadow_sw.png +0 -0
  20. data/app/assets/images/fancy_shadow_w.png +0 -0
  21. data/app/assets/images/fancy_title_left.png +0 -0
  22. data/app/assets/images/fancy_title_main.png +0 -0
  23. data/app/assets/images/fancy_title_over.png +0 -0
  24. data/app/assets/images/fancy_title_right.png +0 -0
  25. data/app/assets/images/fancybox-x.png +0 -0
  26. data/app/assets/images/fancybox-y.png +0 -0
  27. data/app/assets/images/fancybox.png +0 -0
  28. data/app/assets/javascripts/.DS_Store +0 -0
  29. data/app/assets/javascripts/awesome_gem.js +14 -0
  30. data/app/assets/javascripts/jquery.Jcrop.js +1695 -0
  31. data/app/assets/javascripts/jquery.color.js +123 -0
  32. data/app/assets/javascripts/jquery.easing-1.3.pack.js +72 -0
  33. data/app/assets/javascripts/jquery.fancybox-1.3.4.js +1156 -0
  34. data/app/assets/javascripts/jquery.mousewheel-3.0.4.pack.js +14 -0
  35. data/app/assets/stylesheets/.DS_Store +0 -0
  36. data/app/assets/stylesheets/awesome_gem.css.scss +6 -0
  37. data/app/assets/stylesheets/jquery.Jcrop.css +86 -0
  38. data/app/assets/stylesheets/jquery.Jcrop.min.css +28 -0
  39. data/app/assets/stylesheets/jquery.fancybox-1.3.4.css +359 -0
  40. data/app/assets/stylesheets/style.css +151 -0
  41. data/app/helpers/cropimage_riffpad/crop_image_helper.rb +65 -0
  42. data/cropimage_riffpad.gemspec +19 -0
  43. data/lib/cropimage_riffpad/.DS_Store +0 -0
  44. data/lib/cropimage_riffpad/crop_image_controller.rb +39 -0
  45. data/lib/cropimage_riffpad/crop_image_model.rb +28 -0
  46. data/lib/cropimage_riffpad/paperclip_processors/cropper.rb +27 -0
  47. data/lib/cropimage_riffpad/version.rb +3 -0
  48. data/lib/cropimage_riffpad.rb +14 -0
  49. data/lib/generators/cropimage_riffpad/install_generator.rb +37 -0
  50. metadata +94 -0
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.gitignore.swp ADDED
Binary file
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cropimage_riffpad.gemspec
4
+ gemspec
5
+
6
+ group :development do
7
+ gem "shoulda", ">= 0"
8
+ gem "rdoc", "~> 3.12"
9
+ gem "bundler", "~> 1.2.3"
10
+ gem "jeweler", "~> 1.8.4"
11
+ end
12
+
13
+ gem 'new_responds_to_parent'
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 thanh tuan
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # CropimageRiffpad
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'cropimage_riffpad'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install cropimage_riffpad
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,14 @@
1
+ $(document).ready(function() {
2
+ $("#various1").fancybox({
3
+ 'titlePosition' : 'inside',
4
+ 'transitionIn' : 'none',
5
+ 'transitionOut' : 'none'
6
+ });
7
+ });
8
+
9
+ function renderFancyBoxWithContent(cropActionContent) {
10
+ $.fancybox(cropActionContent, {
11
+ modal: true,
12
+ hideOnOverlayClick: false
13
+ });
14
+ }