RubyAMF is a full-featured AMF gateway based off of Rack and supporting advanced integration with Rails and other Rack-based frameworks. It includes advanced class mapping functionality, like camel to underscore case translation, parameter mapping to convert function calls to parameter hashes for actions, hooks for processing AMF authentication credentials, and many more features.
-
Delete
RAILS_ROOT/vendor/plugins/rubyamf
or comment out every line inRAILS_ROOT/vendor/plugins/rubyamf/init.rb
. -
Add gems to application:
Bundler:
gem "RocketAMF", :git => "git://github.com/rubyamf/rocketamf.git" gem 'rubyamf', :git => 'git://github.com/rubyamf/rubyamf.git'
environment.rb:
config.gem "RocketAMF" config.gem "rubyamf"
-
Configure the endpoint path by adding the following to the end of your
environment.rb
file:RubyAMF.configure do |config| config.gateway_path = "/rubyamf/gateway" end
The gateway path is no longer specified in
routes.rb
, so you can remove it andrubyamf_controller.rb
if you want. -
Try out your application!
RubyAMF should load your legacy
rubyamf_config.rb
file and you should be on your way.
If you want to learn more about the new features, please check out the demo app at github.com/rubyamf/rubyamf-demo or the RDoc at (SOMEWHERE).
-
Add gems to application:
Bundler:
gem "RocketAMF", :git => "git://github.com/rubyamf/rocketamf.git" gem 'rubyamf', :git => 'git://github.com/rubyamf/rubyamf.git'
environment.rb:
config.gem "RocketAMF" config.gem "rubyamf"
-
Configure the endpoint path by adding the following to the end of your
environment.rb
file:RubyAMF.configure do |config| config.gateway_path = "/rubyamf/gateway" end
Check out the demo app at (SOMEWHERE) or the RDoc at (SOMEWHERE) for information about configuration and use.
-
Add the gems to your Gemfile:
gem "RocketAMF", :git => "git://github.com/rubyamf/rocketamf.git" gem 'rubyamf', :git => 'git://github.com/rubyamf/rubyamf.git'
-
Configure the endpoint path by adding the following to your
application.rb
:config.rubyamf.gateway_path = "/amf"
Check out the demo app at github.com/rubyamf/rubyamf-demo or the RDoc at (SOMEWHERE) for information about configuration and use.
TODO: Write up instructions
(The MIT License)
Copyright © 2011 Stephen Augenstein
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.