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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/core/pipeline/callable.rb +10 -1
- data/lib/core/pipeline/version.rb +1 -1
- data/lib/is/pipeline.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3aa02295979274ef902f4f64fe5a7c9555bfd0ce54538f6d40047cec71c308c
|
4
|
+
data.tar.gz: 30c98202539ef94d305e27d14666be7c979e76daa0442ceae329a182a37b44c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/is/pipeline.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: core-extension
|