cropimage_riffpad 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile CHANGED
@@ -1,8 +1,10 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in cropimage_riffpad.gemspec
4
- gemspec
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
5
 
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
6
8
  group :development do
7
9
  gem "shoulda", ">= 0"
8
10
  gem "rdoc", "~> 3.12"
@@ -10,5 +12,4 @@ group :development do
10
12
  gem "jeweler", "~> 1.8.4"
11
13
  end
12
14
 
13
- gem 'new_responds_to_parent'
14
- gem 'paperclip', '3.3.1'
15
+ gem 'new_responds_to_parent'
data/Gemfile.lock ADDED
@@ -0,0 +1,41 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (3.2.9)
5
+ i18n (~> 0.6)
6
+ multi_json (~> 1.0)
7
+ bourne (1.1.2)
8
+ mocha (= 0.10.5)
9
+ git (1.2.5)
10
+ i18n (0.6.1)
11
+ jeweler (1.8.4)
12
+ bundler (~> 1.0)
13
+ git (>= 1.2.5)
14
+ rake
15
+ rdoc
16
+ json (1.7.5)
17
+ metaclass (0.0.1)
18
+ mocha (0.10.5)
19
+ metaclass (~> 0.0.1)
20
+ multi_json (1.5.0)
21
+ new_responds_to_parent (0.1.5)
22
+ rake (10.0.3)
23
+ rdoc (3.12)
24
+ json (~> 1.4)
25
+ shoulda (3.3.2)
26
+ shoulda-context (~> 1.0.1)
27
+ shoulda-matchers (~> 1.4.1)
28
+ shoulda-context (1.0.2)
29
+ shoulda-matchers (1.4.2)
30
+ activesupport (>= 3.0.0)
31
+ bourne (~> 1.1.2)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ bundler (~> 1.2.3)
38
+ jeweler (~> 1.8.4)
39
+ new_responds_to_parent
40
+ rdoc (~> 3.12)
41
+ shoulda
data/LICENSE.txt CHANGED
@@ -1,7 +1,5 @@
1
1
  Copyright (c) 2012 thanh tuan
2
2
 
3
- MIT License
4
-
5
3
  Permission is hereby granted, free of charge, to any person obtaining
6
4
  a copy of this software and associated documentation files (the
7
5
  "Software"), to deal in the Software without restriction, including
@@ -19,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
17
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
19
  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.
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.MD ADDED
File without changes
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = cropimage_riffpad
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to cropimage_riffpad
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2012 thanh tuan. See LICENSE.txt for
18
+ further details.
19
+
data/Rakefile CHANGED
@@ -1 +1,46 @@
1
- require "bundler/gem_tasks"
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "cropimage_riffpad"
18
+ gem.homepage = "http://github.com/orangejuice175/cropimage_riffpad"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{For cropping image}
21
+ gem.description = %Q{For cropping image}
22
+ gem.email = "tuan@rubify.com"
23
+ gem.authors = ["thanh tuan"]
24
+ gem.version = File.exist?('VERSION') ? File.read('VERSION') : ""
25
+ # dependencies defined in Gemfile
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rake/testtask'
30
+ Rake::TestTask.new(:test) do |test|
31
+ test.libs << 'lib' << 'test'
32
+ test.pattern = 'test/**/test_*.rb'
33
+ test.verbose = true
34
+ end
35
+
36
+ task :default => :test
37
+
38
+ require 'rdoc/task'
39
+ Rake::RDocTask.new do |rdoc|
40
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
41
+
42
+ rdoc.rdoc_dir = 'rdoc'
43
+ rdoc.title = "cropimage_riffpad #{version}"
44
+ rdoc.rdoc_files.include('README*')
45
+ rdoc.rdoc_files.include('lib/**/*.rb')
46
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -1,21 +1,105 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
1
4
  # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'cropimage_riffpad/version'
5
5
 
6
- Gem::Specification.new do |gem|
7
- gem.name = "cropimage_riffpad"
8
- gem.version = CropimageRiffpad::VERSION
9
- gem.authors = ["thanh tuan"]
10
- gem.email = ["tuan@rubify.com"]
11
- gem.description = %q{Crop Image}
12
- gem.summary = %q{Crop Image}
13
- gem.homepage = ""
6
+ Gem::Specification.new do |s|
7
+ s.name = "cropimage_riffpad"
8
+ s.version = "0.1.0"
14
9
 
15
- gem.files = `git ls-files`.split($/)
16
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = ["lib"]
19
- gem.add_dependency 'new_responds_to_parent'
20
- gem.add_dependency 'paperclip'
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["thanh tuan"]
12
+ s.date = "2013-01-02"
13
+ s.description = "For cropping image"
14
+ s.email = "tuan@rubify.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.MD",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.MD",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "app/assets/images/Jcrop.gif",
30
+ "app/assets/images/blank.gif",
31
+ "app/assets/images/fancy_close.png",
32
+ "app/assets/images/fancy_loading.png",
33
+ "app/assets/images/fancy_nav_left.png",
34
+ "app/assets/images/fancy_nav_right.png",
35
+ "app/assets/images/fancy_shadow_e.png",
36
+ "app/assets/images/fancy_shadow_n.png",
37
+ "app/assets/images/fancy_shadow_ne.png",
38
+ "app/assets/images/fancy_shadow_nw.png",
39
+ "app/assets/images/fancy_shadow_s.png",
40
+ "app/assets/images/fancy_shadow_se.png",
41
+ "app/assets/images/fancy_shadow_sw.png",
42
+ "app/assets/images/fancy_shadow_w.png",
43
+ "app/assets/images/fancy_title_left.png",
44
+ "app/assets/images/fancy_title_main.png",
45
+ "app/assets/images/fancy_title_over.png",
46
+ "app/assets/images/fancy_title_right.png",
47
+ "app/assets/images/fancybox-x.png",
48
+ "app/assets/images/fancybox-y.png",
49
+ "app/assets/images/fancybox.png",
50
+ "app/assets/javascripts/.DS_Store",
51
+ "app/assets/javascripts/awesome_gem.js",
52
+ "app/assets/javascripts/jquery.Jcrop.js",
53
+ "app/assets/javascripts/jquery.color.js",
54
+ "app/assets/javascripts/jquery.easing-1.3.pack.js",
55
+ "app/assets/javascripts/jquery.fancybox-1.3.4.js",
56
+ "app/assets/javascripts/jquery.mousewheel-3.0.4.pack.js",
57
+ "app/assets/stylesheets/.DS_Store",
58
+ "app/assets/stylesheets/awesome_gem.css.scss",
59
+ "app/assets/stylesheets/jquery.Jcrop.css",
60
+ "app/assets/stylesheets/jquery.Jcrop.min.css",
61
+ "app/assets/stylesheets/jquery.fancybox-1.3.4.css",
62
+ "app/assets/stylesheets/style.css",
63
+ "app/helpers/cropimage_riffpad/crop_image_helper.rb",
64
+ "cropimage_riffpad.gemspec",
65
+ "lib/cropimage_riffpad.rb",
66
+ "lib/cropimage_riffpad/.DS_Store",
67
+ "lib/cropimage_riffpad/crop_image_controller.rb",
68
+ "lib/cropimage_riffpad/crop_image_model.rb",
69
+ "lib/cropimage_riffpad/paperclip_processors/cropper.rb",
70
+ "lib/cropimage_riffpad/version.rb",
71
+ "lib/generators/cropimage_riffpad/install_generator.rb",
72
+ "test/helper.rb",
73
+ "test/test_cropimage_riffpad.rb"
74
+ ]
75
+ s.homepage = "http://github.com/orangejuice175/cropimage_riffpad"
76
+ s.licenses = ["MIT"]
77
+ s.require_paths = ["lib"]
78
+ s.rubygems_version = "1.8.24"
79
+ s.summary = "For cropping image"
80
+
81
+ if s.respond_to? :specification_version then
82
+ s.specification_version = 3
83
+
84
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
85
+ s.add_runtime_dependency(%q<new_responds_to_parent>, [">= 0"])
86
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
87
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
88
+ s.add_development_dependency(%q<bundler>, ["~> 1.2.3"])
89
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
90
+ else
91
+ s.add_dependency(%q<new_responds_to_parent>, [">= 0"])
92
+ s.add_dependency(%q<shoulda>, [">= 0"])
93
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
94
+ s.add_dependency(%q<bundler>, ["~> 1.2.3"])
95
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
96
+ end
97
+ else
98
+ s.add_dependency(%q<new_responds_to_parent>, [">= 0"])
99
+ s.add_dependency(%q<shoulda>, [">= 0"])
100
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
101
+ s.add_dependency(%q<bundler>, ["~> 1.2.3"])
102
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
103
+ end
21
104
  end
105
+
@@ -1,6 +1,7 @@
1
1
  require 'cropimage_riffpad/crop_image_controller'
2
2
  require 'cropimage_riffpad/crop_image_model'
3
3
  require 'cropimage_riffpad/paperclip_processors/cropper'
4
+ require 'cropimage_riffpad/crop_image_helper'
4
5
  require 'new_responds_to_parent'
5
6
 
6
7
  module CropImageRiffpad
data/test/helper.rb ADDED
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'cropimage_riffpad'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestCropimageRiffpad < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cropimage_riffpad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
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: 2012-12-24 00:00:00.000000000 Z
12
+ date: 2013-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: new_responds_to_parent
@@ -28,14 +28,14 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: paperclip
31
+ name: shoulda
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
- type: :runtime
38
+ type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
@@ -43,19 +43,71 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: Crop Image
47
- email:
48
- - tuan@rubify.com
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdoc
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '3.12'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ - !ruby/object:Gem::Dependency
63
+ name: bundler
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.2.3
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.2.3
78
+ - !ruby/object:Gem::Dependency
79
+ name: jeweler
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 1.8.4
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.8.4
94
+ description: For cropping image
95
+ email: tuan@rubify.com
49
96
  executables: []
50
97
  extensions: []
51
- extra_rdoc_files: []
98
+ extra_rdoc_files:
99
+ - LICENSE.txt
100
+ - README.MD
101
+ - README.rdoc
52
102
  files:
53
- - .gitignore
54
- - .gitignore.swp
103
+ - .document
55
104
  - Gemfile
105
+ - Gemfile.lock
56
106
  - LICENSE.txt
57
- - README.md
107
+ - README.MD
108
+ - README.rdoc
58
109
  - Rakefile
110
+ - VERSION
59
111
  - app/assets/images/Jcrop.gif
60
112
  - app/assets/images/blank.gif
61
113
  - app/assets/images/fancy_close.png
@@ -99,8 +151,11 @@ files:
99
151
  - lib/cropimage_riffpad/paperclip_processors/cropper.rb
100
152
  - lib/cropimage_riffpad/version.rb
101
153
  - lib/generators/cropimage_riffpad/install_generator.rb
102
- homepage: ''
103
- licenses: []
154
+ - test/helper.rb
155
+ - test/test_cropimage_riffpad.rb
156
+ homepage: http://github.com/orangejuice175/cropimage_riffpad
157
+ licenses:
158
+ - MIT
104
159
  post_install_message:
105
160
  rdoc_options: []
106
161
  require_paths:
@@ -111,6 +166,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
166
  - - ! '>='
112
167
  - !ruby/object:Gem::Version
113
168
  version: '0'
169
+ segments:
170
+ - 0
171
+ hash: 235356320116763177
114
172
  required_rubygems_version: !ruby/object:Gem::Requirement
115
173
  none: false
116
174
  requirements:
@@ -122,5 +180,5 @@ rubyforge_project:
122
180
  rubygems_version: 1.8.24
123
181
  signing_key:
124
182
  specification_version: 3
125
- summary: Crop Image
183
+ summary: For cropping image
126
184
  test_files: []
data/.gitignore DELETED
@@ -1,17 +0,0 @@
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 DELETED
Binary file
data/README.md DELETED
@@ -1,29 +0,0 @@
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