web_pipe 0.6.0 → 0.6.1

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
  SHA256:
3
- metadata.gz: da7aa2093465c5b9b0b2fa4653f28580657989498aff26dfe9e52c3241b7efb9
4
- data.tar.gz: 80562491db7789419a49030d2ab239330b98ad40310e428806dfed8f0381259e
3
+ metadata.gz: 2e30728a57f73a570c6345efd53dc22d32006a3b6bd6eb666c15b3f079fd3f83
4
+ data.tar.gz: e85225c017e8ee7c23a65b7d5cda617cabc403d052c2196087542fc56c3d3636
5
5
  SHA512:
6
- metadata.gz: 2dad49f899b9c25a18fba6b8caebaa8898de0afab6ba124f3618d3080f1ccbdb4c98c2805298eea29d02ed3fdaef06cb0c29f228283e230832729884c533cb12
7
- data.tar.gz: 3bf25d5a0c73b45263bd5ae3a8718f57412f5513da33313c9600163b17e116834dbff3ab55df26cfc61b06226727e2700849a77ee8f4daf45a9f7064d1f4058a
6
+ metadata.gz: 6b24b6829b5657403ce5ef161fc4c0fe265a091195fc0de5c878751aaf88041e169ad1628e448fbb6dd27412f3564b50e087cad782fab4c9ad39b6a0acbf4e18
7
+ data.tar.gz: a60f0297742a97ea66a2cf0b8629319a05881921c2589b6c493ded751dd27bfb29e64284e1048cb39981ea756a575e5b955a7f8a3efd6965c19ba395c3534353
data/CHANGELOG.md CHANGED
@@ -4,93 +4,98 @@ 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.6.1] - 2019-08-02
8
+ ### Fixed
9
+ - Fixed support for ruby 2.4.
10
+ [[#28]](https://github.com/waiting-for-dev/web_pipe/pull/28)
11
+
7
12
  ## [0.6.0] - 2019-08-02
8
13
  ### Added
9
14
  - **BREAKING**. Rename `put` methods as `add`.
10
- [[#26]](https://github.com/waiting-for-dev/web_pipe/pull/26).
15
+ [[#26]](https://github.com/waiting-for-dev/web_pipe/pull/26)
11
16
 
12
17
  - **BREAKING**. Rename taint to halt, and clean/dirty to ongoing/halted.
13
- [[#25](https://github.com/waiting-for-dev/web_pipe/pull/25)].
18
+ [[#25](https://github.com/waiting-for-dev/web_pipe/pull/25)]
14
19
 
15
20
  - **BREAKING**. URL redundant methods need to be loaded from `:url` extension.
16
- [[#24](https://github.com/waiting-for-dev/web_pipe/pull/24)].
21
+ [[#24](https://github.com/waiting-for-dev/web_pipe/pull/24)]
17
22
 
18
23
  - Merge router params with GET and POST params.
19
- [[#23](https://github.com/waiting-for-dev/web_pipe/pull/23)].
24
+ [[#23](https://github.com/waiting-for-dev/web_pipe/pull/23)]
20
25
 
21
26
  - Extension integrating rack session.
22
- [[#21](https://github.com/waiting-for-dev/web_pipe/pull/21)].
27
+ [[#21](https://github.com/waiting-for-dev/web_pipe/pull/21)]
23
28
 
24
29
  - Extension to add/delete cookies.
25
30
  [[#20](https://github.com/waiting-for-dev/web_pipe/pull/20)] &
26
- [[#22](https://github.com/waiting-for-dev/web_pipe/pull/22)].
31
+ [[#22](https://github.com/waiting-for-dev/web_pipe/pull/22)]
27
32
 
28
33
  - Extension to easily create HTTP redirects.
29
- [[#19](https://github.com/waiting-for-dev/web_pipe/pull/19)].
34
+ [[#19](https://github.com/waiting-for-dev/web_pipe/pull/19)]
30
35
 
31
36
  - Added `Conn#set_response_headers` method.
32
- [[#27](https://github.com/waiting-for-dev/web_pipe/pull/27)].
37
+ [[#27](https://github.com/waiting-for-dev/web_pipe/pull/27)]
33
38
 
34
39
 
35
40
  ## [0.5.0] - 2019-07-26
36
41
  ### Added
37
42
  - **BREAKING**. `container` is now an extension.
38
- [[#16](https://github.com/waiting-for-dev/web_pipe/pull/16)].
43
+ [[#16](https://github.com/waiting-for-dev/web_pipe/pull/16)]
39
44
 
40
45
  - Extension providing Integration with `dry-schema`.
41
- [[#18](https://github.com/waiting-for-dev/web_pipe/pull/18)].
46
+ [[#18](https://github.com/waiting-for-dev/web_pipe/pull/18)]
42
47
 
43
48
  - No need to manually call `#to_proc` when composing plugs.
44
- [[#13](https://github.com/waiting-for-dev/web_pipe/pull/13)].
49
+ [[#13](https://github.com/waiting-for-dev/web_pipe/pull/13)]
45
50
 
46
51
  - Extension adding flash functionality to conn.
47
- [[#15](https://github.com/waiting-for-dev/web_pipe/pull/15)].
52
+ [[#15](https://github.com/waiting-for-dev/web_pipe/pull/15)]
48
53
 
49
54
  - Extensions automatically require their associated plugs, so there is no need
50
55
  to require them manually anymore.
51
- [[#17](https://github.com/waiting-for-dev/web_pipe/pull/17)].
56
+ [[#17](https://github.com/waiting-for-dev/web_pipe/pull/17)]
52
57
 
53
58
  ### Fixed
54
59
  - Fixed bug not allowing middlewares to modify responses initially set with
55
60
  default values.
56
- [[#14](https://github.com/waiting-for-dev/web_pipe/pull/14)].
61
+ [[#14](https://github.com/waiting-for-dev/web_pipe/pull/14)]
57
62
 
58
63
 
59
64
  ## [0.4.0] - 2019-07-17
60
65
  ### Added
61
66
  - **BREAKING**. Middlewares have to be named when used.
62
- [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)].
67
+ [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)]
63
68
 
64
69
  - **BREAKING**. Middlewares have to be initialized when composed.
65
- [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)].
70
+ [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)]
66
71
 
67
72
  - **BREAKING**. The array of injected plugs is now scoped within a `plugs:`
68
73
  kwarg.
69
- [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)].
74
+ [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)]
70
75
 
71
76
  - Middlewares can be injected.
72
- [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)].
77
+ [[#11](https://github.com/waiting-for-dev/web_pipe/pull/11)]
73
78
 
74
79
  - DSL helper method `compose` to add middlewares and plugs in order and in a
75
80
  single shot-
76
- [[#12](https://github.com/waiting-for-dev/web_pipe/pull/11)].
81
+ [[#12](https://github.com/waiting-for-dev/web_pipe/pull/11)]
77
82
 
78
83
 
79
84
  ## [0.3.0] - 2019-07-12
80
85
  ### Added
81
86
  - **BREAKING**. When plugging with `plug:`, the operation is no longer
82
87
  specified through `with:`. Now it is just the second positional argument-
83
- [[#9](https://github.com/waiting-for-dev/web_pipe/pull/9)].
88
+ [[#9](https://github.com/waiting-for-dev/web_pipe/pull/9)]
84
89
 
85
90
  - It is possible to plug a block-
86
- [[#9](https://github.com/waiting-for-dev/web_pipe/pull/9)].
91
+ [[#9](https://github.com/waiting-for-dev/web_pipe/pull/9)]
87
92
 
88
93
  - WebPipe plug's can be composed. A WebPipe proc representation is the
89
94
  composition of all its operations, which is an operation itself-
90
- [[#9](https://github.com/waiting-for-dev/web_pipe/pull/9)].
95
+ [[#9](https://github.com/waiting-for-dev/web_pipe/pull/9)]
91
96
 
92
97
  - WebPipe's middlewares can be composed into another WebPipe class-
93
- [[#10](https://github.com/waiting-for-dev/web_pipe/pull/10)].
98
+ [[#10](https://github.com/waiting-for-dev/web_pipe/pull/10)]
94
99
 
95
100
 
96
101
  ## [0.2.0] - 2019-07-05
@@ -100,18 +105,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
100
105
  [[#3](https://github.com/waiting-for-dev/web_pipe/pull/3)],
101
106
  [[#4](https://github.com/waiting-for-dev/web_pipe/pull/4)],
102
107
  [[#5](https://github.com/waiting-for-dev/web_pipe/pull/5)] &
103
- [[#6](https://github.com/waiting-for-dev/web_pipe/pull/6)].
108
+ [[#6](https://github.com/waiting-for-dev/web_pipe/pull/6)]
104
109
 
105
110
  - Configuring a container in `WebPipe::Conn`-
106
111
  [[#2](https://github.com/waiting-for-dev/web_pipe/pull/2)] &
107
- [[#5](https://github.com/waiting-for-dev/web_pipe/pull/5)].
112
+ [[#5](https://github.com/waiting-for-dev/web_pipe/pull/5)]
108
113
 
109
114
  - Plug to set `Content-Type` response header-
110
- [[#7](https://github.com/waiting-for-dev/web_pipe/pull/7)].
115
+ [[#7](https://github.com/waiting-for-dev/web_pipe/pull/7)]
111
116
 
112
117
  ### Fixed
113
118
  - Fix key interpolation in `KeyNotFoundInBagError`-
114
- [[#8](https://github.com/waiting-for-dev/web_pipe/pull/8)].
119
+ [[#8](https://github.com/waiting-for-dev/web_pipe/pull/8)]
115
120
 
116
121
  ## [0.1.0] - 2019-05-07
117
122
  ### Added
@@ -97,7 +97,9 @@ module WebPipe
97
97
  #
98
98
  # @see #normalize_key
99
99
  def self.normalize(headers)
100
- headers.transform_keys(&method(:normalize_key))
100
+ Hash[
101
+ headers.map { |k, v| [normalize_key(k), v] }
102
+ ]
101
103
  end
102
104
  end
103
105
  end
@@ -1,3 +1,3 @@
1
1
  module WebPipe
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Busqué