yaks 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yaks/mapper/form/field/option.rb +2 -1
- data/lib/yaks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e248248443677439e3a74cc66a1dc5a71977094
|
4
|
+
data.tar.gz: b8fb999606b2675d964eb93fa00c4e2f447741db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81021221514f434b2e412f7b1cd894d0fe3e134a2adc5f4dfae727473bfaca130372ca7409b2a795aa47e626ee700068351d59587972cd2ff4ebdcc6b44f2d31
|
7
|
+
data.tar.gz: bef8b36b5b9815bd4275fd2ce2a182a4c191f718ba1967ba91338b9f133fdb0b6c969e63d4040177f6d81c88192164ddad8a7c73064a96edf6163d2fc3a62458
|
@@ -4,7 +4,7 @@ module Yaks
|
|
4
4
|
class Field
|
5
5
|
# <option>, as used in a <select>
|
6
6
|
class Option
|
7
|
-
include Attributes.new(:value, :label, selected: false)
|
7
|
+
include Attributes.new(:value, :label, selected: false, disabled: false)
|
8
8
|
|
9
9
|
def self.create(value, opts = {})
|
10
10
|
new(opts.merge(value: value))
|
@@ -15,6 +15,7 @@ module Yaks
|
|
15
15
|
value: mapper.expand_value(value),
|
16
16
|
label: mapper.expand_value(label),
|
17
17
|
selected: mapper.expand_value(selected),
|
18
|
+
disabled: mapper.expand_value(disabled),
|
18
19
|
)
|
19
20
|
end
|
20
21
|
end
|
data/lib/yaks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arne Brasseur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inflection
|