Permalink
Browse files

Gemfile, gemspec, updated README

  • Loading branch information...
1 parent 42d44cd commit 957b2ba238198ec53af602b895219b5789dd713c @yyyc514 yyyc514 committed Jan 5, 2012
Showing with 71 additions and 2 deletions.
  1. +3 −0 Gemfile
  2. +15 −2 README.rdoc
  3. +12 −0 lib/ardes/response_for_rc/version.rb
  4. +6 −0 lib/response_for_rc.rb
  5. +35 −0 response_for_rc.gemspec
View
@@ -0,0 +1,3 @@
+source :rubygems
+
+gemspec
View
@@ -1,14 +1,27 @@
response_for_rc
-if you're using resources_controller[http://github.com/ianwhite/resources_controller] and response_for[http://github.com/ianwhite/response_for], you probably want this!
+if you're using resources_controller[http://github.com/ianwhite/resources_controller] and
+response_for[http://github.com/ianwhite/response_for], you probably want this!
== What is it?
It's an alternate set of RC actions, written in response_for style.
== How to use it?
-Just drop it into your plugins directory.
+For Rails 3.0 and newer just add it to your Gemfile:
+
+ gem 'rails_rc'
+ gem 'response_for'
+ gem 'response_for_rc'
+
+For older versions of rails you'll need to install the rails2 branch in vendor/plugins:
+
+ cd vendor/plugins
+ git clone git://github.com/ianwhite/response_for_rc.git
+ cd response_for_rc
+ git checkout rails2
+ rmdir -f .git
== What else can I do with it?
@@ -0,0 +1,12 @@
+module Ardes #:nodoc:
+ module ResponseForRc #:nodoc:
+ module VERSION #:nodoc:
+ MAJOR = 0
+ MINOR = 2
+ TINY = 0
+
+ # 0.2.0
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ end
+ end
+end
View
@@ -0,0 +1,6 @@
+require 'ardes/rc_responses_module'
+require 'ardes/response_for_rc/actions'
+require 'ardes/response_for_rc/singleton_actions'
+
+Ardes::ResourcesController.actions = Ardes::ResponseForRc::Actions
+Ardes::ResourcesController.singleton_actions = Ardes::ResponseForRc::SingletonActions
View
@@ -0,0 +1,35 @@
+# -*- encoding: utf-8 -*-
+
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+require 'ardes/response_for_rc/version'
+version = Ardes::ResponseForRc::VERSION::STRING
+
+Gem::Specification.new do |s|
+ s.name = "response_for_rc"
+ s.version = version
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Ian White"]
+ s.email = "ian.w.white@gmail.com"
+ s.homepage = "http://github.com/ianwhite/response_for_rc"
+ s.summary = "response_for_rc-#{version}"
+ s.description = "It's an alternate set of RC actions, written in response_for style."
+
+ s.rubygems_version = "1.3.7"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
+ s.extra_rdoc_files = [ "README.rdoc" ]
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_path = "lib"
+
+ s.add_runtime_dependency "resources_controller", '~> 2.0'
+ s.add_runtime_dependency "response_for", '~> 0.4'
+ s.add_runtime_dependency "rails", '>= 3.0.0'
+
+ s.add_development_dependency "rspec", '>= 2.5.0'
+ s.add_development_dependency "rspec-rails", '>= 2.5.0'
+ s.add_development_dependency 'sqlite3-ruby'
+ s.add_development_dependency "rspec-rails", '>= 2.5.0'
+ s.add_development_dependency 'rcov'
+ s.add_development_dependency 'yard'
+end

0 comments on commit 957b2ba

Please sign in to comment.