Skip to content

Commit

Permalink
gemcutter
Browse files Browse the repository at this point in the history
  • Loading branch information
fizx committed Nov 1, 2009
1 parent 2a9ac45 commit 7f65f93
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 19 deletions.
9 changes: 6 additions & 3 deletions README
Expand Up @@ -13,11 +13,14 @@ Download Parsley from http://github.com/fizx/parsley/tree/master following the i
From source:
sudo rake install

From GitHub:
From GitHub: DEPRECATED!

From GemCutter

Run the following if you haven't already:
gem sources -a http://gems.github.com
gem sources -a http://gemcutter.org
Install the gem:
sudo gem install fizx-parsley-ruby
sudo gem install parsley-ruby

PARSLETS.COM INTEGRATION

Expand Down
64 changes: 48 additions & 16 deletions Rakefile
@@ -1,24 +1,56 @@
task :default => :test
require 'rubygems'
require 'rake'

task :test => :build do
Dir["test/*test*.rb"].each {|f| load f }
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "parsley-ruby"
gem.summary = "Ruby binding for parsley"
gem.description = "XML/HTML Parser"
gem.email = "kyle@kylemaxwell.com"
gem.homepage = "http://github.com/fizx/parsley-ruby"
gem.authors = ["Kyle Maxwell"]
gem.add_development_dependency "thoughtbot-shoulda"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

task :build => :configure do
system "cd ext && make"
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end

task :clean => :configure do
system "cd ext && make clean"
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 :configure do
system "cd ext && ruby extconf.rb" unless File.exists?("ext/Makefile")
end
task :test => :check_dependencies

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end

task :install do
system "gem uninstall fizx-parsley-ruby"
system "gem uninstall parsley-ruby"
system "gem build parsley-ruby.gemspec"
system "gem install parsley-ruby"
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "robots #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

0 comments on commit 7f65f93

Please sign in to comment.