web_pipe 0.11.0 → 0.12.0
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 +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +9 -0
- data/docs/connection_struct.md +11 -0
- data/lib/web_pipe.rb +2 -2
- data/lib/web_pipe/extensions/dry_view/dry_view.rb +4 -2
- data/lib/web_pipe/version.rb +1 -1
- 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: 912213d537d97b530b24ba19289e68844c2ee1c46d9a49510167b5ddbef29468
|
4
|
+
data.tar.gz: e992a632ade636cea6185de8707935c28548d588d264152bac9150a724f80e83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f651795c8ea96d8d4d8ac37d452f7e6db6a4835215acad6784a445ecd36fe10c7bad16bc5e7defb9f7130caf8dbce4287ab3f4a0f0a7147f560adeb0a3cc59
|
7
|
+
data.tar.gz: cea9a48921c145d2fd8c4533e77f59cba2c080c31227943aec69653ca09cb18ff903deee39282594cd66bb2ca91a4d4adb924c03273d70eed4851b22127a1fd2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [0.12.0] - 2019-12-30
|
8
|
+
### Added
|
9
|
+
- **BREAKING**. Ruby 2.4 deprecated.
|
10
|
+
- Ruby 2.7 supported.
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- Ruby 2.7 argument warnings.
|
14
|
+
[[#38]](https://github.com/waiting-for-dev/web_pipe/pull/38)
|
15
|
+
|
7
16
|
## [0.11.0] - 2019-12-28
|
8
17
|
### Added
|
9
18
|
- **BREAKING**. `dry-transformer` (former `transproc`) dependency is now
|
data/docs/connection_struct.md
CHANGED
@@ -75,3 +75,14 @@ Immutability is a core design principle in `web_pipe`. All methods in
|
|
75
75
|
`WebPipe::Conn` which are used to add data to it (both in core behaviour and
|
76
76
|
extensions) return a fresh new instance. It also makes possible chaining
|
77
77
|
methods in a very readable way.
|
78
|
+
|
79
|
+
You can use ruby 2.7 pattern matching on a `WebPipe::Conn` struct, as in:
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
# GET http://example.org
|
83
|
+
conn in { request_method:, host: }
|
84
|
+
request_method
|
85
|
+
# :get
|
86
|
+
host
|
87
|
+
# 'example.org'
|
88
|
+
```
|
data/lib/web_pipe.rb
CHANGED
@@ -125,7 +125,7 @@ module WebPipe
|
|
125
125
|
|
126
126
|
set_response_body(
|
127
127
|
view_instance.call(
|
128
|
-
view_input
|
128
|
+
**view_input
|
129
129
|
).to_str
|
130
130
|
)
|
131
131
|
end
|
@@ -145,7 +145,9 @@ module WebPipe
|
|
145
145
|
.config
|
146
146
|
.default_context
|
147
147
|
.with(
|
148
|
-
fetch_config(
|
148
|
+
**fetch_config(
|
149
|
+
VIEW_CONTEXT_KEY, DEFAULT_VIEW_CONTEXT
|
150
|
+
).call(self)
|
149
151
|
)
|
150
152
|
kwargs.merge(context: context)
|
151
153
|
end
|
data/lib/web_pipe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_pipe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Busqué
|
@@ -335,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
335
335
|
- !ruby/object:Gem::Version
|
336
336
|
version: '0'
|
337
337
|
requirements: []
|
338
|
-
rubygems_version: 3.
|
338
|
+
rubygems_version: 3.1.2
|
339
339
|
signing_key:
|
340
340
|
specification_version: 4
|
341
341
|
summary: Rack application builder through a pipe of operations on an immutable struct.
|