Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernized the gem, and a few other tweaks.
Now it looks like what a gem generated with `bundle gem` would look like. Also: - Change requirements back to ActiveRecord 3.1, seen as the gem is not ready for prime time with Rails 4; - Silence tests; - Indicate which license this gem has.
- Loading branch information
Andre Medeiros
committed
Mar 7, 2014
1 parent
1f45d2d
commit f4fc7ba
Showing
6 changed files
with
44 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
source "http://rubygems.org" | ||
|
||
gem "activerecord", "~>3.2" | ||
source "https://rubygems.org" | ||
|
||
# Development dependencies | ||
gem "rake" | ||
gem "activesupport", "~>3.2" | ||
|
||
platforms :ruby do | ||
gem "sqlite3" | ||
end | ||
group :development do | ||
gem "activerecord", ">= 3.0", "<= 4.0", :require => "active_record" | ||
gem "activesupport", ">= 3.0", "<= 4.0", :require => "active_support" | ||
|
||
platforms :jruby do | ||
gem "activerecord-jdbcsqlite3-adapter" | ||
gem "sqlite3", :platforms => [:ruby] | ||
gem "activerecord-jdbcsqlite3-adapter", :platforms => [:jruby] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
Gem::Specification.new do |s| | ||
s.name = "acts_as_paranoid" | ||
s.version = "0.5.0" | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Goncalo Silva", "Charles G.", "Rick Olson"] | ||
s.email = ["goncalossilva@gmail.com"] | ||
s.homepage = "https://github.com/goncalossilva/rails3_acts_as_paranoid" | ||
s.summary = "Active Record plugin which allows you to hide and restore records without actually deleting them." | ||
s.description = "Active Record plugin which allows you to hide and restore records without actually deleting them. Check its GitHub page for more in-depth information." | ||
s.rubyforge_project = s.name | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'acts_as_paranoid/version' | ||
|
||
s.required_rubygems_version = ">= 1.3.6" | ||
Gem::Specification.new do |spec| | ||
spec.name = "acts_as_paranoid" | ||
spec.version = ActsAsParanoid::VERSION | ||
spec.authors = ["Goncalo Silva", "Charles G.", "Rick Olson"] | ||
spec.email = ["goncalossilva@gmail.com"] | ||
spec.summary = "Active Record plugin which allows you to hide and restore records without actually deleting them." | ||
spec.description = "Active Record plugin which allows you to hide and restore records without actually deleting them. Check its GitHub page for more in-depth information." | ||
spec.homepage = "https://github.com/goncalossilva/rails3_acts_as_paranoid" | ||
spec.license = "MIT" | ||
|
||
s.add_dependency "activerecord", ">= 4.0.0" | ||
spec.files = Dir["{lib}/**/*.rb", "LICENSE", "*.md"] | ||
spec.test_files = Dir["test/*.rb"] | ||
spec.require_paths = ["lib"] | ||
|
||
s.add_development_dependency "minitest" | ||
s.add_development_dependency 'rake', ['>= 0'] | ||
spec.required_rubygems_version = ">= 1.3.6" | ||
|
||
s.files = Dir["{lib}/**/*.rb", "LICENSE", "*.markdown"] | ||
spec.add_dependency "activerecord", ">= 3.1", "< 4.0" | ||
|
||
spec.add_development_dependency "bundler", "~> 1.5" | ||
spec.add_development_dependency "rake" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module ActsAsParanoid | ||
VERSION = "0.5.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters