motion-accessibility 3.1 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/project/test.rb +6 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac5d11d4ddac910e4320eda4b40d2378f2c34fbd
4
- data.tar.gz: 0cb56cc757c04b0f671217d890989294793b90b4
3
+ metadata.gz: 458ab0ffb00b1047609639b4bb4585e60ff0c208
4
+ data.tar.gz: 124699d806b67d73fcdfabba0fb69b7a91472359
5
5
  SHA512:
6
- metadata.gz: 1fafbc0d2fceb2412f1539036230afe52d1bd4d679b403df5ef14a56bbc6c26e6856143d0784497e55a82be68a4d565e947b83b6712f0591331b4559c638be9d
7
- data.tar.gz: 32716ec1402e0f7625baac2d41afd4740ecd217820bac7e90cf38fd8aaf12508a7473134e2d55e57f3300d64a4c1894aa11f37c4c8abfe55a5f641f61043fcdc
6
+ metadata.gz: 66b8b9b632fe3f4ca40fc737024b44c04bae945a128c625ff77da22dd973053cbc37e6d0719499cde4c1e278e67b71d764ae4583f31de5bf831e1590339cafd6
7
+ data.tar.gz: 9631be3f8f434c9b39b63891620fcf9ae939e7324c24aa3b67d6de64ffae7a7d509ed6ed434388a2ba41006c035b0851aced75a25710510756ef5352f9dddafc
data/lib/project/test.rb CHANGED
@@ -313,9 +313,13 @@ end
313
313
  end
314
314
 
315
315
  def self.nonstandard(value, options={})
316
- options[:apple]||=Bignum
316
+ if options[:apple]
317
+ return true if value.class==options[:apple]
318
+ else
319
+ return true if [Bignum,Fixnum].include?(value.class)
320
+ end
317
321
  options[:custom]||=:none.accessibility_trait
318
- return true if value.class==options[:apple]||value==options[:custom]
322
+ return true if value==options[:custom]
319
323
  options[:attribute]||=:accessibility_traits
320
324
  message="Apple has this set to a non-standard value."
321
325
  options[:message]||="Hopefully you can get away with using :none."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-accessibility
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.1'
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Seraphin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake