Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 1efa43dbcace361216220a86d3901c677a4c7044 @fabrik42 committed Jun 30, 2010
Showing with 3,216 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 History.txt
  3. +16 −0 Manifest.txt
  4. +7 −0 PostInstall.txt
  5. +49 −0 README.rdoc
  6. +28 −0 Rakefile
  7. +158 −0 doc/classes/ActsAsApi.html
  8. +196 −0 doc/classes/ActsAsApi/Base.html
  9. +174 −0 doc/classes/ActsAsApi/Base/ClassMethods.html
  10. +204 −0 doc/classes/ActsAsApi/Base/InstanceMethods.html
  11. +180 −0 doc/classes/ActsAsApi/Rendering.html
  12. +175 −0 doc/classes/Array.html
  13. +1 −0 doc/created.rid
  14. +115 −0 doc/files/History_txt.html
  15. +111 −0 doc/files/Manifest_txt.html
  16. +112 −0 doc/files/PostInstall_txt.html
  17. +108 −0 doc/files/lib/acts_as_api/array_rb.html
  18. +101 −0 doc/files/lib/acts_as_api/base_rb.html
  19. +101 −0 doc/files/lib/acts_as_api/rendering_rb.html
  20. +111 −0 doc/files/lib/acts_as_api_rb.html
  21. +32 −0 doc/fr_class_index.html
  22. +33 −0 doc/fr_file_index.html
  23. +33 −0 doc/fr_method_index.html
  24. +24 −0 doc/index.html
  25. +208 −0 doc/rdoc-style.css
  26. +35 −0 lib/acts_as_api.rb
  27. +25 −0 lib/acts_as_api/array.rb
  28. +115 −0 lib/acts_as_api/base.rb
  29. +43 −0 lib/acts_as_api/rendering.rb
  30. BIN pkg/acts_as_api-0.0.1.gem
  31. BIN pkg/acts_as_api-0.0.1.tgz
  32. +4 −0 pkg/acts_as_api-0.0.1/History.txt
  33. +16 −0 pkg/acts_as_api-0.0.1/Manifest.txt
  34. +7 −0 pkg/acts_as_api-0.0.1/PostInstall.txt
  35. +49 −0 pkg/acts_as_api-0.0.1/README.rdoc
  36. +28 −0 pkg/acts_as_api-0.0.1/Rakefile
  37. +35 −0 pkg/acts_as_api-0.0.1/lib/acts_as_api.rb
  38. +25 −0 pkg/acts_as_api-0.0.1/lib/acts_as_api/array.rb
  39. +115 −0 pkg/acts_as_api-0.0.1/lib/acts_as_api/base.rb
  40. +43 −0 pkg/acts_as_api-0.0.1/lib/acts_as_api/rendering.rb
  41. +10 −0 pkg/acts_as_api-0.0.1/script/console
  42. +14 −0 pkg/acts_as_api-0.0.1/script/destroy
  43. +14 −0 pkg/acts_as_api-0.0.1/script/generate
  44. +87 −0 pkg/acts_as_api-0.0.1/spec/acts_as_api_spec.rb
  45. +1 −0 pkg/acts_as_api-0.0.1/spec/spec.opts
  46. +18 −0 pkg/acts_as_api-0.0.1/spec/spec_helper.rb
  47. +21 −0 pkg/acts_as_api-0.0.1/tasks/rspec.rake
  48. +10 −0 script/console
  49. +14 −0 script/destroy
  50. +14 −0 script/generate
  51. +87 −0 spec/acts_as_api_spec.rb
  52. +1 −0 spec/spec.opts
  53. +18 −0 spec/spec_helper.rb
  54. +64 −0 spec/spec_models.rb
  55. +21 −0 tasks/rspec.rake
@@ -0,0 +1 @@
+nbproject/
@@ -0,0 +1,4 @@
+=== 0.0.1 2010-06-27
+
+* 1 major enhancement:
+ * Initial release
@@ -0,0 +1,16 @@
+README.rdoc
+History.txt
+Manifest.txt
+PostInstall.txt
+Rakefile
+lib/acts_as_api.rb
+lib/acts_as_api/array.rb
+lib/acts_as_api/base.rb
+lib/acts_as_api/rendering.rb
+script/console
+script/destroy
+script/generate
+spec/acts_as_api_spec.rb
+spec/spec.opts
+spec/spec_helper.rb
+tasks/rspec.rake
@@ -0,0 +1,7 @@
+
+For more information on acts_as_api, see http://acts_as_api.rubyforge.org
+
+NOTE: Change this information in PostInstall.txt
+You can also delete it if you don't want it.
+
+
@@ -0,0 +1,49 @@
+= acts_as_api
+
+* http://github.com/ffwdme/acts_as_api
+
+
+== DESCRIPTION:
+
+acts_as_api makes creating XML/JSON responses in Rails 3 easy and fun.
+
+== FEATURES/PROBLEMS:
+
+* FIX (list of features or problems)
+
+== SYNOPSIS:
+
+ See example app :)
+
+== REQUIREMENTS:
+
+* Rails 3 beta 4
+
+== INSTALL:
+
+ sudo gem install acts_as_api
+
+== LICENSE:
+
+(The MIT License)
+
+Copyright (c) 2010 FIXME full name
+
+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.
@@ -0,0 +1,28 @@
+require 'rubygems'
+gem 'hoe', '>= 2.1.0'
+require 'hoe'
+require 'fileutils'
+require './lib/acts_as_api'
+
+Hoe.plugin :newgem
+# Hoe.plugin :website
+# Hoe.plugin :cucumberfeatures
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.spec 'acts_as_api' do
+ self.developer 'Christian Bäuerlein', 'christian@ffwdme.com'
+ #self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
+ #self.rubyforge_name = self.name # TODO this is default value
+ self.extra_deps = [['activerecord','>= 3.0.0.beta4'], ['actionpack','>= 3.0.0.beta4']]
+
+end
+
+require 'newgem/tasks'
+# In Netbeans the next lines causes every rspec test to run twice.
+# If you're not using Netbeans and having problem with testing - try to disable it.
+#Dir['tasks/**/*.rake'].each { |t| load t }
+
+# TODO - want other tests/tasks run by default? Add them to the list
+# remove_task :default
+# task :default => [:spec, :features]
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: ActsAsApi</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">ActsAsApi</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/acts_as_api/base_rb.html">
+ lib/acts_as_api/base.rb
+ </a>
+ <br />
+ <a href="../files/lib/acts_as_api/rendering_rb.html">
+ lib/acts_as_api/rendering.rb
+ </a>
+ <br />
+ <a href="../files/lib/acts_as_api_rb.html">
+ lib/acts_as_api.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+acts_as_api is a gem that aims to make the construction of JSON and XML
+responses in rails 3 easy and fun.
+</p>
+<p>
+Therefore it attaches a couple of helper methods to active record and the
+action controller base classes.
+</p>
+<p>
+acts_as_api uses the default serializers of your rails app and
+doesn&#8216;t force you into more dependencies.
+</p>
+
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Module <a href="ActsAsApi/Base.html" class="link">ActsAsApi::Base</a><br />
+Module <a href="ActsAsApi/Rendering.html" class="link">ActsAsApi::Rendering</a><br />
+
+ </div>
+
+ <div id="constants-list">
+ <h3 class="section-bar">Constants</h3>
+
+ <div class="name-list">
+ <table summary="Constants">
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">VERSION</td>
+ <td>=</td>
+ <td class="context-item-value">'0.0.1'</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ACCEPTED_API_FORMATS</td>
+ <td>=</td>
+ <td class="context-item-value">[:xml, :json]</td>
+ <td width="3em">&nbsp;</td>
+ <td class="context-item-desc">
+The accepted response formats Default is +[:xml, :json]+
+
+</td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 1efa43d

Please sign in to comment.