cropimage_riffpad 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.gitignore.swp +0 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/app/assets/images/Jcrop.gif +0 -0
- data/app/assets/images/blank.gif +0 -0
- data/app/assets/images/fancy_close.png +0 -0
- data/app/assets/images/fancy_loading.png +0 -0
- data/app/assets/images/fancy_nav_left.png +0 -0
- data/app/assets/images/fancy_nav_right.png +0 -0
- data/app/assets/images/fancy_shadow_e.png +0 -0
- data/app/assets/images/fancy_shadow_n.png +0 -0
- data/app/assets/images/fancy_shadow_ne.png +0 -0
- data/app/assets/images/fancy_shadow_nw.png +0 -0
- data/app/assets/images/fancy_shadow_s.png +0 -0
- data/app/assets/images/fancy_shadow_se.png +0 -0
- data/app/assets/images/fancy_shadow_sw.png +0 -0
- data/app/assets/images/fancy_shadow_w.png +0 -0
- data/app/assets/images/fancy_title_left.png +0 -0
- data/app/assets/images/fancy_title_main.png +0 -0
- data/app/assets/images/fancy_title_over.png +0 -0
- data/app/assets/images/fancy_title_right.png +0 -0
- data/app/assets/images/fancybox-x.png +0 -0
- data/app/assets/images/fancybox-y.png +0 -0
- data/app/assets/images/fancybox.png +0 -0
- data/app/assets/javascripts/.DS_Store +0 -0
- data/app/assets/javascripts/awesome_gem.js +14 -0
- data/app/assets/javascripts/jquery.Jcrop.js +1695 -0
- data/app/assets/javascripts/jquery.color.js +123 -0
- data/app/assets/javascripts/jquery.easing-1.3.pack.js +72 -0
- data/app/assets/javascripts/jquery.fancybox-1.3.4.js +1156 -0
- data/app/assets/javascripts/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/app/assets/stylesheets/.DS_Store +0 -0
- data/app/assets/stylesheets/awesome_gem.css.scss +6 -0
- data/app/assets/stylesheets/jquery.Jcrop.css +86 -0
- data/app/assets/stylesheets/jquery.Jcrop.min.css +28 -0
- data/app/assets/stylesheets/jquery.fancybox-1.3.4.css +359 -0
- data/app/assets/stylesheets/style.css +151 -0
- data/app/helpers/cropimage_riffpad/crop_image_helper.rb +65 -0
- data/cropimage_riffpad.gemspec +19 -0
- data/lib/cropimage_riffpad/.DS_Store +0 -0
- data/lib/cropimage_riffpad/crop_image_controller.rb +39 -0
- data/lib/cropimage_riffpad/crop_image_model.rb +28 -0
- data/lib/cropimage_riffpad/paperclip_processors/cropper.rb +27 -0
- data/lib/cropimage_riffpad/version.rb +3 -0
- data/lib/cropimage_riffpad.rb +14 -0
- data/lib/generators/cropimage_riffpad/install_generator.rb +37 -0
- metadata +94 -0
data/.gitignore
ADDED
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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
|
+
}
|