xforms 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xforms/control.rb +1 -1
- data/lib/xforms/version.rb +1 -1
- data/spec/form_spec.rb +5 -0
- metadata +8 -8
data/lib/xforms/control.rb
CHANGED
data/lib/xforms/version.rb
CHANGED
data/spec/form_spec.rb
CHANGED
@@ -108,6 +108,11 @@ describe "Form" do
|
|
108
108
|
form.controls[6].value.should == 123
|
109
109
|
end
|
110
110
|
|
111
|
+
it "get input value with int type when data is empty" do
|
112
|
+
model.xpath('x:data/x:foo').first.children = ''
|
113
|
+
form.controls[6].value.should == 0
|
114
|
+
end
|
115
|
+
|
111
116
|
it "set input value with int type" do
|
112
117
|
form.controls[6].value = '01'
|
113
118
|
model.xpath('x:data/x:foo').inner_text.should == '1'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xforms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-04-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
17
|
-
requirement: &
|
17
|
+
requirement: &70194500648500 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70194500648500
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: nokogiri
|
28
|
-
requirement: &
|
28
|
+
requirement: &70194500648060 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70194500648060
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: i18n
|
39
|
-
requirement: &
|
39
|
+
requirement: &70194500647620 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70194500647620
|
48
48
|
description: This gem can be used to parse and fill XForms 1.1
|
49
49
|
email:
|
50
50
|
- jwajnerman@manas.com.ar
|