cheesecloth 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f220c88be6cf0686ff8393286ae011de2b5a8aa
4
- data.tar.gz: d751f7be71088d62cf37f3fe40f56eca064f6845
3
+ metadata.gz: c4f99848abfc589c10824d99b48c968084c7dd24
4
+ data.tar.gz: 206e0d4aca3a4b3e9cb0816432141697890061fe
5
5
  SHA512:
6
- metadata.gz: 29052c29cd7c39cd2e7df42c106e0604b4b24f4c987ec6199be40ce309f77a264ee9f710c4a324fcb0438079b0eafdc9baac6e52d1c822f8d1ce720b08203302
7
- data.tar.gz: 147f2fe3125a0967919f7e60179f0f07446e48b5d8e8ad70a07116286efdf5335dcc0d622abcd77e7407b643e21310195949e2cd73a3308c2e30862e1e93f6c3
6
+ metadata.gz: 88bfd3c5942d25998517207a373bf97ce2ee2d750c8987ab89e30ee4ea7f19f093ebd5005515c7e6fff84d8d8de3d56e09aeecbf6eed4a3d90edebcc060af215
7
+ data.tar.gz: 096e4d031e17575638f9f0cdb76a1d3cf4aa55c5e76ce10f48980887630da32a30e1f9e482ca26231447ef7bce4e698ebe2eeaedc79fc8de071209098d83aacf
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module CheeseCloth
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
@@ -18,7 +18,7 @@ module CheeseCloth
18
18
  end
19
19
 
20
20
  def assign_and_check_scope(instance)
21
- @scope ||= default_scope_proc && default_scope_proc.call
21
+ @scope ||= default_scope_proc && instance.instance_exec(&default_scope_proc)
22
22
  raise MissingScopeError, self.class unless instance.scope
23
23
  end
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheesecloth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Petryk