xbel 0.2.5 → 0.2.6
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/LICENSE +1 -1
- data/{README.markdown → README.md} +7 -4
- data/Rakefile +1 -0
- data/TODO.md +3 -0
- data/VERSION +1 -1
- data/lib/nokogiri/decorators/xbel/alias.rb +1 -1
- data/lib/xbel.rb +1 -0
- data/test/test_xbel.rb +5 -5
- data/xbel.gemspec +7 -6
- metadata +27 -15
data/LICENSE
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# xbel
|
2
2
|
|
3
|
-
Introduces XBEL
|
3
|
+
Introduces XBEL decorators for Nokogiri.
|
4
4
|
|
5
5
|
## Features
|
6
6
|
|
7
7
|
* generates IDs for bookmarks and folders
|
8
8
|
* decorates a Nokogiri::XML::Node, all Nokogiri methods are available
|
9
|
+
* Ruby 1.8 and 1.9 compatible
|
9
10
|
|
10
11
|
## Installation
|
11
12
|
|
@@ -23,6 +24,8 @@ Introduces XBEL decorations for Nokogiri.
|
|
23
24
|
link_to bookmark.title, bookmark.href
|
24
25
|
end
|
25
26
|
|
27
|
+
_Note: See http://github.com/boof/habel to read *.haml into XBEL..._
|
28
|
+
|
26
29
|
### Writing
|
27
30
|
|
28
31
|
xbel = XBEL.new
|
@@ -39,11 +42,11 @@ _Note: You can use all Nokogiri::XML::Node methods._
|
|
39
42
|
|
40
43
|
1. Fork the project.
|
41
44
|
2. Make your feature addition or bug fix.
|
42
|
-
3. Add tests for it. This is important so I don't break it in a
|
43
|
-
|
45
|
+
3. Add tests for it. This is important so I don't break it in a future version
|
46
|
+
unintentionally.
|
44
47
|
4. Commit, do not mess with rakefile, version, or history.
|
45
48
|
5. Send me a pull request.
|
46
49
|
|
47
50
|
### Copyright
|
48
51
|
|
49
|
-
Copyright (c) 2009 Florian Aßmann. See LICENSE for details.
|
52
|
+
Copyright (c) 2009-2010 Florian Aßmann. See LICENSE for details.
|
data/Rakefile
CHANGED
data/TODO.md
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/lib/xbel.rb
CHANGED
data/test/test_xbel.rb
CHANGED
@@ -56,12 +56,12 @@ context 'XBEL' do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
context 'Alias' do
|
59
|
-
setup { topic.root.aliases
|
60
|
-
should('be an alias') { topic.alias? }
|
61
|
-
|
59
|
+
setup { topic.root.aliases }
|
60
|
+
should('be an alias') { topic.all? { |a| a.alias? } }
|
61
|
+
should('not be a bookmark') { !topic.any? { |a| a.bookmark? } }
|
62
|
+
should('not be a folder') { !topic.any? { |a| a.folder? } }
|
62
63
|
should('have a reference') do
|
63
|
-
topic.ref and
|
64
|
-
topic.ref == topic.reference
|
64
|
+
topic.all? { |a| a.ref and a.ref == a.reference }
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
data/xbel.gemspec
CHANGED
@@ -5,24 +5,25 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{xbel}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Florian
|
12
|
-
s.date = %q{
|
11
|
+
s.authors = ["Florian Aßmann"]
|
12
|
+
s.date = %q{2010-04-15}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{florian.assmann@email.de}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
"README.
|
17
|
+
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".gitignore",
|
22
22
|
".watchr",
|
23
23
|
"LICENSE",
|
24
|
-
"README.
|
24
|
+
"README.md",
|
25
25
|
"Rakefile",
|
26
|
+
"TODO.md",
|
26
27
|
"VERSION",
|
27
28
|
"lib/nokogiri/decorators/xbel.rb",
|
28
29
|
"lib/nokogiri/decorators/xbel/alias.rb",
|
@@ -38,7 +39,7 @@ Gem::Specification.new do |s|
|
|
38
39
|
s.homepage = %q{http://xbel.monkey-patch.me}
|
39
40
|
s.rdoc_options = ["--charset=UTF-8"]
|
40
41
|
s.require_paths = ["lib"]
|
41
|
-
s.rubygems_version = %q{1.3.
|
42
|
+
s.rubygems_version = %q{1.3.6}
|
42
43
|
s.summary = %q{Ruby API for XBEL based on Nokogiri.}
|
43
44
|
s.test_files = [
|
44
45
|
"test/helper.rb",
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xbel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 6
|
9
|
+
version: 0.2.6
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- "Florian A\xC3\x9Fmann"
|
@@ -9,29 +14,33 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-04-15 00:00:00 +02:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: riot
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
23
29
|
version: "0"
|
24
|
-
|
30
|
+
type: :development
|
31
|
+
version_requirements: *id001
|
25
32
|
- !ruby/object:Gem::Dependency
|
26
33
|
name: nokogiri
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
33
41
|
version: "0"
|
34
|
-
|
42
|
+
type: :runtime
|
43
|
+
version_requirements: *id002
|
35
44
|
description: ""
|
36
45
|
email: florian.assmann@email.de
|
37
46
|
executables: []
|
@@ -40,14 +49,15 @@ extensions: []
|
|
40
49
|
|
41
50
|
extra_rdoc_files:
|
42
51
|
- LICENSE
|
43
|
-
- README.
|
52
|
+
- README.md
|
44
53
|
files:
|
45
54
|
- .document
|
46
55
|
- .gitignore
|
47
56
|
- .watchr
|
48
57
|
- LICENSE
|
49
|
-
- README.
|
58
|
+
- README.md
|
50
59
|
- Rakefile
|
60
|
+
- TODO.md
|
51
61
|
- VERSION
|
52
62
|
- lib/nokogiri/decorators/xbel.rb
|
53
63
|
- lib/nokogiri/decorators/xbel/alias.rb
|
@@ -72,18 +82,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
82
|
requirements:
|
73
83
|
- - ">="
|
74
84
|
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 0
|
75
87
|
version: "0"
|
76
|
-
version:
|
77
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
89
|
requirements:
|
79
90
|
- - ">="
|
80
91
|
- !ruby/object:Gem::Version
|
92
|
+
segments:
|
93
|
+
- 0
|
81
94
|
version: "0"
|
82
|
-
version:
|
83
95
|
requirements: []
|
84
96
|
|
85
97
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.3.
|
98
|
+
rubygems_version: 1.3.6
|
87
99
|
signing_key:
|
88
100
|
specification_version: 3
|
89
101
|
summary: Ruby API for XBEL based on Nokogiri.
|