-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
108 changed files
with
953 additions
and
1,043 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
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
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 |
---|---|---|
|
@@ -37,33 +37,32 @@ begin | |
end | ||
|
||
namespace :pages do | ||
|
||
desc "Check out gh-pages." | ||
desc 'Check out gh-pages.' | ||
task :checkout do | ||
dir = File.dirname(__FILE__) + '/../grape.doc' | ||
unless Dir.exist?(dir) | ||
Dir.mkdir(dir) | ||
Dir.chdir(dir) do | ||
system("git init") | ||
system("git remote add origin [email protected]:intridea/grape.git") | ||
system("git pull") | ||
system("git checkout gh-pages") | ||
system('git init') | ||
system('git remote add origin [email protected]:intridea/grape.git') | ||
system('git pull') | ||
system('git checkout gh-pages') | ||
end | ||
end | ||
end | ||
|
||
desc 'Generate and publish YARD docs to GitHub pages.' | ||
task :publish => ['doc:pages:checkout', 'doc:pages'] do | ||
Dir.chdir(File.dirname(__FILE__) + '/../grape.doc') do | ||
system("git checkout gh-pages") | ||
system("git add .") | ||
system("git add -u") | ||
system('git checkout gh-pages') | ||
system('git add .') | ||
system('git add -u') | ||
system("git commit -m 'Generating docs for version #{Grape::VERSION}.'") | ||
system("git push origin gh-pages") | ||
system('git push origin gh-pages') | ||
end | ||
end | ||
end | ||
end | ||
rescue LoadError | ||
puts "You need to install YARD." | ||
puts 'You need to install YARD.' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
source 'http://rubygems.org' | ||
|
||
gem "rails", "3.2.19" | ||
gem 'rails', '3.2.19' | ||
|
||
group :development, :test do | ||
gem "rubocop", "~> 0.24.1" | ||
gem "guard" | ||
gem "guard-rspec" | ||
gem "guard-rubocop" | ||
gem 'rubocop', '~> 0.28.0' | ||
gem 'guard' | ||
gem 'guard-rspec' | ||
gem 'guard-rubocop' | ||
end | ||
|
||
gemspec :path => "../" | ||
gemspec :path => '../' |
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,14 +1,14 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "http://rubygems.org" | ||
source 'http://rubygems.org' | ||
|
||
gem "rails", "4.1.6" | ||
gem 'rails', '4.1.6' | ||
|
||
group :development, :test do | ||
gem "rubocop", "~> 0.24.1" | ||
gem "guard" | ||
gem "guard-rspec" | ||
gem "guard-rubocop" | ||
gem 'rubocop', '~> 0.28.0' | ||
gem 'guard' | ||
gem 'guard-rspec' | ||
gem 'guard-rubocop' | ||
end | ||
|
||
gemspec :path => "../" | ||
gemspec :path => '../' |
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,18 +1,18 @@ | ||
$:.push File.expand_path("../lib", __FILE__) | ||
require "grape/version" | ||
$:.push File.expand_path('../lib', __FILE__) | ||
require 'grape/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "grape" | ||
s.name = 'grape' | ||
s.version = Grape::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Michael Bleigh"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "https://github.com/intridea/grape" | ||
s.authors = ['Michael Bleigh'] | ||
s.email = ['[email protected]'] | ||
s.homepage = 'https://github.com/intridea/grape' | ||
s.summary = %q{A simple Ruby framework for building REST-like APIs.} | ||
s.description = %q{A Ruby framework for rapid API development with great conventions.} | ||
s.license = "MIT" | ||
s.license = 'MIT' | ||
|
||
s.rubyforge_project = "grape" | ||
s.rubyforge_project = 'grape' | ||
|
||
s.add_runtime_dependency 'rack', '>= 1.3.0' | ||
s.add_runtime_dependency 'rack-mount' | ||
|
@@ -39,5 +39,5 @@ Gem::Specification.new do |s| | |
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
s.require_paths = ['lib'] | ||
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
Oops, something went wrong.