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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1784c312fc3b6f4a71be14c06506fafcc0dddcef
4
- data.tar.gz: b44cc96127c4311a2ee91a74404d702a189b54b5
3
+ metadata.gz: 2e248248443677439e3a74cc66a1dc5a71977094
4
+ data.tar.gz: b8fb999606b2675d964eb93fa00c4e2f447741db
5
5
  SHA512:
6
- metadata.gz: 10c08be52835165067815e4df2c53dde58109f704efc1b2557a4be3813321d524452ed7799481fa6c422a8be84e6abbd8e9a67e7cf796918c5621ac50e50b853
7
- data.tar.gz: 0c2d814f5022ddf9f29d64bb7424da0de584d69a46d48fd5ab58d9397e4f3c73757ae93b0bff49a2f1ded8072b90ef7595cc35108119dbd27f23c86a3c10d5e0
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
@@ -1,3 +1,3 @@
1
1
  module Yaks
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflection