xfn_stone 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ ## PROJECT::GENERAL
2
+ coverage
3
+ rdoc
4
+ pkg
5
+ *.gemspec
data/Rakefile CHANGED
@@ -1,17 +1,46 @@
1
- # -*- ruby -*-
2
-
3
1
  require 'rubygems'
4
- require 'hoe'
5
- require './lib/xfn_stone.rb'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "xfn_stone"
8
+ gem.summary = "XHTML Frinds Network helper library"
9
+ gem.description = "Simplify development of loading and parsing HTML pages with XFN social network information."
10
+ gem.email = "don@donpark.org"
11
+ gem.homepage = "http://github.com/donpdonp/xfn_stone"
12
+ gem.authors = ["Don Park"]
13
+ gem.rubyforge_project = 'foafstone'
14
+ gem.add_development_dependency "rspec", ">= 1.2.9"
15
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
+ end
17
+ Jeweler::GemcutterTasks.new
18
+ rescue LoadError
19
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
+ end
21
+
22
+ require 'spec/rake/spectask'
23
+ Spec::Rake::SpecTask.new(:spec) do |spec|
24
+ spec.libs << 'lib' << 'spec'
25
+ spec.spec_files = FileList['spec/lib/*.rb']
26
+ end
6
27
 
7
- Hoe.new('xfn_stone', XfnStone::VERSION) do |p|
8
- p.rubyforge_name = 'foafstone'
9
- p.author = 'Don Park'
10
- p.email = 'don.park@gmail.com'
11
- p.summary = 'XHTML Frinds Network helper library'
12
- p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
13
- p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
14
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
28
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
29
+ spec.libs << 'lib' << 'spec'
30
+ spec.pattern = 'spec/**/*_spec.rb'
31
+ spec.rcov = true
15
32
  end
16
33
 
17
- # vim: syntax=Ruby
34
+ task :spec => :check_dependencies
35
+
36
+ task :default => :spec
37
+
38
+ require 'rake/rdoctask'
39
+ Rake::RDocTask.new do |rdoc|
40
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
41
+
42
+ rdoc.rdoc_dir = 'rdoc'
43
+ rdoc.title = "example #{version}"
44
+ rdoc.rdoc_files.include('README*')
45
+ rdoc.rdoc_files.include('lib/**/*.rb')
46
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.7
@@ -0,0 +1,11 @@
1
+ <html>
2
+ <body>
3
+ <a href="http://bob-online.com" rel="me">my other home page</a>
4
+ <a href="http://dansworld.com" rel="met friend">my buddy dan</a>
5
+ <a href="http://janflies.org" rel="friend">my penpal jan</a>
6
+ <a href="http://work.com/james" rel="contact">coworker james</a>
7
+ <a href="http://work.com/polly" rel="contact">coworker polly</a>
8
+
9
+ <a href="http://work.com/polly" rel="friendly">other rel uses</a>
10
+ </body>
11
+ </html>
@@ -1,10 +1,10 @@
1
- require File.join(File.dirname(__FILE__), *%w[spec_helper])
2
- require File.join(File.dirname(__FILE__), *%w[../lib/xfn_stone.rb])
1
+ require File.join(File.dirname(__FILE__), *%w[../spec_helper])
2
+ require File.join(File.dirname(__FILE__), *%w[../../lib/xfn_stone.rb])
3
3
 
4
4
  describe XfnStone::Person do
5
5
 
6
6
  before(:each) do
7
- html_page = open(File.dirname(__FILE__)+"/html/bob.html")
7
+ html_page = open(File.dirname(__FILE__)+"/../html/bob.html")
8
8
  XfnStone::Document.should_receive(:open).and_return(html_page)
9
9
  @url = "http://localhost"
10
10
  @person = XfnStone::Person.new(@url)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xfn_stone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Park
@@ -9,45 +9,47 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-19 00:00:00 -07:00
12
+ date: 2010-03-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: hoe
17
- type: :runtime
16
+ name: rspec
17
+ type: :development
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.5.1
23
+ version: 1.2.9
24
24
  version:
25
- description: "== DESCRIPTION: XfnStone provides helper methods to make simple the processing of XML documents that contain HTML with XFN (XHTML Friends Network) attributes on its tags. == FEATURES/PROBLEMS: * XFN processing"
26
- email: don.park@gmail.com
25
+ description: Simplify development of loading and parsing HTML pages with XFN social network information.
26
+ email: don@donpark.org
27
27
  executables: []
28
28
 
29
29
  extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
- - History.txt
33
- - Manifest.txt
34
32
  - README.txt
35
33
  files:
34
+ - .gitignore
36
35
  - History.txt
37
36
  - Manifest.txt
38
37
  - README.txt
39
38
  - Rakefile
39
+ - VERSION
40
40
  - lib/xfn_stone.rb
41
41
  - lib/xfn_stone/document.rb
42
42
  - lib/xfn_stone/person.rb
43
- - spec/person.rb
43
+ - spec/html/bob.html
44
+ - spec/lib/person.rb
44
45
  - spec/spec_helper.rb
45
46
  has_rdoc: true
46
- homepage:
47
+ homepage: http://github.com/donpdonp/xfn_stone
48
+ licenses: []
49
+
47
50
  post_install_message:
48
51
  rdoc_options:
49
- - --main
50
- - README.txt
52
+ - --charset=UTF-8
51
53
  require_paths:
52
54
  - lib
53
55
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -65,9 +67,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
67
  requirements: []
66
68
 
67
69
  rubyforge_project: foafstone
68
- rubygems_version: 1.2.0
70
+ rubygems_version: 1.3.5
69
71
  signing_key:
70
- specification_version: 2
72
+ specification_version: 3
71
73
  summary: XHTML Frinds Network helper library
72
- test_files: []
73
-
74
+ test_files:
75
+ - spec/lib/person.rb
76
+ - spec/spec_helper.rb