cuba-contrib 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/cuba-contrib.gemspec +2 -1
- data/lib/cuba/contrib/version.rb +1 -1
- data/views/field.mote +13 -0
- data/views/file.mote +1 -0
- data/views/option.mote +1 -0
- data/views/password.mote +1 -0
- data/views/select.mote +3 -0
- data/views/textarea.mote +1 -0
- data/views/textfield.mote +1 -0
- metadata +14 -7
data/cuba-contrib.gemspec
CHANGED
data/lib/cuba/contrib/version.rb
CHANGED
data/views/field.mote
ADDED
data/views/file.mote
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<input type="file" name="{{ name }}">
|
data/views/option.mote
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<option {{ 'selected="selected"' if selected == value }} value="{{ h(value) }}">{{ h(label) }}</option>
|
data/views/password.mote
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<input type="password" name="{{ name }}" value="">
|
data/views/select.mote
ADDED
data/views/textarea.mote
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<textarea rows=10 cols=50 name="{{ name }}">{{ value }}</textarea>
|
@@ -0,0 +1 @@
|
|
1
|
+
<input type="text" {{ 'class="%s"' % params[:class] if params[:class] }} name="{{ name }}" value="{{ value }}">
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuba-contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-04 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cuba
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152469660 !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: *2152469660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: cutest
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152469180 !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: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152469180
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: capybara
|
38
|
-
requirement: &
|
38
|
+
requirement: &2152468760 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152468760
|
47
47
|
description: Includes various helper tools for Cuba.
|
48
48
|
email:
|
49
49
|
- me@cyrildavid.com
|
@@ -69,6 +69,13 @@ files:
|
|
69
69
|
- test/rendering.rb
|
70
70
|
- test/settings.rb
|
71
71
|
- test/text_helper.rb
|
72
|
+
- views/field.mote
|
73
|
+
- views/file.mote
|
74
|
+
- views/option.mote
|
75
|
+
- views/password.mote
|
76
|
+
- views/select.mote
|
77
|
+
- views/textarea.mote
|
78
|
+
- views/textfield.mote
|
72
79
|
homepage: http://github.com/cyx/cuba-contrib
|
73
80
|
licenses: []
|
74
81
|
post_install_message:
|