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 +4 -4
- data/CHANGELOG.md +4 -0
- data/hanami-controller.gemspec +1 -1
- data/lib/hanami/action/flash.rb +19 -0
- data/lib/hanami/controller/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5d249cfcafcaf358bf42b03c0cc8fa4f4c53f7ecc11b051cca81ba5f883ed6d
|
4
|
+
data.tar.gz: f241fe2ae06005b2e31248157ef134ab6aedc6416e855382e6e3952865e1bbf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ec232c07bddfc8934237dd94d58ba80998c6d8328117e279f548b63d6e9dab441a5f527e5ded58d7f53685ad01d8658601b213645011eb6528c1dda9acd4a23
|
7
|
+
data.tar.gz: bef4f58fd772c8e49f7aad9c743439317da22148bb6fe289989df32d5eee4f5cf6486c301460da514c606b0066cf411e3fd83ca23d1ae62ae795ae15ffdac4e3
|
data/CHANGELOG.md
CHANGED
data/hanami-controller.gemspec
CHANGED
@@ -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.
|
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'
|
data/lib/hanami/action/flash.rb
CHANGED
@@ -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
|
#
|
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.
|
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-
|
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.
|
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.
|
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.
|
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
|