backframe 0.0.15 → 0.0.16

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: 5a0cb7ec694d7cec60f2069d51291a8f25d5cefd
4
- data.tar.gz: 210c8c8c45b6f3a0b1d3371de9c5b86b79c66409
3
+ metadata.gz: 7e529a26c3cbb16f7d83f915b683b34f3e5bcda1
4
+ data.tar.gz: 7bd6df514bf432abc3dcf49f5e7433bf1912399e
5
5
  SHA512:
6
- metadata.gz: 52cb91c7381a0c3fe2a2165d447dac083edf2ecc68e82f4e6362d383e570246ae8e9e2fb64f0f50681860cd8b4a93aa3d8f58aa6c18ade85cb6bd95924f608eb
7
- data.tar.gz: a61d905b0fa3d8b4dda1abbba84eb44fb13a4b0f01d6ca8c9d0cdfad96bdc738b5230fba0db87f935ab87f77bd6b08041c7ea2d9ba54f9f2901df7e008a06a28
6
+ metadata.gz: fc67fc81127e6656d2609b79aa23a90a9c36ddb220e8c391e0397f6bebde978d91b7d7fa0e67a1242380e2e830d76afbb4d16af184419e469e4272eb6258bb6a
7
+ data.tar.gz: 588a8dbd70ab692476712e1d44ddd450b4750b715e2a33250b7981c29e02447d63857557840c662133f14ba952b1dcd9d0ae560f7d9c1fcf66dbdcf4ea120da5
@@ -41,7 +41,7 @@ module Backframe
41
41
  scope :#{field}_is, -> (*options) { where('#{field} IN (?)', (options.is_a?(Array) ? options : [options])) }
42
42
 
43
43
  def #{field}_is?(*options)
44
- (options.is_a?(Array) ? options : [options]).include?(self.#{field})
44
+ (options.is_a?(Array) ? options : [options]).map(&:to_s).include?(self.#{field})
45
45
  end
46
46
  EOV
47
47
 
@@ -49,7 +49,7 @@ module Backframe
49
49
  scope :#{field}_not, -> (*options) { where('#{field} NOT IN (?)', (options.is_a?(Array) ? options : [options])) }
50
50
 
51
51
  def #{field}_not?(*options)
52
- !(options.is_a?(Array) ? options : [options]).include?(self.#{field})
52
+ !(options.is_a?(Array) ? options : [options]).map(&:to_s).include?(self.#{field})
53
53
  end
54
54
  EOV
55
55
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Backframe
4
- VERSION = '0.0.15'
4
+ VERSION = '0.0.16'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backframe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Kops