jnunemaker-happymapper 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/History CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.3
2
+ * 1 minor tweak
3
+ * bumped the version of libxml-ruby to 1.1.3
4
+
1
5
  == 0.2.2
2
6
  * 2 minor tweaks
3
7
  * removed GC.start (libxml recommended this) as setting nodes to nil should be enough, specs run 3-4x faster (Brandon Keepers)
data/README CHANGED
@@ -11,16 +11,51 @@ should also point you in the right direction.
11
11
  * Fast because it uses libxml-ruby under the hood
12
12
  * Automatic conversion of xml to defined objects
13
13
 
14
- == SYNOPSIS:
15
-
16
- See examples directory in the gem to get a feel for how it works.
14
+ == EXAMPLES:
15
+
16
+ Here is a simple example that maps Twitter statuses and users.
17
+
18
+ class User
19
+ include HappyMapper
20
+
21
+ element :id, Integer
22
+ element :name, String
23
+ element :screen_name, String
24
+ element :location, String
25
+ element :description, String
26
+ element :profile_image_url, String
27
+ element :url, String
28
+ element :protected, Boolean
29
+ element :followers_count, Integer
30
+ end
31
+
32
+ class Status
33
+ include HappyMapper
34
+
35
+ element :id, Integer
36
+ element :text, String
37
+ element :created_at, Time
38
+ element :source, String
39
+ element :truncated, Boolean
40
+ element :in_reply_to_status_id, Integer
41
+ element :in_reply_to_user_id, Integer
42
+ element :favorited, Boolean
43
+ has_one :user, User
44
+ end
45
+
46
+ See examples directory in the gem for more examples.
47
+
48
+ http://github.com/jnunemaker/happymapper/tree/master/examples/
17
49
 
18
50
  == INSTALL:
19
51
 
20
- * add github to your sources if you haven't gem sources -a http://gems.github.com
21
- * sudo gem install jnunemaker-happymapper
52
+ * sudo gem install jnunemaker-happymapper -s http://gems.github.com
22
53
  * sudo gem install happymapper (when rubyforge approves and i release there)
23
54
 
24
55
  == TICKETS:
25
56
 
26
- http://jnunemaker.lighthouseapp.com/projects/20014-happy-mapper/overview
57
+ http://github.com/jnunemaker/happymapper/issues/
58
+
59
+ == DOCS:
60
+
61
+ http://rdoc.info/projects/jnunemaker/happymapper
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Echoe.new(ProjectName, HappyMapper::Version) do |p|
13
13
  p.url = "http://#{ProjectName}.rubyforge.org"
14
14
  p.author = "John Nunemaker"
15
15
  p.email = "nunemaker@gmail.com"
16
- p.extra_deps = [['libxml-ruby', '= 0.9.8']]
16
+ p.extra_deps = [['libxml-ruby', '= 1.1.3']]
17
17
  p.need_tar_gz = false
18
18
  p.docs_host = WebsitePath
19
19
  end
data/happymapper.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{happymapper}
5
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
9
- s.date = %q{2009-01-29}
9
+ s.date = %q{2009-05-17}
10
10
  s.description = %q{object to xml mapping library}
11
11
  s.email = %q{nunemaker@gmail.com}
12
12
  s.extra_rdoc_files = ["lib/happymapper/attribute.rb", "lib/happymapper/element.rb", "lib/happymapper/item.rb", "lib/happymapper/version.rb", "lib/happymapper.rb", "README", "TODO"]
@@ -25,14 +25,14 @@ Gem::Specification.new do |s|
25
25
  s.specification_version = 2
26
26
 
27
27
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
- s.add_runtime_dependency(%q<libxml-ruby>, ["= 0.9.8"])
28
+ s.add_runtime_dependency(%q<libxml-ruby>, ["= 1.1.3"])
29
29
  s.add_development_dependency(%q<echoe>, [">= 0"])
30
30
  else
31
- s.add_dependency(%q<libxml-ruby>, ["= 0.9.8"])
31
+ s.add_dependency(%q<libxml-ruby>, ["= 1.1.3"])
32
32
  s.add_dependency(%q<echoe>, [">= 0"])
33
33
  end
34
34
  else
35
- s.add_dependency(%q<libxml-ruby>, ["= 0.9.8"])
35
+ s.add_dependency(%q<libxml-ruby>, ["= 1.1.3"])
36
36
  s.add_dependency(%q<echoe>, [">= 0"])
37
37
  end
38
38
  end
data/lib/happymapper.rb CHANGED
@@ -4,7 +4,7 @@ $:.unshift(dir) unless $:.include?(dir) || $:.include?(File.expand_path(dir))
4
4
  require 'date'
5
5
  require 'time'
6
6
  require 'rubygems'
7
- gem 'libxml-ruby', '= 0.9.8'
7
+ gem 'libxml-ruby', '= 1.1.3'
8
8
  require 'xml'
9
9
 
10
10
  class Boolean; end
@@ -1,3 +1,3 @@
1
1
  module HappyMapper
2
- Version = '0.2.2'
2
+ Version = '0.2.3'
3
3
  end
data/website/index.html CHANGED
@@ -87,7 +87,7 @@ statuses.each do |status|
87
87
  end</code></pre>
88
88
 
89
89
  <h2>Support</h2>
90
- <p>Conversations welcome in the <a href="http://groups.google.com/group/happymapper">google group</a> and bugs/features over at <a href="http://jnunemaker.lighthouseapp.com/projects/20014-happy-mapper/overview">Lightouse</a>.</p>
90
+ <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>
91
91
  </div>
92
92
 
93
93
  <div id="footer">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnunemaker-happymapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,20 +9,22 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-29 00:00:00 -08:00
12
+ date: 2009-05-17 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: libxml-ruby
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - "="
21
22
  - !ruby/object:Gem::Version
22
- version: 0.9.8
23
+ version: 1.1.3
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: echoe
27
+ type: :development
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements: