Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some doc updates and such.

  • Loading branch information...
commit 8be33b7e2c5e195f5d4ec1da57cd1e1da5bf2138 1 parent 2417c9d
@jnunemaker authored
Showing with 63 additions and 130 deletions.
  1. +0 −59 History
  2. +2 −8 README.rdoc
  3. +1 −1  spec/spec_helper.rb
  4. +60 −62 website/index.html
View
59 History
@@ -1,59 +0,0 @@
-== 0.2.5
-* 1 minor tweak
- * Classes can now be strings instead of constants so you don't have to worry about class definition order (this was all for technicalpickles, enjoy!)
-
-== 0.2.4
-* 1 minor tweak
- * Added a patch that allows even crazy namespaces to work
-
-== 0.2.3
-* 1 minor tweak
- * bumped the version of libxml-ruby to 1.1.3
-
-== 0.2.2
-* 2 minor tweaks
- * removed GC.start (libxml recommended this) as setting nodes to nil should be enough, specs run 3-4x faster (Brandon Keepers)
- * renamed get_tag_name to tag_name (Brandon Keepers)
- * removed libxml helpers as they are no longer needed
-
-== 0.2.1
-* 1 minor fix, 3 major enhancements
- * fixed warnings about using XML::Parser (mojodna)
- * Improved namespace support, now handles multiple namespaces and allows namespaces to be set item wide or on a per element basis (mojodna)
- * Auto detect root nodes (mojodna)
- * Type coercion (mojodna)
-
-== 0.2.0
-* 1 major enhancement, 2 minor ehancements
- * Automatic handling of namespaces (part by Robert Lowrey and rest by John Nunemaker)
- * Added :root option to tag method. This allows setting an object as the root element, which sets xpath to use / and sets single to true
- * Now defaulting tag names for classes in modules to last constant downcased
-
-== 0.1.7 2009-01-29
-* 1 minor enhancement
- * Support dashes in elements (Josh Nichols)
-
-== 0.1.6 2009-01-17
-* 1 minor enhancement:
- * added support for nested collection elements (Justin Marney)
-
-== 0.1.5 2009-01-05
-* 1 major enhancement:
- * Updated to latest version of libxml-ruby (lightningdb)
-
-== 0.1.4 2009-01-05
-* 1 major enhancement:
- * Fixed parsing when the object is the root node. (Garret Alfert)
-
-== 0.1.3 2008-12-31
-* 1 major enhancement:
- * Added parsing of attributes of elements that are also mapped, see current_weather.rb for example (jeremyf)
-
-== 0.1.2 2008-12-12
-* 1 major enhancement:
- * Fixed that :deep only worked for first item (dvrensk)
-
-== 0.1.0 2008-11-16
-
-* 1 major enhancement:
- * Initial release
View
10 README.rdoc
@@ -2,8 +2,7 @@
== DESCRIPTION:
-Object to xml mapping library. I have included examples to help get you going. The specs
-should also point you in the right direction.
+Object to xml mapping library. I have included examples to help get you going. The specs should also point you in the right direction.
== FEATURES:
@@ -49,12 +48,7 @@ http://github.com/jnunemaker/happymapper/tree/master/examples/
== INSTALL:
-* sudo gem install jnunemaker-happymapper -s http://gems.github.com
-* sudo gem install happymapper (when rubyforge approves and i release there)
-
-== TICKETS:
-
-http://github.com/jnunemaker/happymapper/issues/
+* gem install happymapper
== DOCS:
View
2  spec/spec_helper.rb
@@ -6,7 +6,7 @@
require 'spec'
end
-require File.join(File.dirname(__FILE__), '..', 'lib', 'happymapper')
+require File.expand_path('../../lib/happymapper', __FILE__)
def fixture_file(filename)
File.read(File.dirname(__FILE__) + "/fixtures/#{filename}")
View
122 website/index.html
@@ -1,53 +1,51 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>HappyMapper by John Nunemaker</title>
- <link rel="stylesheet" href="css/common.css" type="text/css" />
-</head>
-<body>
-
-<div id="wrapper">
- <div id="header">
- <h1>HappyMapper</h1>
- <p>Object to xml mapping library.</p>
-
- <ul id="nav">
- <li><a href="rdoc/">Docs</a></li>
- <li><a href="http://github.com/jnunemaker/happymapper">Github</a></li>
- <li><a href="http://jnunemaker.lighthouseapp.com/projects/20014-happy-mapper/overview">Lighthouse</a></li>
- <li><a href="http://rubyforge.org/projects/happymapper/">Rubyforge</a></li>
- </ul>
- </div>
-
- <div id="content">
- <h2>Install</h2>
- <pre><code>$ sudo gem install happymapper</code></pre>
-
- <h2>Examples</h2>
-
- <h3>Given the following xml:</h3>
-<pre><code>&lt;statuses type="array">
- &lt;status>
- &lt;created_at>Sat Aug 09 05:38:12 +0000 2008&lt;/created_at>
- &lt;id>882281424&lt;/id>
- &lt;text>I so just thought the guy lighting the Olympic torch was falling when he began to run on the wall. Wow that would have been catastrophic.&lt;/text>
- &lt;source>web&lt;/source>
- &lt;truncated>false&lt;/truncated>
- &lt;in_reply_to_status_id>1234&lt;/in_reply_to_status_id>
- &lt;in_reply_to_user_id>12345&lt;/in_reply_to_user_id>
- &lt;favorited>&lt;/favorited>
- &lt;user>
- &lt;id>4243&lt;/id>
- &lt;name>John Nunemaker&lt;/name>
- &lt;screen_name>jnunemaker&lt;/screen_name>
- &lt;location>Mishawaka, IN, US&lt;/location>
- &lt;description>Loves his wife, ruby, notre dame football and iu basketball&lt;/description>
- &lt;profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/53781608/Photo_75_normal.jpg&lt;/profile_image_url>
- &lt;url>http://addictedtonew.com&lt;/url>
- &lt;protected>false&lt;/protected>
- &lt;followers_count>486&lt;/followers_count>
- &lt;/user>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>HappyMapper by John Nunemaker</title>
+ <link rel="stylesheet" href="css/common.css" type="text/css" />
+</head>
+<body>
+
+<div id="wrapper">
+ <div id="header">
+ <h1>HappyMapper</h1>
+ <p>Object to xml mapping library.</p>
+
+ <ul id="nav">
+ <li><a href="http://rdoc.info/projects/jnunemaker/happymapper">Docs</a></li>
+ <li><a href="http://github.com/jnunemaker/happymapper">Github</a></li>
+ </ul>
+ </div>
+
+ <div id="content">
+ <h2>Install</h2>
+ <pre><code>$ gem install happymapper</code></pre>
+
+ <h2>Examples</h2>
+
+ <h3>Given the following xml:</h3>
+<pre><code>&lt;statuses type="array">
+ &lt;status>
+ &lt;created_at>Sat Aug 09 05:38:12 +0000 2008&lt;/created_at>
+ &lt;id>882281424&lt;/id>
+ &lt;text>I so just thought the guy lighting the Olympic torch was falling when he began to run on the wall. Wow that would have been catastrophic.&lt;/text>
+ &lt;source>web&lt;/source>
+ &lt;truncated>false&lt;/truncated>
+ &lt;in_reply_to_status_id>1234&lt;/in_reply_to_status_id>
+ &lt;in_reply_to_user_id>12345&lt;/in_reply_to_user_id>
+ &lt;favorited>&lt;/favorited>
+ &lt;user>
+ &lt;id>4243&lt;/id>
+ &lt;name>John Nunemaker&lt;/name>
+ &lt;screen_name>jnunemaker&lt;/screen_name>
+ &lt;location>Mishawaka, IN, US&lt;/location>
+ &lt;description>Loves his wife, ruby, notre dame football and iu basketball&lt;/description>
+ &lt;profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/53781608/Photo_75_normal.jpg&lt;/profile_image_url>
+ &lt;url>http://addictedtonew.com&lt;/url>
+ &lt;protected>false&lt;/protected>
+ &lt;followers_count>486&lt;/followers_count>
+ &lt;/user>
&lt;/status>
&lt;/statuses></code></pre>
@@ -55,7 +53,7 @@
<pre><code>class User
include HappyMapper
-
+
element :id, Integer
element :name, String
element :screen_name, String
@@ -84,15 +82,15 @@
statuses = Status.parse(file_contents)
statuses.each do |status|
puts status.user.name, status.user.screen_name, status.text, status.source, ''
-end</code></pre>
-
- <h2>Support</h2>
- <p>Conversations welcome in the <a href="http://groups.google.com/group/happymapper">google group</a> and bugs/features over at <a href="http://github.com/jnunemaker/happymapper/issues/">Github</a>.</p>
- </div>
-
- <div id="footer">
- <p>Created by <a href="http://addictedtonew.com/about/">John Nunemaker</a></p>
- </div>
-</div>
-</body>
+end</code></pre>
+
+ <h2>Support</h2>
+ <p>Conversations welcome in the <a href="http://groups.google.com/group/happymapper">google group</a> and bugs/features over at <a href="http://github.com/jnunemaker/happymapper/issues/">Github</a>.</p>
+ </div>
+
+ <div id="footer">
+ <p>Created by <a href="http://railstips.org/about/">John Nunemaker</a></p>
+ </div>
+</div>
+</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.