xml-smart 0.3.0 → 0.3.0.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/xml-smart.gemspec +2 -6
- metadata +32 -15
data/xml-smart.gemspec
CHANGED
@@ -1,14 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "xml-smart"
|
3
|
-
s.version = "0.3.0"
|
3
|
+
s.version = "0.3.0.1"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.summary = "An xml library that doesn't suck - since 2004."
|
6
6
|
|
7
|
-
s.description
|
8
|
-
Write useful stuff.
|
9
|
-
|
10
|
-
Also see http://www.wst.univie.ac.at/~mangler/xml-smart/.
|
11
|
-
EOF
|
7
|
+
s.description = File.read('README.rdoc')
|
12
8
|
|
13
9
|
s.files = Dir['{lib/**/*,example/**/*}'] + %w(COPYING Rakefile xml-smart.gemspec README.rdoc AUTHORS)
|
14
10
|
s.require_path = 'lib'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xml-smart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0
|
4
|
+
version: 0.3.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &79498630 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *79498630
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: lockfile
|
27
|
-
requirement: &
|
27
|
+
requirement: &79497510 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *79497510
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: term-ansicolor
|
38
|
-
requirement: &
|
38
|
+
requirement: &79496620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *79496620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: minitest
|
49
|
-
requirement: &
|
49
|
+
requirement: &79495140 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,13 +54,30 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
-
description: !
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
57
|
+
version_requirements: *79495140
|
58
|
+
description: ! "= XML::Smart - A Ruby class for fast and simple XML access\n\nCopyright
|
59
|
+
(C) 2004-2012 Jürgen Mangler <juergen.mangler@univie.ac.at>\n\nRuby/XML/Smart is
|
60
|
+
freely distributable according to the terms of the\nGNU Lesser General Public License
|
61
|
+
(see the file 'COPYING').\n\nThis program is distributed without any warranty. See
|
62
|
+
the file\n'COPYING' for details.\n\n== Installation\n\n* Based on Nokogiri 1.5.5\n*
|
63
|
+
Thus works for MRI ruby 1.8.7, 1.9.x, JRuby (basically everything that\n is Nokogiri
|
64
|
+
ready)\n* Works on Linux, OSX, Windows \n\n== Features\n\n[Principle of least surprise]\n
|
65
|
+
\ * Nokogiri is messy - violence always is\n * libxml smells like old-school C-Binding
|
66
|
+
;-)\n * rex is ... strange\n[Inherits Nokogiris GREAT compatibility for platforms
|
67
|
+
and Ruby interpreters]\n[XML only] - sorry, no css selectors, html, ... go to Nokogiri
|
68
|
+
if you \n look for these \n[Great and convenient namespace support, compared to
|
69
|
+
everything else out there]\n * use namespaces in xpaths without any additional
|
70
|
+
work\n doc = XML::Smart.string('<test xmlns:aaa=\"uri:aaa\"><aaa:test/></test>')\n
|
71
|
+
\ doc.find('string(aaa:test)')\n doc.close\n * register your own shortcusts
|
72
|
+
to be available in all XPaths \n doc = XML::Smart.string('<test xmlns:aaa=\"uri:aaa\"><aaa:test/></test>')\n
|
73
|
+
\ doc.register_namespace :a, 'uri:aaa'\n doc.find('string(aaa:test)')\n doc.close\n[NFS
|
74
|
+
safe file locking while editing / reading from an XML fileA]\n\n XML::Smart.modify(\"EXAMPLE.xml\",\"<test><names/></test>\")
|
75
|
+
{ |doc|\n doc.root.add(\"test_node\")\n } \n\nChanges since 0.2.x (see Changelog):\n*
|
76
|
+
qname instead of name\n* #register_namespace instead of #namespaces= to register
|
77
|
+
shortcuts\n* no more namespaces for #find necessary, all namespaces in document\n
|
78
|
+
\ are automatically available.\n* signals removed\n* pull parser removed\n\n== Documentation\n\nSorry,
|
79
|
+
no inline code documentation yet. We have an extensive test suite, look\nfor examples
|
80
|
+
there for now.\n\n"
|
64
81
|
email: juergen.mangler@gmail.com
|
65
82
|
executables: []
|
66
83
|
extensions: []
|