forked from GBH/api_docs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
108 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
source 'http://rubygems.org' | ||
|
||
gem 'rails', '>=3.1.0' | ||
gem 'jquery-rails' | ||
|
||
group :development do | ||
gem 'jeweler' | ||
end | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,10 @@ | ||
begin | ||
require 'bundler/setup' | ||
rescue LoadError | ||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | ||
end | ||
require 'rubygems' | ||
require 'rake/testtask' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = 'api_docs' | ||
gem.homepage = 'http://github.com/twg/api_docs' | ||
gem.license = 'MIT' | ||
gem.summary = 'Generate API documentation using integration tests in Ruby on Rails 3' | ||
gem.description = 'Generate API documentation using integration tests in Ruby on Rails 3' | ||
gem.email = '[email protected]' | ||
gem.authors = ['Oleg Khabarov', 'Jack Neto', 'The Working Group Inc.'] | ||
end | ||
Jeweler::RubygemsDotOrgTasks.new | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" | ||
Rake::TestTask.new(:test) do |test| | ||
test.libs << 'lib' << 'test' | ||
test.pattern = 'test/**/*_test.rb' | ||
test.verbose = true | ||
end | ||
|
||
|
||
require 'rake/testtask' | ||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'lib' | ||
t.libs << 'test' | ||
t.pattern = 'test/**/*_test.rb' | ||
t.verbose = false | ||
end | ||
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,20 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' | ||
# -*- encoding: utf-8 -*- | ||
# encoding: utf-8 | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "api_docs" | ||
s.version = "1.0.5" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Oleg Khabarov", "Jack Neto", "The Working Group Inc."] | ||
s.date = "2013-02-28" | ||
s.description = "Generate API documentation using integration tests in Ruby on Rails 3" | ||
s.email = "[email protected]" | ||
s.extra_rdoc_files = [ | ||
"LICENSE", | ||
"README.md" | ||
] | ||
s.files = [ | ||
"Gemfile", | ||
"LICENSE", | ||
"README.md", | ||
"Rakefile", | ||
"VERSION", | ||
"api_docs.gemspec", | ||
"app/assets/javascripts/api_docs.js", | ||
"app/assets/stylesheets/api_docs.css", | ||
"app/controllers/api_docs/docs_controller.rb", | ||
"app/views/api_docs/docs/_action.html.erb", | ||
"app/views/api_docs/docs/_request_params.html.erb", | ||
"app/views/api_docs/docs/index.html.erb", | ||
"config/routes.rb", | ||
"doc/screenshot.png", | ||
"lib/api_docs.rb", | ||
"lib/api_docs/configuration.rb", | ||
"lib/api_docs/engine.rb", | ||
"lib/api_docs/test_helper.rb", | ||
"lib/tasks/api_docs.rake", | ||
"script/rails", | ||
"test/api_docs_test.rb", | ||
"test/docs_controller_test.rb", | ||
"test/dummy/README.rdoc", | ||
"test/dummy/Rakefile", | ||
"test/dummy/app/assets/images/glyphicons-halflings-white.png", | ||
"test/dummy/app/assets/images/glyphicons-halflings.png", | ||
"test/dummy/app/assets/javascripts/application.js", | ||
"test/dummy/app/assets/javascripts/bootstrap.min.js", | ||
"test/dummy/app/assets/stylesheets/application.css", | ||
"test/dummy/app/assets/stylesheets/bootstrap.min.css", | ||
"test/dummy/app/controllers/application_controller.rb", | ||
"test/dummy/app/helpers/application_helper.rb", | ||
"test/dummy/app/mailers/.gitkeep", | ||
"test/dummy/app/models/.gitkeep", | ||
"test/dummy/app/views/layouts/application.html.erb", | ||
"test/dummy/config.ru", | ||
"test/dummy/config/application.rb", | ||
"test/dummy/config/boot.rb", | ||
"test/dummy/config/environment.rb", | ||
"test/dummy/config/environments/development.rb", | ||
"test/dummy/config/environments/production.rb", | ||
"test/dummy/config/environments/test.rb", | ||
"test/dummy/config/initializers/backtrace_silencers.rb", | ||
"test/dummy/config/initializers/inflections.rb", | ||
"test/dummy/config/initializers/mime_types.rb", | ||
"test/dummy/config/initializers/secret_token.rb", | ||
"test/dummy/config/initializers/session_store.rb", | ||
"test/dummy/config/initializers/wrap_parameters.rb", | ||
"test/dummy/config/locales/en.yml", | ||
"test/dummy/config/routes.rb", | ||
"test/dummy/lib/assets/.gitkeep", | ||
"test/dummy/log/.gitkeep", | ||
"test/dummy/public/404.html", | ||
"test/dummy/public/422.html", | ||
"test/dummy/public/500.html", | ||
"test/dummy/public/favicon.ico", | ||
"test/dummy/script/rails", | ||
"test/test_helper.rb", | ||
"test/test_helper_test.rb" | ||
] | ||
s.homepage = "http://github.com/twg/api_docs" | ||
s.licenses = ["MIT"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = "1.8.23" | ||
s.summary = "Generate API documentation using integration tests in Ruby on Rails 3" | ||
|
||
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<rails>, [">= 3.1.0"]) | ||
s.add_runtime_dependency(%q<jquery-rails>, [">= 0"]) | ||
s.add_development_dependency(%q<jeweler>, [">= 0"]) | ||
else | ||
s.add_dependency(%q<rails>, [">= 3.1.0"]) | ||
s.add_dependency(%q<jquery-rails>, [">= 0"]) | ||
s.add_dependency(%q<jeweler>, [">= 0"]) | ||
end | ||
else | ||
s.add_dependency(%q<rails>, [">= 3.1.0"]) | ||
s.add_dependency(%q<jquery-rails>, [">= 0"]) | ||
s.add_dependency(%q<jeweler>, [">= 0"]) | ||
end | ||
end | ||
$:.unshift File.expand_path('../lib', __FILE__) | ||
require 'api_docs/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "api_docs" | ||
s.version = ApiDocs::VERSION | ||
s.authors = ["Oleg Khabarov"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "http://github.com/twg/api_docs" | ||
s.summary = "Generate API documentation using integration tests in Ruby on Rails" | ||
s.description = "Generate API documentation using integration tests in Ruby on Rails" | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.platform = Gem::Platform::RUBY | ||
s.require_paths = ['lib'] | ||
|
||
s.add_dependency 'rails', '>=3.1.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module ApiDocs | ||
VERSION = "1.0.5" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Rails.application.routes.draw do | ||
mount ApiDocs::Engine => '/' | ||
match '/users/:id' => 'application#show' | ||
match '/users/:id' => 'application#show' | ||
match '/authenticate' => 'application#authenticate' | ||
end |
Oops, something went wrong.