Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryan Sonnek
committed
Aug 29, 2011
1 parent
217cc81
commit 7bbd476
Showing
6 changed files
with
27 additions
and
102 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
source "http://rubygems.org" | |||
|
|||
# Specify your gem's dependencies in acts_as_stripped.gemspec | |||
gemspec |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,56 +1,2 @@ | |||
require 'rubygems' | require 'bundler' | ||
require 'rake' | Bundler::GemHelper.install_tasks | ||
|
|||
begin | |||
require 'jeweler' | |||
Jeweler::Tasks.new do |gem| | |||
gem.name = "acts_as_stripped" | |||
gem.summary = %Q{strip whitespace from string attributes} | |||
gem.email = "ryan.sonnek@gmail.com" | |||
gem.homepage = "http://github.com/wireframe/acts_as_stripped" | |||
gem.authors = ["Ryan Sonnek"] | |||
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings | |||
end | |||
Jeweler::GemcutterTasks.new | |||
rescue LoadError | |||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" | |||
end | |||
|
|||
require 'rake/testtask' | |||
Rake::TestTask.new(:test) do |test| | |||
test.libs << 'lib' << 'test' | |||
test.pattern = 'test/**/*_test.rb' | |||
test.verbose = true | |||
end | |||
|
|||
begin | |||
require 'rcov/rcovtask' | |||
Rcov::RcovTask.new do |test| | |||
test.libs << 'test' | |||
test.pattern = 'test/**/*_test.rb' | |||
test.verbose = true | |||
end | |||
rescue LoadError | |||
task :rcov do | |||
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" | |||
end | |||
end | |||
|
|||
|
|||
task :default => :test | |||
|
|||
require 'rake/rdoctask' | |||
Rake::RDocTask.new do |rdoc| | |||
if File.exist?('VERSION.yml') | |||
config = YAML.load(File.read('VERSION.yml')) | |||
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" | |||
else | |||
version = "" | |||
end | |||
|
|||
rdoc.rdoc_dir = 'rdoc' | |||
rdoc.title = "acts_as_stripped #{version}" | |||
rdoc.rdoc_files.include('README*') | |||
rdoc.rdoc_files.include('lib/**/*.rb') | |||
end | |||
|
This file was deleted.
Oops, something went wrong.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,51 +1,18 @@ | |||
# Generated by jeweler | |||
# DO NOT EDIT THIS FILE DIRECTLY | |||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command | |||
# -*- encoding: utf-8 -*- | # -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | |||
require "acts_as_stripped/version" | |||
|
|
||
Gem::Specification.new do |s| | Gem::Specification.new do |s| | ||
s.name = %q{acts_as_stripped} | s.name = %q{acts_as_stripped} | ||
s.version = "1.0.0" | s.version = ActsAsStripped::VERSION | ||
|
|||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | |||
s.authors = ["Ryan Sonnek"] | s.authors = ["Ryan Sonnek"] | ||
s.date = %q{2010-06-15} | |||
s.email = %q{ryan.sonnek@gmail.com} | s.email = %q{ryan.sonnek@gmail.com} | ||
s.extra_rdoc_files = [ | |||
"LICENSE", | |||
"README.rdoc" | |||
] | |||
s.files = [ | |||
".document", | |||
".gitignore", | |||
"LICENSE", | |||
"README.rdoc", | |||
"Rakefile", | |||
"VERSION.yml", | |||
"acts_as_stripped.gemspec", | |||
"lib/acts_as_stripped.rb", | |||
"test/acts_as_stripped_test.rb", | |||
"test/database.yml", | |||
"test/test_helper.rb" | |||
] | |||
s.homepage = %q{http://github.com/wireframe/acts_as_stripped} | s.homepage = %q{http://github.com/wireframe/acts_as_stripped} | ||
s.rdoc_options = ["--charset=UTF-8"] | |||
s.require_paths = ["lib"] | |||
s.rubygems_version = %q{1.3.7} | |||
s.summary = %q{strip whitespace from string attributes} | s.summary = %q{strip whitespace from string attributes} | ||
s.test_files = [ | s.description = %q{ ActiveRecord Extension to strip whitespace from attributes before saving values } | ||
"test/acts_as_stripped_test.rb", | |||
"test/test_helper.rb" | |||
] | |||
|
|||
if s.respond_to? :specification_version then | |||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | |||
s.specification_version = 3 | |||
|
|
||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then | s.files = `git ls-files`.split("\n") | ||
else | s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
end | s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
else | s.require_paths = ["lib"] | ||
end | |||
end | 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
module ActsAsStripped | |||
VERSION = "1.1.0" | |||
end |