Skip to content

Commit

Permalink
migrate to bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Sonnek committed Aug 29, 2011
1 parent 217cc81 commit 7bbd476
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 102 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Expand Up @@ -2,7 +2,17 @@
.DS_Store .DS_Store
coverage coverage
rdoc rdoc

# gem files
pkg pkg
pkg/*
*.gem

# test dependencies
*.sqlite3 *.sqlite3
*.log *.log
test/*.log test/*.log

# bundler files
.bundle
Gemfile.lock
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in acts_as_stripped.gemspec
gemspec
58 changes: 2 additions & 56 deletions Rakefile
@@ -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

5 changes: 0 additions & 5 deletions VERSION.yml

This file was deleted.

49 changes: 8 additions & 41 deletions acts_as_stripped.gemspec
@@ -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

3 changes: 3 additions & 0 deletions lib/acts_as_stripped/version.rb
@@ -0,0 +1,3 @@
module ActsAsStripped
VERSION = "1.1.0"
end

0 comments on commit 7bbd476

Please sign in to comment.