Skip to content

Commit eba645a

Browse files
committed
My changes
1 parent acfe13c commit eba645a

File tree

4 files changed

+19
-472
lines changed

4 files changed

+19
-472
lines changed

.rspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--colour
1+
--color

Rakefile

+1-115
Original file line numberDiff line numberDiff line change
@@ -1,115 +1 @@
1-
require 'rake'
2-
3-
ENV['RUBY_FLAGS'] = '-W1'
4-
5-
# Generate all the Rake tasks
6-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
7-
require 'jeweler'
8-
Jeweler::Tasks.new do |gem|
9-
gem.name = 'vihai-roxml'
10-
gem.rubyforge_project = "vihai-roxml"
11-
gem.summary = "Ruby Object to XML mapping library"
12-
gem.description = <<EOF
13-
ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML.
14-
Using simple annotations, it enables Ruby classes to be mapped to XML. ROXML takes care
15-
of the marshalling and unmarshalling of mapped attributes so that developers can focus on
16-
building first-class Ruby classes. As a result, ROXML simplifies the development of
17-
RESTful applications, Web Services, and XML-RPC.
18-
EOF
19-
gem.email = "[email protected]"
20-
gem.homepage = "http://roxml.rubyforge.org"
21-
gem.authors = ["Ben Woosley", "Zak Mandhro", "Anders Engstrom", "Russ Olsen"]
22-
23-
gem.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
24-
25-
gem.add_dependency 'activesupport', '>= 2.3.0'
26-
gem.add_dependency 'nokogiri', '>= 1.3.3'
27-
28-
gem.add_development_dependency "rspec", '>= 2.0.0'
29-
gem.add_development_dependency "sqlite3-ruby", '>= 1.2.4'
30-
gem.add_development_dependency "activerecord", '>= 2.2.2'
31-
end
32-
Jeweler::GemcutterTasks.new
33-
Jeweler::RubyforgeTasks.new do |rubyforge|
34-
rubyforge.doc_task = "rdoc"
35-
end
36-
37-
Dir['tasks/**/*.rake'].each { |t| load t }
38-
39-
task :default => [:test, :spec, 'test:load']
40-
task :all => [:libxml, :nokogiri, 'test:load']
41-
task :libxml => ['test:libxml', 'spec:libxml']
42-
task :nokogiri => ['test:nokogiri', 'spec:nokogiri']
43-
44-
45-
require 'rake/rdoctask'
46-
Rake::RDocTask.new do |rdoc|
47-
if File.exist?('VERSION')
48-
version = File.read('VERSION')
49-
else
50-
version = ""
51-
end
52-
53-
rdoc.rdoc_dir = 'rdoc'
54-
rdoc.title = "roxml #{version}"
55-
rdoc.rdoc_files.include('README*')
56-
rdoc.rdoc_files.include('lib/**/*.rb')
57-
end
58-
59-
require 'rspec/core/rake_task'
60-
desc "Run specs"
61-
RSpec::Core::RakeTask.new(:spec) do |spec|
62-
spec.ruby_opts = '-Ilib -Ispec -Iexamples'
63-
# spec.spec_files = FileList['spec/**/*_spec.rb']
64-
end
65-
66-
namespace :spec do
67-
[:libxml, :nokogiri].each do |parser|
68-
desc "Spec ROXML under the #{parser} parser"
69-
RSpec::Core::RakeTask.new(parser) do |spec|
70-
spec.ruby_opts = '-Ilib -Ispec -Iexamples'
71-
# spec.spec_files = ["spec/support/#{parser}.rb"] + FileList['spec/**/*_spec.rb']
72-
end
73-
end
74-
end
75-
76-
desc "Run specs with rcov"
77-
RSpec::Core::RakeTask.new(:rcov) do |spec|
78-
spec.rcov = true
79-
spec.ruby_opts = '-Ilib -Ispec -Iexamples'
80-
# spec.spec_files = FileList['spec/**/*_spec.rb']
81-
end
82-
83-
require 'rake/testtask'
84-
desc "Test ROXML using the default parser selection behavior"
85-
task :test do
86-
require 'rake/runtest'
87-
$LOAD_PATH << 'lib'
88-
Rake.run_tests 'test/unit/*_test.rb'
89-
end
90-
91-
namespace :test do
92-
desc "Test ROXML under the Nokogiri parser"
93-
task :nokogiri do
94-
$LOAD_PATH << 'spec'
95-
require 'spec/support/nokogiri'
96-
Rake::Task["test"].invoke
97-
end
98-
99-
desc "Test ROXML under the LibXML parser"
100-
task :libxml do
101-
$LOAD_PATH << 'spec'
102-
require 'spec/support/libxml'
103-
Rake::Task["test"].invoke
104-
end
105-
106-
task :load do
107-
`ruby test/load_test.rb`
108-
puts "Load Success!" if $?.success?
109-
end
110-
111-
desc "Runs tests under RCOV"
112-
task :rcov do
113-
system "rcov -T --no-html -x '^/' #{FileList['test/unit/*_test.rb']}"
114-
end
115-
end
1+
require 'bundler/gem_tasks'

roxml.gemspec

-158
This file was deleted.

0 commit comments

Comments
 (0)