brock 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Brock
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
 
4
4
  def self.version
5
5
  VERSION
@@ -6,7 +6,7 @@
6
6
  <input class="brock-field"
7
7
  type="number"
8
8
  name="brock[<%= name %>]"
9
- <% if value %>
9
+ <% if default %>
10
10
  placeholder="<%= default %>"
11
11
  <% end %>
12
12
  <% if value %>
@@ -4,7 +4,7 @@ require 'brock/fields/text_field'
4
4
  describe Brock::TextField do
5
5
 
6
6
  subject {
7
- described_class.new(:espresso)
7
+ described_class.new(:whitelist)
8
8
  }
9
9
 
10
10
  it_behaves_like "a field"
@@ -3,7 +3,7 @@ require 'brock/fields/integer_field'
3
3
 
4
4
  describe Brock::IntegerField do
5
5
 
6
- subject { described_class.new(:espresso) }
6
+ subject { described_class.new(:espresso, 'default' => 1337) }
7
7
 
8
8
  it_behaves_like "a field"
9
9
 
@@ -24,9 +24,4 @@ describe Brock::IntegerField do
24
24
  end
25
25
 
26
26
  end
27
-
28
- it "#default is optional" do
29
- expect(subject.default).to eq(nil)
30
- end
31
-
32
27
  end
@@ -1,6 +1,6 @@
1
1
  <div class="control-group brock-field brock-field-integer">
2
2
  <label class="control-label brock-label">Espresso</label>
3
3
  <div class="controls">
4
- <input class="brock-field" type="number" name="brock[espresso]" />
4
+ <input class="brock-field" type="number" name="brock[espresso]" placeholder="1337" />
5
5
  </div>
6
6
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="control-group brock-field brock-field-text">
2
- <label class="control-label brock-label">Espresso</label>
2
+ <label class="control-label brock-label">Whitelist</label>
3
3
  <div class="controls">
4
- <textarea class="brock-field" name="brock[espresso]" /></textarea>
4
+ <textarea class="brock-field" name="brock[whitelist]" /></textarea>
5
5
  </div>
6
6
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-06 00:00:00.000000000 Z
12
+ date: 2013-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -72,10 +72,10 @@ files:
72
72
  - spec/brock/field_template_context_spec.rb
73
73
  - spec/brock/field_template_spec.rb
74
74
  - spec/brock/fields/boolean_field_spec.rb
75
+ - spec/brock/fields/enum_field_spec.rb
75
76
  - spec/brock/fields/integer_field_spec.rb
76
77
  - spec/brock/fields/select_field_spec.rb
77
78
  - spec/brock/fields/string_field_spec.rb
78
- - spec/brock/fields/text_field_spec.rb
79
79
  - spec/brock/schema_spec.rb
80
80
  - spec/fixtures/boolean_field.html
81
81
  - spec/fixtures/integer_field.html
@@ -110,3 +110,4 @@ signing_key:
110
110
  specification_version: 3
111
111
  summary: Test Minefold funpacks
112
112
  test_files: []
113
+ has_rdoc: