Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (38 sloc) 1.373 kB
5716006 Creating directory structure
Aisha Fenton authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
dc5d68c Fix optional_arguments, update example.
rknLA authored
7 gem.name = "yard-rest"
a055df9 First version of template gem complete
Aisha Fenton authored
8 gem.summary = %Q{A plugin for Yardoc that produces API documentation for Restful web services}
3cbeab6 Wrote README.markdown
Aisha Fenton authored
9 gem.description = %Q{A plugin for Yardoc that produces API documentation for Restful web services. See README.markdown for more details}
009a304 redirect via javascript if the api documentation was called with a pa…
Sebastian Pape authored
10 gem.email = ''
11 gem.homepage = "https://github.com/spape/yard-rest-plugin"
12 gem.authors = ['R. Kevin Nelson', 'Aisha Fenton', 'Sebastian Pape']
e3afb32 updated dependency in rakefile
rknLA authored
13 gem.add_dependency("yard", '~>0.7.4')
5f8ca6e @ur5us Fixed rakefile to generate gemspec correctly
ur5us authored
14 gem.files = Dir.glob("{lib,example,templates/rest}/**/*.*").concat(["Rakefile"])
a84ece2 Extended the yard-rest-plugin to handle describing the request and
Marcus Wyatt authored
15 gem.extra_rdoc_files = ['VERSION', 'README.markdown']
5716006 Creating directory structure
Aisha Fenton authored
16 end
17 Jeweler::GemcutterTasks.new
18 rescue LoadError
19 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20 end
a055df9 First version of template gem complete
Aisha Fenton authored
21
6904629 Add rebuild task to Rakefile
rknLA authored
22 desc "Rebuild the gem from the gemspec"
23 task :rebuild do
dc5d68c Fix optional_arguments, update example.
rknLA authored
24 gemfilename = 'yard-rest-' + File.open('VERSION').gets.strip + '.gem'
25 `rm yard-rest-*.gem`
26 `gem uninstall yard-rest&& \
27 gem build yard-rest.gemspec && \
28 gem install #{gemfilename}`
6904629 Add rebuild task to Rakefile
rknLA authored
29 end
30
a055df9 First version of template gem complete
Aisha Fenton authored
31 namespace :ex do
32 desc "Generate example docs"
33 task :generate do
dc5d68c Fix optional_arguments, update example.
rknLA authored
34 `yardoc 'example/*.rb' --backtrace -e ./lib/yard-rest.rb -r example/README.markdown --title 'Sample API'`
a055df9 First version of template gem complete
Aisha Fenton authored
35 end
36
37 desc "Clean example docs"
38 task :clean do
39 `rm -R doc`
40 `rm -R .yardoc`
41 end
6904629 Add rebuild task to Rakefile
rknLA authored
42 end
Something went wrong with that request. Please try again.