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 CHANGED
@@ -15,7 +15,8 @@ Gem::Specification.new do |s|
15
15
  "rakefile",
16
16
  "lib/**/*.rb",
17
17
  "*.gemspec",
18
- "test/*.*"
18
+ "test/*.*",
19
+ "views/*.mote"
19
20
  ]
20
21
 
21
22
  s.add_dependency "cuba"
@@ -1,5 +1,5 @@
1
1
  class Cuba
2
2
  module Contrib
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/views/field.mote ADDED
@@ -0,0 +1,13 @@
1
+ <label>
2
+ <span>{{ label }}</span>
3
+
4
+ {{ input }}
5
+
6
+ % if hint
7
+ <em class="hint">{{ hint }}</em>
8
+ % end
9
+
10
+ % if error
11
+ <span class="error"><em>{{ error}}</em></span>
12
+ % end
13
+ </label>
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>
@@ -0,0 +1 @@
1
+ <input type="password" name="{{ name }}" value="">
data/views/select.mote ADDED
@@ -0,0 +1,3 @@
1
+ <select name="{{ name }}">
2
+ {{ options }}
3
+ </select>
@@ -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.1
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: &2152741820 !ruby/object:Gem::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: *2152741820
24
+ version_requirements: *2152469660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cutest
27
- requirement: &2152741300 !ruby/object:Gem::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: *2152741300
35
+ version_requirements: *2152469180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: capybara
38
- requirement: &2152740680 !ruby/object:Gem::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: *2152740680
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: