hanami-controller 1.2.0.rc1 → 1.2.0.rc2

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: 92a955fda9b232e2f295f6b7b9da0ae6954bf184b551a115d750cd19106f14e9
4
- data.tar.gz: 68762ba15468c4e163d4e6177b790415497aeb83d0a042178c21229242fcd120
3
+ metadata.gz: a5d249cfcafcaf358bf42b03c0cc8fa4f4c53f7ecc11b051cca81ba5f883ed6d
4
+ data.tar.gz: f241fe2ae06005b2e31248157ef134ab6aedc6416e855382e6e3952865e1bbf2
5
5
  SHA512:
6
- metadata.gz: 246d4bf4d6491f463b3914a79d234ef2dcb9475a0cec09bc2ad121bf837357c134ef0e9b0cce7538046600a7c7ccbe6760117d0341bc65330846b7a97b9545d0
7
- data.tar.gz: 494fcad4028648bf05e8a26ad0ffc8cb512c4fa9299a5b913df85c344e5e9b1c630c4428a50cf74f2d6882fec1d9482a565c0630e1828623fb1b0ae55faeacc4
6
+ metadata.gz: 1ec232c07bddfc8934237dd94d58ba80998c6d8328117e279f548b63d6e9dab441a5f527e5ded58d7f53685ad01d8658601b213645011eb6528c1dda9acd4a23
7
+ data.tar.gz: bef4f58fd772c8e49f7aad9c743439317da22148bb6fe289989df32d5eee4f5cf6486c301460da514c606b0066cf411e3fd83ca23d1ae62ae795ae15ffdac4e3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Hanami::Controller
2
2
  Complete, fast and testable actions for Rack
3
3
 
4
+ ## v1.2.0.rc2 - 2018-04-06
5
+ ### Added
6
+ - [Gustavo Caso] Introduce `Hanami::Action::Flash#each` and `#map`
7
+
4
8
  ## v1.2.0.rc1 - 2018-03-30
5
9
 
6
10
  ## v1.2.0.beta2 - 2018-03-23
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.required_ruby_version = '>= 2.3.0'
21
21
 
22
22
  spec.add_dependency 'rack', '~> 2.0'
23
- spec.add_dependency 'hanami-utils', '1.2.0.rc1'
23
+ spec.add_dependency 'hanami-utils', '1.2.0.rc2'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.6'
26
26
  spec.add_development_dependency 'rack-test', '~> 0.6'
@@ -60,6 +60,25 @@ module Hanami
60
60
  end
61
61
  end
62
62
 
63
+ # Iterates through data
64
+ #
65
+ # @param blk [Proc]
66
+ #
67
+ # @since 1.2.0
68
+ def each(&blk)
69
+ @merged.each(&blk)
70
+ end
71
+
72
+ # Iterates through data
73
+ #
74
+ # @param blk [Proc]
75
+ # @return [Array]
76
+ #
77
+ # @since 1.2.0
78
+ def map(&blk)
79
+ @merged.map(&blk)
80
+ end
81
+
63
82
  # Removes entirely the flash from the session if it has stale contents
64
83
  # or if empty.
65
84
  #
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.2.0.rc1'.freeze
6
+ VERSION = '1.2.0.rc2'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc1
4
+ version: 1.2.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-30 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.0.rc1
33
+ version: 1.2.0.rc2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2.0.rc1
40
+ version: 1.2.0.rc2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: 1.3.1
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.7.5
161
+ rubygems_version: 2.7.6
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Complete, fast and testable actions for Rack and Hanami