Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moving to Bundler powered gemspec as well as moving to mg from jeweler.

  • Loading branch information...
commit dcbeb2b36ef10eeb7fa649fc91462309e326f12d 1 parent dd75477
@mbleigh mbleigh authored
View
7 .travis.yml
@@ -0,0 +1,7 @@
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - ree
+ - rbx
+ - jruby
+
View
21 Gemfile
@@ -1,22 +1,3 @@
source 'http://rubygems.org'
-gem 'rack'
-gem 'rack-mount', '~> 0.6.13'
-gem 'rack-jsonp'
-
-gem 'json'
-gem 'multi_json'
-gem 'multi_xml'
-
-group :development do
- gem 'rake'
- gem 'jeweler'
- gem 'maruku'
- gem 'yard'
-end
-
-group :test do
- gem 'rack-test'
- gem 'rspec', '>= 2.1.0'
- gem 'cucumber', '>= 0.8.5'
-end
+gemspec
View
69 Gemfile.lock
@@ -1,64 +1,51 @@
+PATH
+ remote: .
+ specs:
+ grape (0.1.3)
+ multi_json
+ multi_xml
+ rack
+ rack-jsonp
+ rack-mount
+
GEM
remote: http://rubygems.org/
specs:
- builder (2.1.2)
- cucumber (0.8.5)
- builder (~> 2.1.2)
- diff-lcs (~> 1.1.2)
- gherkin (~> 2.1.4)
- json_pure (~> 1.4.3)
- term-ansicolor (~> 1.0.4)
diff-lcs (1.1.2)
- gemcutter (0.6.1)
- gherkin (2.1.5)
- trollop (~> 1.16.2)
- git (1.2.5)
- jeweler (1.4.0)
- gemcutter (>= 0.1.0)
- git (>= 1.2.5)
- rubyforge (>= 2.0.0)
- json (1.4.6)
json_pure (1.4.3)
maruku (0.6.0)
syntax (>= 1.0.0)
- multi_json (0.0.4)
- multi_xml (0.0.1)
+ mg (0.0.8)
+ rake
+ multi_json (0.0.5)
+ multi_xml (0.2.2)
rack (1.2.1)
- rack-jsonp (1.0.0)
- rack-mount (0.6.13)
+ rack-jsonp (1.1.0)
+ rack
+ rack-mount (0.7.1)
rack (>= 1.0.0)
rack-test (0.5.4)
rack (>= 1.0)
rake (0.8.7)
- rspec (2.1.0)
- rspec-core (~> 2.1.0)
- rspec-expectations (~> 2.1.0)
- rspec-mocks (~> 2.1.0)
- rspec-core (2.1.0)
- rspec-expectations (2.1.0)
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.1)
+ rspec-expectations (2.5.0)
diff-lcs (~> 1.1.2)
- rspec-mocks (2.1.0)
- rubyforge (2.0.4)
- json_pure (>= 1.1.7)
+ rspec-mocks (2.5.0)
syntax (1.0.0)
- term-ansicolor (1.0.5)
- trollop (1.16.2)
yard (0.6.1)
PLATFORMS
ruby
DEPENDENCIES
- cucumber (>= 0.8.5)
- jeweler
- json
+ grape!
+ json_pure
maruku
- multi_json
- multi_xml
- rack
- rack-jsonp
- rack-mount (~> 0.6.13)
+ mg
rack-test
- rake
- rspec (>= 2.1.0)
+ rspec (~> 2.5.0)
yard
View
27 Rakefile
@@ -1,28 +1,9 @@
require 'rubygems'
require 'bundler'
-
Bundler.setup :default, :test, :development
-def version
- @version ||= open('VERSION').read.trim
-end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "grape"
- gem.summary = %Q{A Ruby framework for rapid API development.}
- gem.description = %Q{A Ruby framework for rapid API development with great conventions.}
- gem.email = "michael@intridea.com"
- gem.homepage = "http://github.com/intridea/grape"
- gem.authors = ["Michael Bleigh"]
- gem.add_bundler_dependencies
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+require 'mg'
+MG.new('grape.gemspec')
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -34,7 +15,7 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
end
-task :spec => :check_dependencies
+task :spec
task :default => :spec
begin
@@ -67,4 +48,4 @@ begin
end
rescue LoadError
puts "You need to install YARD."
-end
+end
View
233 grape.gemspec
@@ -1,212 +1,33 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
-# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "grape/version"
Gem::Specification.new do |s|
- s.name = %q{grape}
- s.version = "0.1.3"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Michael Bleigh"]
- s.date = %q{2011-01-10}
+ s.name = "grape"
+ s.version = Grape::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Michael Bleigh"]
+ s.email = ["michael@intridea.com"]
+ 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.email = %q{michael@intridea.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.markdown"
- ]
- s.files = [
- ".document",
- ".gitignore",
- ".rspec",
- ".yardoc/checksums",
- ".yardoc/objects/Grape.dat",
- ".yardoc/objects/Grape/API.dat",
- ".yardoc/objects/Grape/API/auth_c.dat",
- ".yardoc/objects/Grape/API/build_endpoint_c.dat",
- ".yardoc/objects/Grape/API/call_c.dat",
- ".yardoc/objects/Grape/API/compile_path_c.dat",
- ".yardoc/objects/Grape/API/default_format_c.dat",
- ".yardoc/objects/Grape/API/delete_c.dat",
- ".yardoc/objects/Grape/API/get_c.dat",
- ".yardoc/objects/Grape/API/group_c.dat",
- ".yardoc/objects/Grape/API/head_c.dat",
- ".yardoc/objects/Grape/API/helpers_c.dat",
- ".yardoc/objects/Grape/API/http_basic_c.dat",
- ".yardoc/objects/Grape/API/inherited_c.dat",
- ".yardoc/objects/Grape/API/logger_c.dat",
- ".yardoc/objects/Grape/API/namespace_c.dat",
- ".yardoc/objects/Grape/API/nest_c.dat",
- ".yardoc/objects/Grape/API/post_c.dat",
- ".yardoc/objects/Grape/API/prefix_c.dat",
- ".yardoc/objects/Grape/API/put_c.dat",
- ".yardoc/objects/Grape/API/reset_21_c.dat",
- ".yardoc/objects/Grape/API/resource_c.dat",
- ".yardoc/objects/Grape/API/resources_c.dat",
- ".yardoc/objects/Grape/API/route_c.dat",
- ".yardoc/objects/Grape/API/route_set_c.dat",
- ".yardoc/objects/Grape/API/scope_c.dat",
- ".yardoc/objects/Grape/API/set_c.dat",
- ".yardoc/objects/Grape/API/settings_c.dat",
- ".yardoc/objects/Grape/API/settings_stack_c.dat",
- ".yardoc/objects/Grape/API/version_c.dat",
- ".yardoc/objects/Grape/Endpoint.dat",
- ".yardoc/objects/Grape/Endpoint/block_3D_c.dat",
- ".yardoc/objects/Grape/Endpoint/block_c.dat",
- ".yardoc/objects/Grape/Endpoint/call_c.dat",
- ".yardoc/objects/Grape/Endpoint/call_i.dat",
- ".yardoc/objects/Grape/Endpoint/env_i.dat",
- ".yardoc/objects/Grape/Endpoint/error_21_i.dat",
- ".yardoc/objects/Grape/Endpoint/generate_c.dat",
- ".yardoc/objects/Grape/Endpoint/header_i.dat",
- ".yardoc/objects/Grape/Endpoint/params_i.dat",
- ".yardoc/objects/Grape/Endpoint/request_i.dat",
- ".yardoc/objects/Grape/Endpoint/status_i.dat",
- ".yardoc/objects/Grape/Endpoint/version_i.dat",
- ".yardoc/objects/Grape/Middleware.dat",
- ".yardoc/objects/Grape/Middleware/Auth.dat",
- ".yardoc/objects/Grape/Middleware/Auth/Basic.dat",
- ".yardoc/objects/Grape/Middleware/Auth/Basic/authenticator_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/Basic/basic_request_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/Basic/before_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/Basic/credentials_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/Basic/initialize_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/OAuth2.dat",
- ".yardoc/objects/Grape/Middleware/Auth/OAuth2/before_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/OAuth2/default_options_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/OAuth2/error_out_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/OAuth2/parse_authorization_header_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/OAuth2/token_class_i.dat",
- ".yardoc/objects/Grape/Middleware/Auth/OAuth2/verify_token_i.dat",
- ".yardoc/objects/Grape/Middleware/Base.dat",
- ".yardoc/objects/Grape/Middleware/Base/after_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/app_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/before_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/call_21_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/call_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/default_options_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/env_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/initialize_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/options_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/request_i.dat",
- ".yardoc/objects/Grape/Middleware/Base/response_i.dat",
- ".yardoc/objects/Grape/Middleware/Error.dat",
- ".yardoc/objects/Grape/Middleware/Error/call_21_i.dat",
- ".yardoc/objects/Grape/Middleware/Error/error_response_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/CONTENT_TYPES.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/after_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/before_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/content_types_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/default_options_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/encode_json_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/encode_txt_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/format_from_extension_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/format_from_header_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/headers_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/mime_array_i.dat",
- ".yardoc/objects/Grape/Middleware/Formatter/mime_types_i.dat",
- ".yardoc/objects/Grape/Middleware/Prefixer.dat",
- ".yardoc/objects/Grape/Middleware/Prefixer/before_i.dat",
- ".yardoc/objects/Grape/Middleware/Prefixer/prefix_i.dat",
- ".yardoc/objects/Grape/Middleware/Versioner.dat",
- ".yardoc/objects/Grape/Middleware/Versioner/before_i.dat",
- ".yardoc/objects/Grape/Middleware/Versioner/default_options_i.dat",
- ".yardoc/objects/Grape/MiddlewareStack.dat",
- ".yardoc/objects/Grape/MiddlewareStack/initialize_i.dat",
- ".yardoc/objects/Grape/MiddlewareStack/stack_i.dat",
- ".yardoc/objects/Grape/MiddlewareStack/to_app_i.dat",
- ".yardoc/objects/Grape/MiddlewareStack/use_i.dat",
- ".yardoc/objects/root.dat",
- ".yardoc/proxy_types",
- "Gemfile",
- "Gemfile.lock",
- "LICENSE",
- "README.markdown",
- "Rakefile",
- "VERSION",
- "autotest/discover.rb",
- "grape.gemspec",
- "lib/grape.rb",
- "lib/grape/api.rb",
- "lib/grape/endpoint.rb",
- "lib/grape/middleware/auth/basic.rb",
- "lib/grape/middleware/auth/oauth2.rb",
- "lib/grape/middleware/base.rb",
- "lib/grape/middleware/error.rb",
- "lib/grape/middleware/formatter.rb",
- "lib/grape/middleware/prefixer.rb",
- "lib/grape/middleware/versioner.rb",
- "spec/grape/api_spec.rb",
- "spec/grape/endpoint_spec.rb",
- "spec/grape/middleware/auth/basic_spec.rb",
- "spec/grape/middleware/auth/oauth2_spec.rb",
- "spec/grape/middleware/base_spec.rb",
- "spec/grape/middleware/error_spec.rb",
- "spec/grape/middleware/formatter_spec.rb",
- "spec/grape/middleware/prefixer_spec.rb",
- "spec/grape/middleware/versioner_spec.rb",
- "spec/grape_spec.rb",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://github.com/intridea/grape}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{A Ruby framework for rapid API development.}
- s.test_files = [
- "spec/grape/api_spec.rb",
- "spec/grape/endpoint_spec.rb",
- "spec/grape/middleware/auth/basic_spec.rb",
- "spec/grape/middleware/auth/oauth2_spec.rb",
- "spec/grape/middleware/base_spec.rb",
- "spec/grape/middleware/error_spec.rb",
- "spec/grape/middleware/formatter_spec.rb",
- "spec/grape/middleware/prefixer_spec.rb",
- "spec/grape/middleware/versioner_spec.rb",
- "spec/grape_spec.rb",
- "spec/spec_helper.rb"
- ]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.rubyforge_project = "grape"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rack>, [">= 0"])
- s.add_runtime_dependency(%q<rack-mount>, ["~> 0.6.13"])
- s.add_runtime_dependency(%q<rack-jsonp>, [">= 0"])
- s.add_runtime_dependency(%q<json>, [">= 0"])
- s.add_runtime_dependency(%q<multi_json>, [">= 0"])
- s.add_runtime_dependency(%q<multi_xml>, [">= 0"])
- s.add_development_dependency(%q<rake>, [">= 0"])
- s.add_development_dependency(%q<jeweler>, [">= 0"])
- s.add_development_dependency(%q<maruku>, [">= 0"])
- s.add_development_dependency(%q<yard>, [">= 0"])
- else
- s.add_dependency(%q<rack>, [">= 0"])
- s.add_dependency(%q<rack-mount>, ["~> 0.6.13"])
- s.add_dependency(%q<rack-jsonp>, [">= 0"])
- s.add_dependency(%q<json>, [">= 0"])
- s.add_dependency(%q<multi_json>, [">= 0"])
- s.add_dependency(%q<multi_xml>, [">= 0"])
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<maruku>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
- else
- s.add_dependency(%q<rack>, [">= 0"])
- s.add_dependency(%q<rack-mount>, ["~> 0.6.13"])
- s.add_dependency(%q<rack-jsonp>, [">= 0"])
- s.add_dependency(%q<json>, [">= 0"])
- s.add_dependency(%q<multi_json>, [">= 0"])
- s.add_dependency(%q<multi_xml>, [">= 0"])
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<maruku>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
-end
+ s.add_runtime_dependency 'rack'
+ s.add_runtime_dependency 'rack-mount'
+ s.add_runtime_dependency 'rack-jsonp'
+ s.add_runtime_dependency 'multi_json'
+ s.add_runtime_dependency 'multi_xml'
+ s.add_development_dependency 'mg'
+ s.add_development_dependency 'maruku'
+ s.add_development_dependency 'yard'
+ s.add_development_dependency 'rack-test'
+ s.add_development_dependency 'rspec', '~> 2.5.0'
+ s.add_development_dependency 'json_pure'
+
+ 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"]
+end
View
4 lib/grape.rb
@@ -19,4 +19,6 @@ module Auth
autoload :Basic, 'grape/middleware/auth/basic'
end
end
-end
+end
+
+require 'grape/version'
View
3  lib/grape/version.rb
@@ -0,0 +1,3 @@
+module Grape
+ VERSION = '0.1.3'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.