xbel 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
@@ -90,11 +90,13 @@ module Nokogiri::Decorators::XBEL
90
90
  end
91
91
  end
92
92
 
93
- # Returns nil.
93
+ # Returns true if this node is an alias.
94
94
  def alias?; end
95
- # Returns nil.
95
+ # Returns true if this node is a bookmark.
96
96
  def bookmark?; end
97
- # Returns nil.
97
+ # Returns true if this node is a folder.
98
98
  def folder?; end
99
+ # Returns true if this node is a separator.
100
+ def separator?; end
99
101
 
100
102
  end
@@ -24,8 +24,7 @@ module Nokogiri::Decorators::XBEL
24
24
  self.ref = bookmark_or_folder.id
25
25
  end
26
26
 
27
- # Returns true.
28
- def alias?
27
+ def alias? #:nodoc:
29
28
  true
30
29
  end
31
30
 
@@ -35,8 +35,7 @@ module Nokogiri::Decorators::XBEL
35
35
  self.modified = Date.today
36
36
  self['href'] = value
37
37
  end
38
- # Returns true.
39
- def bookmark?
38
+ def bookmark? #:nodoc:
40
39
  true
41
40
  end
42
41
 
@@ -23,8 +23,7 @@ module Nokogiri::Decorators::XBEL
23
23
  xpath './folder'
24
24
  end
25
25
 
26
- # Returns true.
27
- def folder?
26
+ def folder? #:nodoc:
28
27
  true
29
28
  end
30
29
 
@@ -1,9 +1,19 @@
1
1
  module Nokogiri::Decorators::XBEL
2
2
  module Separator
3
3
 
4
+ @@title = ' '
5
+
6
+ # Setter for Separator#to_s
7
+ def self.title=(title)
8
+ @@title = title.to_s
9
+ end
10
+
4
11
  # Returns a single space.
5
12
  def to_s
6
- ' '
13
+ @@title
14
+ end
15
+ def separator? #:nodoc:
16
+ true
7
17
  end
8
18
 
9
19
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xbel}
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Florian Aßmann"]
12
- s.date = %q{2010-04-15}
12
+ s.date = %q{2010-08-28}
13
13
  s.description = %q{}
14
14
  s.email = %q{florian.assmann@email.de}
15
15
  s.extra_rdoc_files = [
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.homepage = %q{http://xbel.monkey-patch.me}
40
40
  s.rdoc_options = ["--charset=UTF-8"]
41
41
  s.require_paths = ["lib"]
42
- s.rubygems_version = %q{1.3.6}
42
+ s.rubygems_version = %q{1.3.7}
43
43
  s.summary = %q{Ruby API for XBEL based on Nokogiri.}
44
44
  s.test_files = [
45
45
  "test/helper.rb",
@@ -50,7 +50,7 @@ Gem::Specification.new do |s|
50
50
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
51
  s.specification_version = 3
52
52
 
53
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
53
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
54
  s.add_development_dependency(%q<riot>, [">= 0"])
55
55
  s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
56
56
  else
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 6
9
- version: 0.2.6
8
+ - 7
9
+ version: 0.2.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Florian A\xC3\x9Fmann"
@@ -14,13 +14,14 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-15 00:00:00 +02:00
17
+ date: 2010-08-28 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: riot
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
@@ -33,6 +34,7 @@ dependencies:
33
34
  name: nokogiri
34
35
  prerelease: false
35
36
  requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
36
38
  requirements:
37
39
  - - ">="
38
40
  - !ruby/object:Gem::Version
@@ -79,6 +81,7 @@ rdoc_options:
79
81
  require_paths:
80
82
  - lib
81
83
  required_ruby_version: !ruby/object:Gem::Requirement
84
+ none: false
82
85
  requirements:
83
86
  - - ">="
84
87
  - !ruby/object:Gem::Version
@@ -86,6 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
89
  - 0
87
90
  version: "0"
88
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
+ none: false
89
93
  requirements:
90
94
  - - ">="
91
95
  - !ruby/object:Gem::Version
@@ -95,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
99
  requirements: []
96
100
 
97
101
  rubyforge_project:
98
- rubygems_version: 1.3.6
102
+ rubygems_version: 1.3.7
99
103
  signing_key:
100
104
  specification_version: 3
101
105
  summary: Ruby API for XBEL based on Nokogiri.