xommelier 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xommelier/version.rb +1 -1
- data/lib/xommelier/xml/element/structure.rb +12 -0
- data/lib/xommelier/xml/element/structure/property.rb +8 -0
- data/xommelier.gemspec +1 -1
- metadata +29 -9
- checksums.yaml +0 -7
data/lib/xommelier/version.rb
CHANGED
@@ -76,8 +76,14 @@ module Xommelier
|
|
76
76
|
xmlns
|
77
77
|
end
|
78
78
|
|
79
|
+
if options[:fixed]
|
80
|
+
options[:default] = options[:fixed]
|
81
|
+
options[:count] = :one
|
82
|
+
end
|
83
|
+
|
79
84
|
element = Element.new(name, options)
|
80
85
|
elements[name] = element
|
86
|
+
|
81
87
|
define_element_accessors(element)
|
82
88
|
end
|
83
89
|
|
@@ -128,6 +134,12 @@ module Xommelier
|
|
128
134
|
send(plural)[0]
|
129
135
|
end
|
130
136
|
end
|
137
|
+
elsif element.fixed?
|
138
|
+
# Define singular pseudo-accessors
|
139
|
+
rw_accessor(name) do |*args|
|
140
|
+
write_element(name, element.fixed) if args.length == 1
|
141
|
+
element.fixed
|
142
|
+
end
|
131
143
|
else
|
132
144
|
# Define singular accessors
|
133
145
|
rw_accessor(name) do |*args|
|
data/xommelier.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = %w(lib)
|
21
21
|
|
22
|
-
s.add_dependency 'nokogiri', '~> 1.5
|
22
|
+
s.add_dependency 'nokogiri', '~> 1.5'
|
23
23
|
s.add_dependency 'activesupport', '~> 3.2.0'
|
24
24
|
s.add_dependency 'activemodel', '~> 3.2.0'
|
25
25
|
s.add_development_dependency 'bundler', '~> 1.3.2'
|
metadata
CHANGED
@@ -1,32 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xommelier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.30
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Alexander Semyonov
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-07
|
12
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: nokogiri
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.5
|
21
|
+
version: '1.5'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.5
|
29
|
+
version: '1.5'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: activesupport
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: activemodel
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: bundler
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,6 +78,7 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: rake
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
83
|
- - ~>
|
74
84
|
- !ruby/object:Gem::Version
|
@@ -76,6 +86,7 @@ dependencies:
|
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
91
|
- - ~>
|
81
92
|
- !ruby/object:Gem::Version
|
@@ -83,6 +94,7 @@ dependencies:
|
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: rspec
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
99
|
- - ~>
|
88
100
|
- !ruby/object:Gem::Version
|
@@ -90,6 +102,7 @@ dependencies:
|
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
107
|
- - ~>
|
95
108
|
- !ruby/object:Gem::Version
|
@@ -199,26 +212,33 @@ files:
|
|
199
212
|
homepage: http://github.com/alsemyonov/xommelier
|
200
213
|
licenses:
|
201
214
|
- MIT
|
202
|
-
metadata: {}
|
203
215
|
post_install_message:
|
204
216
|
rdoc_options: []
|
205
217
|
require_paths:
|
206
218
|
- lib
|
207
219
|
required_ruby_version: !ruby/object:Gem::Requirement
|
220
|
+
none: false
|
208
221
|
requirements:
|
209
|
-
- - '>='
|
222
|
+
- - ! '>='
|
210
223
|
- !ruby/object:Gem::Version
|
211
224
|
version: '0'
|
225
|
+
segments:
|
226
|
+
- 0
|
227
|
+
hash: 2114638740563297062
|
212
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
+
none: false
|
213
230
|
requirements:
|
214
|
-
- - '>='
|
231
|
+
- - ! '>='
|
215
232
|
- !ruby/object:Gem::Version
|
216
233
|
version: '0'
|
234
|
+
segments:
|
235
|
+
- 0
|
236
|
+
hash: 2114638740563297062
|
217
237
|
requirements: []
|
218
238
|
rubyforge_project: xommelier
|
219
|
-
rubygems_version:
|
239
|
+
rubygems_version: 1.8.23
|
220
240
|
signing_key:
|
221
|
-
specification_version:
|
241
|
+
specification_version: 3
|
222
242
|
summary: Xommelier is an XML Sommelier
|
223
243
|
test_files:
|
224
244
|
- spec/fixtures/atom.rng.xml
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 070bb55823dc54092a1275430cea0b615055974b
|
4
|
-
data.tar.gz: 0923b38394a75b9933110f58f4fe28fb7f64f407
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 12c97b91c9b673de800c10046521dfdcb8762ad60704281e390085635cb953dd45554405766449a3154d18ac2850817394b1e1be85420c02d401b34de383a66e
|
7
|
-
data.tar.gz: 0b039cc23d4d4c30547a88f6e0eb2eaafc721cd9e11f2494a3ccc6f42f0ca4eaaee66dda8153f5a00a2a1f215b62ca06ccd531164bc863476441bc24b476502e
|