core-pipeline 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 28a2f0e27827605918442c956cb6e4236cb146ba16c180f9418569dd09711da9
4
- data.tar.gz: f7927e0c5657dfaa13e1bc03a48bfe0fb75ff5cb2b47d5417545c89a6cf41f78
3
+ metadata.gz: b3aa02295979274ef902f4f64fe5a7c9555bfd0ce54538f6d40047cec71c308c
4
+ data.tar.gz: 30c98202539ef94d305e27d14666be7c979e76daa0442ceae329a182a37b44c3
5
5
  SHA512:
6
- metadata.gz: 379641bc184684af5be9e35b02a926b5f85a52f63c83723afa95722136184a05c2474f64a8c8f67b5261989b098051eec20d5920901356dbaadc4063ee276dfa
7
- data.tar.gz: 5bf61a391a6aac27d282eb7cb7fa8d1d973e50496316dc405760e9ef9510c7299cb46920993db62ed80b190a677342c80f4afcfd707526e14132e90621fbacc2
6
+ metadata.gz: 8de4883f7f9af7f7b98d8bbedc7f5a11650f87e9de0ade3a8a6f8086b353ddaef18107e009062459a5b3755b0729d387371948e42c2d2c9a8d2a9ac03e872f99
7
+ data.tar.gz: 8b7c1d7ed42476f378a0c633239e8e822b33306f3482b5a8feeb41947251a0b6293fcff9d39bff394de3ca14b93547f1ed4b1829334fc8981b5855f8a746958b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [v0.4.1](https://github.com/metabahn/corerb/releases/tag/2021-11-03)
2
+
3
+ *released on 2021-11-03*
4
+
5
+ * `fix` [#99](https://github.com/metabahn/corerb/pull/99) Prevent pipelines from being recompiled unnecessarily ([bryanp](https://github.com/bryanp))
6
+
1
7
  ## [v0.4.0](https://github.com/metabahn/corerb/releases/tag/2021-11-02.1)
2
8
 
3
9
  *released on 2021-11-02*
@@ -114,18 +114,27 @@ module Core
114
114
  end
115
115
 
116
116
  private def compile
117
+ return if compiled?
118
+
117
119
  instance_eval(@compiler.compile(self, @object), __FILE__, __LINE__ - 1)
118
120
  @compiled = true
119
121
  end
120
122
 
121
123
  private def recompile
122
- singleton_class.remove_method(:call)
124
+ remove_compiled_call
123
125
  compile
124
126
  end
125
127
 
126
128
  private def compiled?
127
129
  @compiled == true
128
130
  end
131
+
132
+ private def remove_compiled_call
133
+ return unless compiled?
134
+
135
+ singleton_class.remove_method(:call)
136
+ @compiled = false
137
+ end
129
138
  end
130
139
  end
131
140
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Core
4
4
  module Pipeline
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
 
7
7
  def self.version
8
8
  VERSION
data/lib/is/pipeline.rb CHANGED
@@ -100,6 +100,8 @@ module Is
100
100
  end
101
101
 
102
102
  extends :implementation, prepend: true do
103
+ # [public]
104
+ #
103
105
  def finalize
104
106
  super if defined?(super)
105
107
  pipeline.finalize
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: core-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-03 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: core-extension