Permalink
Browse files

Mat

  • Loading branch information...
austvik committed Feb 5, 2011
1 parent 7f125a5 commit f6633082e7a5b4fc5237107ee3dee2dcbfee9cb9
Showing with 41 additions and 4 deletions.
  1. +3 −1 Rakefile
  2. +1 −1 lib/rake/{wadlgen.rake → wadlgen.rb}
  3. +1 −1 lib/wadlgen.rb
  4. +4 −1 lib/wadlgen/railtie.rb
  5. +32 −0 wadlgen.gemspec
View
@@ -8,7 +8,9 @@ Echoe.new('wadlgen', '0.1.0') do |p|
p.author = 'Jorgen Austvik'
p.email = 'jaustvik@acm.org'
p.ignore_pattern = ['tmp/*', 'nbproject/**/*']
- p.development_dependencies = ['builder']
+ p.runtime_dependencies = ['builder']
+ p.require_paths = ['lib']
+ p.retain_gemspec = true
end
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each {|ext| load ext}
@@ -3,7 +3,7 @@
#
desc "Generates WADL descriptors from routes"
-task :wadl => :environment do
+task :wadlgen => :environment do
require 'wadlgen'
wsdl = Wadlgen::Wadl.new
wsdl.generate
View
@@ -1,6 +1,6 @@
module Wadlgen
- require "lib/wadlgen/railtie" if defined?(Rails)
+ require "wadlgen/railtie.rb" if defined?(Rails)
class Wadl
View
@@ -1,10 +1,13 @@
require 'wadlgen'
require 'rails'
+#
+# Hooks the task up to Rails
+#
module Wadlgen
class Railtie < Rails::Railtie
rake_tasks do
- require 'lib/rake/wadlgen.task'
+ require "rake/wadlgen"
end
end
end
View
@@ -0,0 +1,32 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{wadlgen}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Jorgen Austvik"]
+ s.date = %q{2011-02-05}
+ s.description = %q{Generate WADL from rails routes}
+ s.email = %q{jaustvik@acm.org}
+ s.extra_rdoc_files = ["README", "lib/rake/wadlgen.rb", "lib/wadlgen.rb", "lib/wadlgen/railtie.rb"]
+ s.files = ["MIT-LICENSE", "README", "Rakefile", "lib/rake/wadlgen.rb", "lib/wadlgen.rb", "lib/wadlgen/railtie.rb", "wadlgen.gemspec", "Manifest"]
+ s.homepage = %q{https://github.com/austvik/wadlgen}
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Wadlgen", "--main", "README"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{wadlgen}
+ s.rubygems_version = %q{1.5.0}
+ s.summary = %q{Generate WADL from rails routes}
+
+ if s.respond_to? :specification_version then
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<builder>, [">= 0"])
+ else
+ s.add_dependency(%q<builder>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<builder>, [">= 0"])
+ end
+end

0 comments on commit f663308

Please sign in to comment.