bizness 0.3.1 → 0.3.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: 8cf1738c2b9a731d77aded15899606be1b4b5677
4
- data.tar.gz: 7e364e722febfd176df32e4d5d43ec24791b36a9
3
+ metadata.gz: 43040dbc20489a24603976f0c3a8317122334b98
4
+ data.tar.gz: ca714a63fac174994ac0f854945235f37a73751c
5
5
  SHA512:
6
- metadata.gz: 8fdfdd55f68bb6ed507aea8fa022de69ef67bc87a1eb4c9d1b76d7832f303fd99b91e38191857151c92e08972b902d2a01bb851a1cbbeffd9e85aa3ef69636e2
7
- data.tar.gz: 1383eee14921f17cbf81b15d9bb8af2282ca0128103ddc01639c146c62e2f613aa35cc438f9b76da69ff11daee41d2823903cce5474ebf7bd4b45008abb111f8
6
+ metadata.gz: fae39adf5736bc0cee09795e35dc77735f7334fa999c7dc7ab8dfd82bab938462d72e173055bb2458a259cb91abe1e8031b8512d7fdd5fa7de8ef9b5f8998708
7
+ data.tar.gz: 9820b9635012efcd52dbd3de12d4cca7e58f08b34f536265c3dd0176c1d1d8fbc048cfd3892cb919d126eeaec3be981637666fbf7532eb42ab2b107ed6cbf3d9
@@ -1,14 +1,18 @@
1
1
  module Bizness::Filters
2
2
  class BaseFilter < SimpleDelegator
3
+ attr_reader :__original_operation__
4
+
3
5
  def initialize(operation)
4
- @__original_operation__ = operation if __original_operation__.nil?
6
+ @__original_operation__ = if operation.respond_to?(:__original_operation__)
7
+ operation.__original_operation__
8
+ else
9
+ operation
10
+ end
5
11
  super(operation)
6
12
  end
7
13
 
8
14
  private
9
15
 
10
- attr_reader :__original_operation__
11
-
12
16
  def filtered_operation
13
17
  __getobj__
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module Bizness
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bizness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShippingEasy