oxmlk 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/oxmlk/description.rb +1 -1
- data/oxmlk.gemspec +1 -1
- data/spec/description_spec.rb +6 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= oxmlk
|
2
2
|
|
3
|
-
|
3
|
+
OxMlk is a simple lightweight XML mapper. Its structure is inspired by happymapper and its syntax takes after ROXML. Right now there is one example to get things going. More features, examples and documentation will be coming soon.
|
4
4
|
|
5
5
|
== Note on Patches/Pull Requests
|
6
6
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/oxmlk/description.rb
CHANGED
data/oxmlk.gemspec
CHANGED
data/spec/description_spec.rb
CHANGED
@@ -45,10 +45,15 @@ describe OxMlk::Description do
|
|
45
45
|
@desc.xpath.should == 'number|person'
|
46
46
|
end
|
47
47
|
|
48
|
-
it 'should add in + / to xpath if :in is passed' do
|
48
|
+
it 'should add :in + / to xpath if :in is passed' do
|
49
49
|
@desc = OxMlk::Description.new(:person, :in => :friends)
|
50
50
|
@desc.xpath.should == 'friends/person'
|
51
51
|
end
|
52
|
+
|
53
|
+
it 'should add :in + / to all items in array of ox_objetcs' do
|
54
|
+
@desc = OxMlk::Description.new(:digits, :as => [Number,Person], :in => :friends)
|
55
|
+
@desc.xpath.should == 'friends/number|friends/person'
|
56
|
+
end
|
52
57
|
end
|
53
58
|
|
54
59
|
describe '#accessor' do
|