standard-procedure-plumbing 0.4.6 → 0.5.0

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: 82a3aa2f2a6718e748faf14e12dcf8df50928cfcdb19bf75641731e38122c694
4
- data.tar.gz: d13610908d60830323e6921f77628c73ce9920475086a1475f21323def38f3a3
3
+ metadata.gz: 90c456ba1b4ae2cebb75d1fe5ac49f806c6156387a5907980255e2f224b11f54
4
+ data.tar.gz: b40ea0aa31ce5608d94721c90d56a351cdf834660fe32398d4c2e6e5c0dd4827
5
5
  SHA512:
6
- metadata.gz: e54c7820faf040901935c80797d737cc89dd1b6c7da873621361295446b35d2dab4987dee6ee423086a9dc3a7b6fb3ce20f699a5ff92edf1c7673ef071f089f9
7
- data.tar.gz: f47b41311a3aa11fc38479d98f0fc11ce1f370f23ceea127ac44462ea7bf148c66d190662dcd05d50f955cab117b9802cd4d8bb639d747a91db8136bcda16e43
6
+ metadata.gz: b2a394f3a3924edc4963252e59170fec110c7190d2305e90e5ecb483e84cfff818c75074abeb975f4561ca01086cad1c7971d26b91eec3be0da8c6a46c0fa869
7
+ data.tar.gz: b3b790c91098bea951a175ec9d2b8676e2e630fb4c4eef6e225855b5b7a472782bc6eb6f98f1c5c3f339878560fbad5c060a75cecec15748105735320ab09379
@@ -1,5 +1,5 @@
1
1
  module Plumbing
2
- class Pipeline
2
+ module Pipeline
3
3
  # Validate input and output data with pre and post conditions or [Dry::Validation::Contract]s
4
4
  module Contracts
5
5
  # @param name [Symbol] the name of the precondition
@@ -1,5 +1,5 @@
1
1
  module Plumbing
2
- class Pipeline
2
+ module Pipeline
3
3
  # Defining the operations that will be performed on the input data
4
4
  module Operations
5
5
  # Add an operation to the pipeline
@@ -1,11 +1,13 @@
1
- require_relative "pipeline/contracts"
2
- require_relative "pipeline/operations"
3
-
4
1
  module Plumbing
2
+ require_relative "pipeline/contracts"
3
+ require_relative "pipeline/operations"
4
+
5
5
  # A chain of operations that are executed in sequence
6
- class Pipeline
7
- extend Plumbing::Pipeline::Contracts
8
- extend Plumbing::Pipeline::Operations
6
+ module Pipeline
7
+ def self.included base
8
+ base.extend Plumbing::Pipeline::Contracts
9
+ base.extend Plumbing::Pipeline::Operations
10
+ end
9
11
 
10
12
  # Start the pipeline operation with the given input
11
13
  # @param input [Object] the input data to be processed
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plumbing
4
- VERSION = "0.4.6"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-procedure-plumbing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rahoul Baruah
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.5.17
84
+ rubygems_version: 3.5.12
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Plumbing - various pipelines for your ruby application