bit_settings 1.0.2 → 1.0.3

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: bbe6929010f46355a8411c24e71ad634dfabf91e
4
- data.tar.gz: d51338d7219015ad4a65ea6ea4151e9c12174c94
3
+ metadata.gz: 8792ede8be1fe550712aba1eca853cb7804bf0a7
4
+ data.tar.gz: f647e88674d7bfd33ce56f570ff256d7f05f5d5a
5
5
  SHA512:
6
- metadata.gz: ff7742c8333aca311fa384826f234452cd9dea8429bb788775024f220521e8ce0b3155032ca0e7aca8fde28b14d79286d4e47ac9e8235929821b1a5e6b116738
7
- data.tar.gz: 47d86235107e3f348eaf632fd28c6402bc34e83747900b23368c89f06a7586af868e28330f14ee6ee60c9038ac73155c168f206932b5ffc9537e02279ddc4096
6
+ metadata.gz: 680ef3ec4a9c7b6c15a2698132269deb135ac7b5dae39990070b95a4e0ddcb63871083fe7a1a15200ceb258506f4b488e4c3d8f5010a379fe02389149e603214
7
+ data.tar.gz: b59808d9f32e91d907ebad5f185424799f359e734c02ee4a8b0d00b94aed40a87a812a59ca2ae34aee92d2eaaaae18f467baa634d70eae1418113a1b5a4467c8
@@ -7,7 +7,7 @@ module BitSettings
7
7
  included do
8
8
  class_attribute :bit_settings
9
9
 
10
- scope :with_settings, -> (h) do
10
+ scope :with_settings, lambda { |h|
11
11
  available = self.bit_settings.values.flatten
12
12
  invalid = h.keys - available
13
13
  raise "Settings #{invalid.inspect} do not exist for #{self} model: available settings are #{available.inspect}" if invalid.any?
@@ -19,7 +19,7 @@ module BitSettings
19
19
  scope = scope.where("#{table_name}.#{column} & #{false_mask} = 0") if false_mask > 0
20
20
  end
21
21
  return scope
22
- end
22
+ }
23
23
 
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module BitSettings
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bit_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pioz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.6.13
148
+ rubygems_version: 2.6.14
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: BitSettings is a plugin for ActiveRecord that transform a column of your