forked from rails/activeresource
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing files back to Active Resource
This will make sure that Active Resource can be run standalone as a gem.
- Loading branch information
Showing
5 changed files
with
74 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Don't put *.swp, *.bak, etc here; those belong in a global ~/.gitignore. | ||
# Check out http://help.github.com/ignore-files/ for how to set that up. | ||
|
||
debug.log | ||
.Gemfile | ||
/.bundle | ||
/.rbenv-version | ||
/.rvmrc | ||
/Gemfile.lock | ||
/pkg | ||
/dist | ||
/doc/rdoc | ||
/*/doc | ||
/*/test/tmp | ||
/RDOC_MAIN.rdoc |
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,48 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
local_rails_path = File.expand_path(File.dirname(__FILE__) + '/../rails') | ||
if File.exists?(local_rails_path) | ||
rails_gem_source = { :path => local_rails_path } | ||
else | ||
rails_gem_source = { :git => "git://github.com/rails/rails.git" } | ||
end | ||
|
||
gem 'activesupport', rails_gem_source.dup | ||
gem 'activemodel', rails_gem_source.dup | ||
|
||
group :doc do | ||
# The current sdoc cannot generate GitHub links due | ||
# to a bug, but the PR that fixes it has been there | ||
# for some weeks unapplied. As a temporary solution | ||
# this is our own fork with the fix. | ||
gem 'sdoc', :git => 'git://github.com/fxn/sdoc.git' | ||
gem 'RedCloth', '~> 4.2' | ||
gem 'w3c_validators' | ||
end | ||
|
||
# Add your own local bundler stuff | ||
local_gemfile = File.dirname(__FILE__) + "/.Gemfile" | ||
instance_eval File.read local_gemfile if File.exists? local_gemfile | ||
|
||
platforms :mri do | ||
group :test do | ||
gem 'ruby-prof' | ||
end | ||
end | ||
|
||
platforms :ruby do | ||
gem 'json' | ||
gem 'yajl-ruby' | ||
gem 'nokogiri', '>= 1.4.5' | ||
end | ||
|
||
platforms :jruby do | ||
gem 'json' | ||
|
||
# This is needed by now to let tests work on JRuby | ||
# TODO: When the JRuby guys merge jruby-openssl in | ||
# jruby this will be removed | ||
gem 'jruby-openssl' | ||
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# bust gem prelude | ||
require 'rubygems' unless defined? Gem | ||
require 'bundler' | ||
Bundler.setup |
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