happymapper 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/{History.txt → History} +8 -0
- data/{License.txt → License} +0 -0
- data/{Manifest.txt → Manifest} +8 -20
- data/{README.txt → README} +0 -0
- data/Rakefile +42 -3
- data/{TODO.txt → TODO} +0 -0
- data/happymapper.gemspec +15 -12
- data/lib/happymapper.rb +13 -3
- data/lib/happymapper/version.rb +1 -7
- data/lib/libxml_ext/libxml_helper.rb +2 -2
- data/spec/fixtures/radar.xml +21 -0
- data/spec/happymapper_spec.rb +30 -0
- metadata +39 -35
- data/PostInstall.txt +0 -0
- data/config/hoe.rb +0 -73
- data/config/requirements.rb +0 -15
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/script/txt2html +0 -82
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -43
- data/tasks/environment.rake +0 -7
- data/tasks/rspec.rake +0 -21
- data/tasks/website.rake +0 -17
data/tasks/deployment.rake
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
desc 'Preps the gem for a new release'
|
2
|
-
task :prepare do
|
3
|
-
require 'rio'
|
4
|
-
Rake::Task['manifest:refresh'].invoke
|
5
|
-
gemspec = %x[rake debug_gem]
|
6
|
-
lines = gemspec.split("\n")
|
7
|
-
rio('happymapper.gemspec') < lines[1, lines.length-1].join("\n")
|
8
|
-
end
|
9
|
-
|
10
|
-
desc 'Release the website and new gem version'
|
11
|
-
task :deploy => [:check_version, :website, :release] do
|
12
|
-
puts "Remember to create SVN tag:"
|
13
|
-
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
14
|
-
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
15
|
-
puts "Suggested comment:"
|
16
|
-
puts "Tagging release #{CHANGES}"
|
17
|
-
end
|
18
|
-
|
19
|
-
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
20
|
-
task :local_deploy => [:website_generate, :install_gem]
|
21
|
-
|
22
|
-
task :check_version do
|
23
|
-
unless ENV['VERSION']
|
24
|
-
puts 'Must pass a VERSION=x.y.z release version'
|
25
|
-
exit
|
26
|
-
end
|
27
|
-
unless ENV['VERSION'] == VERS
|
28
|
-
puts "Please update your version.rb to match the release version, currently #{VERS}"
|
29
|
-
exit
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
|
34
|
-
task :install_gem_no_doc => [:clean, :package] do
|
35
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
|
36
|
-
end
|
37
|
-
|
38
|
-
namespace :manifest do
|
39
|
-
desc 'Recreate Manifest.txt to include ALL files'
|
40
|
-
task :refresh do
|
41
|
-
`rake check_manifest | patch -p0 > Manifest.txt`
|
42
|
-
end
|
43
|
-
end
|
data/tasks/environment.rake
DELETED
data/tasks/rspec.rake
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run the specs under spec/models"
|
18
|
-
Spec::Rake::SpecTask.new do |t|
|
19
|
-
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
-
end
|
data/tasks/website.rake
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
desc 'Generate website files'
|
2
|
-
task :website_generate => :ruby_env do
|
3
|
-
(Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
|
4
|
-
sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
desc 'Upload website files to rubyforge'
|
9
|
-
task :website_upload do
|
10
|
-
host = "#{rubyforge_username}@rubyforge.org"
|
11
|
-
remote_dir = "/var/www/gforge-projects/#{PATH}/"
|
12
|
-
local_dir = 'website'
|
13
|
-
sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
|
14
|
-
end
|
15
|
-
|
16
|
-
desc 'Generate and upload website files'
|
17
|
-
task :website => [:website_upload, :publish_docs]
|