<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,6 @@
 class SwxController &lt; ApplicationController
+  protect_from_forgery :except =&gt; 'gateway'
+  
   def gateway
     # request handler takes in the params hash 
 		send_data(SwxGateway.process(params), :type =&gt; 'application/swf', :filename =&gt; 'data.swf', :disposition =&gt; 'inline')</diff>
      <filename>lib/swxruby/rails_integration/swx_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -109,8 +109,27 @@ class SwxAssembler
 			swf.sub('LLLLLLLL', swf_size_in_bytes)
 	  end
 	  
+	  # Converts any supported Ruby object into bytecode and wraps it in a SWX shell.
+    # 
+		# ==== Parameters
+		# * &lt;tt&gt;data&lt;/tt&gt; -- Any object that can be represented in AVM1 (or converted to an object that AVM1 supports, i.e. symbol are converted to strings).
+		# * &lt;tt&gt;debug&lt;/tt&gt; -- Boolean. If set to true, the generated SWX file will attempt to establish a local connection to the SWX Analyzer when opened in Flash Player.
+		# * &lt;tt&gt;compression_level&lt;/tt&gt; -- Specifies the level of gzip compression to apply to the swx file.
+		# * &lt;tt&gt;allow_domain_url&lt;/tt&gt; -- (optional) the url of the SWF file making this request. Added to the generated SWX file to skirt cross-domain issues. If not specified, the resulting SWX file will allow access from any domain
+		# * &lt;tt&gt;allow_domain&lt;/tt&gt; -- 
+    # 
+		# ==== Examples
+	  #   SwxGateway.process(:args =&gt; 'Hello World!', :debug =&gt; true, :method =&gt; 'echo_data', :serviceClass =&gt; 'Simple', :url =&gt; 'http://myfunkysite/swxconsumer.swf')
+	  #   # =&gt; A binary string of SWX bytecode containing the result of +Simple.new#echo_data('Hello World!')+; debugging enabled and allowing access from the specified url
+    #   
+	  #   SwxGateway.process(:args =&gt; 'Hello World!', :debug =&gt; true, :method =&gt; 'echo_data', :serviceClass =&gt; 'Simple')
+	  #   # =&gt; Same as previous, except allows access from any url
+    #   
+	  #   SwxGateway.process(:args =&gt; [1,2], :debug =&gt; false, :method =&gt; 'addNumbers', :serviceClass =&gt; 'Simple', :url =&gt; 'http://myfunkysite/swxconsumer.swf')
+	  #   # calls params[:method].underscore
+	  #   # =&gt; A binary string of SWX bytecode containing the result of +Simple.new#add_numbers(1, 2)+; no debugging and allowing access from the specified url
 		def write_swf(data, debug=false, compression_level=4, allow_domain_url='', allow_domain=true)
-		  # Set up SwfAssembler state
+		  # Set up SwxAssembler state
 		  @debug = debug
 		  @compression_level = compression_level
 		  @allow_domain_url = allow_domain_url
@@ -124,14 +143,6 @@ class SwxAssembler
       # Compress the file if compression is turned on
       swx_file = compress_swx_file(swx_file, compression_level) if compression_level &gt; 0
 
-      # ====================================
-      # = TODO: Remove this before release =
-      # ====================================
-      # Write the file (for manual 'loadMovie' testing in Flash)
-      # File.open('/Users/Jed/Development/Libraries/rSWX/testing/flash/rswx_data.swx', 'w+') do |file|
-      #   file &lt;&lt; swx_file
-      # end      
-
       swx_file
 		end
 	end</diff>
      <filename>lib/swxruby/swx_assembler.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>10851c3702b7870e7d02fc8540c79c9f51fd4f1e</id>
    </parent>
  </parents>
  <author>
    <name>Jed Hurt</name>
    <email>jedhurt@cableone.net</email>
  </author>
  <url>http://github.com/meekish/swxruby/commit/0a67c8592c7949414a0b06253f30e3d6f60257cd</url>
  <id>0a67c8592c7949414a0b06253f30e3d6f60257cd</id>
  <committed-date>2009-05-22T07:53:24-07:00</committed-date>
  <authored-date>2009-05-22T07:53:24-07:00</authored-date>
  <message>Excepted SwxController#gateway from forgery protection. Thanks Dio.</message>
  <tree>a8b2b790b4dac5b7c59c72884c2a5769d736bc7c</tree>
  <committer>
    <name>Jed Hurt</name>
    <email>jedhurt@cableone.net</email>
  </committer>
</commit>
