mofo 0.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.2.1
2
+ - Fixed autoloading
3
+
1
4
  = 0.2
2
5
  - Minor refactoring
3
6
  - Added Geo and Adr [Andrew Turner]
@@ -1,3 +1,3 @@
1
- $:.unshift File.join(File.dirname(__FILE__), "lib"), File.join(File.dirname(__FILE__))
1
+ $:.unshift File.dirname(__FILE__)
2
2
 
3
- Dir['mofo/*.rb'].each { |format| require "mofo/#{format}" }
3
+ Dir["#{File.dirname(__FILE__)}/mofo/*.rb"].each { |format| require "mofo/#{File.basename format}" }
@@ -1,3 +1,6 @@
1
+ # => http://microformats.org/wiki/adr
2
+ require 'microformat'
3
+
1
4
  class Adr < Microformat
2
5
  one :post_office_box, :extended_address, :street_address,
3
6
  :locality, :region, :postal_code, :country_name, :value
@@ -1,3 +1,6 @@
1
+ # => http://microformats.org/wiki/geo
2
+ require 'microformat'
3
+
1
4
  class Geo < Microformat
2
5
  one :latitude, :longitude
3
6
  end
@@ -14,10 +14,6 @@ class XFN < Microformat
14
14
  %[<a href="#{link}" rel="#{Array(relation) * ' '}">#{name}</a>]
15
15
  end
16
16
 
17
- def inspect
18
- link.inspect
19
- end
20
-
21
17
  def to_s
22
18
  link
23
19
  end
@@ -70,7 +70,6 @@ context "A XFN::Link object" do
70
70
  end
71
71
 
72
72
  specify "should display itself as its link" do
73
- $xfn_link.inspect.should.equal $xfn_link.link.inspect
74
73
  $xfn_link.to_s.should.equal $xfn_link.link.to_s
75
74
  end
76
75
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: mofo
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.2"
7
- date: 2007-03-22 00:00:00 -07:00
6
+ version: 0.2.1
7
+ date: 2007-03-27 00:00:00 -07:00
8
8
  summary: mofo is a ruby microformat parser
9
9
  require_paths:
10
10
  - lib