Skip to content

Commit

Permalink
Merge branch 'development' into parkr-full-bit
Browse files Browse the repository at this point in the history
* development:
  test-files included dynamically.
  Clean out unused files and obsoleted Rake tasks.
  Move dependencies into more managable format and reduce dependencies

Conflicts:
	Gemfile
  • Loading branch information
Bèr Kessels committed Jul 10, 2013
2 parents 82af733 + debe9bb commit 03324ae
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 93 deletions.
5 changes: 0 additions & 5 deletions .document

This file was deleted.

14 changes: 1 addition & 13 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
source "https://rubygems.org"
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"

gem "rmagick"

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "shoulda", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.5.2"
gem "rcov", ">= 0"
end
gemspec
52 changes: 39 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,48 @@
PATH
remote: .
specs:
smartcropper (0.6.1)
rmagick (> 2.11.0)

GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
git (1.2.5)
jeweler (1.5.2)
bundler (~> 1.0.0)
git (>= 1.2.5)
rake
activesupport (4.0.0)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
atomic (1.1.10)
diff-lcs (1.2.4)
i18n (0.6.4)
minitest (4.7.5)
multi_json (1.7.7)
rake (0.8.7)
rcov (0.9.9)
rmagick (2.13.1)
shoulda (2.11.3)
rmagick (2.13.2)
rspec (2.14.0)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.2)
rspec-expectations (2.14.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.1)
shoulda (3.5.0)
shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (>= 1.4.1, < 3.0)
shoulda-context (1.1.4)
shoulda-matchers (2.2.0)
activesupport (>= 3.0.0)
thread_safe (0.1.0)
atomic
tzinfo (0.3.37)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.0.0)
jeweler (~> 1.5.2)
rcov
rmagick
rake
rspec
shoulda
smartcropper!
28 changes: 1 addition & 27 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,21 @@

require 'rubygems'
require 'bundler'

begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "smartcropper"
gem.homepage = "http://github.com/berkes/smartcropper"
gem.license = "GPL"
gem.summary = %Q{Content aware cropper.}
gem.description = %Q{Crops images based on entropy: leaving the most interesting part intact. Don't expect this to be a replacement for human cropping, it is an algorythm and not an extremely smart one at that :). Best results achieved in combination with scaling: the cropping is then only used to square the image, cutting off the least interesting part. The trimming simply chops off te edge that is least interesting, and continues doing so, untill it reached the requested size.}
gem.email = "ber@webschuur.com"
gem.authors = ["Bèr Kessels"]
# Include your dependencies below. Runtime dependencies are required when using your gem,
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)

gem.add_runtime_dependency 'rmagick', '> 2.11.0'
# gem.add_development_dependency 'rspec', '> 1.2.3'
end
Jeweler::RubygemsDotOrgTasks.new

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

task :default => :test

require 'rake/rdoctask'
Expand Down
40 changes: 5 additions & 35 deletions smartcropper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ Gem::Specification.new do |s|
"README.md"
]
s.files = [
".document",
".rvmrc",
"Gemfile",
"Gemfile.lock",
"LICENSE.txt",
Expand All @@ -33,38 +31,10 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.rubygems_version = %q{1.5.2}
s.summary = %q{Content aware image cropping in Ruby and Carrierwave}
s.test_files = [
"test/helper.rb",
"test/profiler.rb",
"test/test_croptoelie.rb",
"test/fixtures/*"
]

if s.respond_to? :specification_version then
s.specification_version = 3
s.test_files = `git ls-files test`.split("\n")
s.add_dependency(%q<rmagick>, ["> 2.11.0"])

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rmagick>, [">= 0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
s.add_development_dependency(%q<rcov>, [">= 0"])
s.add_runtime_dependency(%q<rmagick>, ["> 2.11.0"])
else
s.add_dependency(%q<rmagick>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<rmagick>, ["> 2.11.0"])
end
else
s.add_dependency(%q<rmagick>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<rmagick>, ["> 2.11.0"])
end
s.add_development_dependency('rake', [">= 0"])
s.add_development_dependency('rspec', [">= 0"])
s.add_development_dependency('shoulda', [">= 0"])
end

0 comments on commit 03324ae

Please sign in to comment.