hanami-controller 1.3.1 → 1.3.2

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: 0e9643fe3764cb11c489a0bfcda97524b878332920833e874d3819e61cfb1517
4
- data.tar.gz: a7d32423fd184651bda26f9a1c188bbfa6704da69bfb2a0424e694926920bdcb
3
+ metadata.gz: 546fec0f371e76fa6e8f494ed3b66fb75cc7250226ffdcdbe6e7c52cce953204
4
+ data.tar.gz: 82f4c7eca712806b6960f72eef8f62703008f45df342f6ad0ca83dffe232fe4b
5
5
  SHA512:
6
- metadata.gz: 07dea2d300fad993f8c1e02da1b5fd192d9092fc176a11fe6d9ad89e3282c033fa58b067c306e23ad449c462a6299e2b8e6ba0eb920cd7b079f1773e60ce40e9
7
- data.tar.gz: 56d261fc02d67978d86f8823b25b2ba0533bee98e037af1783475d63273aa73a2676584ed109a7c16fd9ed37d9ae84158409824071e33c8dfe6b878ae350b425
6
+ metadata.gz: c36ec8f8f6b8ffca2ecafe33e4ed5b748578e0469368b2af6ba6b833cc334892d3b73bf555d8afc3c8c63d956a24a1b6ab13133f528f73aee855a084fb4b58af
7
+ data.tar.gz: ac75c0c499f36ad8d44f334028f6081843ad829b486e6e5787521167d1b5b48e5f9e2723b00641baea769619e8a9844ef4f5231251cbc7db023b1b39ecf84094
@@ -1,6 +1,10 @@
1
1
  # Hanami::Controller
2
2
  Complete, fast and testable actions for Rack
3
3
 
4
+ ## v1.3.2 - 2019-06-28
5
+ ### Fixed
6
+ - [Ian Ker-Seymer] Ensure `Etag` to work when `If-Modified-Since` is sent from browser and upstream proxy sets `Last-Modified` automatically.
7
+
4
8
  ## v1.3.1 - 2019-01-18
5
9
  ### Added
6
10
  - [Luca Guidi] Official support for Ruby: MRI 2.6
data/README.md CHANGED
@@ -14,11 +14,12 @@ Complete, fast and testable actions for Rack and [Hanami](http://hanamirb.org)
14
14
  ## Contact
15
15
 
16
16
  * Home page: http://hanamirb.org
17
+ * Community: http://hanamirb.org/community
18
+ * Guides: https://guides.hanamirb.org
17
19
  * Mailing List: http://hanamirb.org/mailing-list
18
20
  * API Doc: http://rdoc.info/gems/hanami-controller
19
21
  * Bugs/Issues: https://github.com/hanami/controller/issues
20
22
  * Chat: http://chat.hanamirb.org
21
- * Chat: https://gitter.im/hanami/chat
22
23
 
23
24
  ## Rubies
24
25
 
@@ -67,7 +67,10 @@ module Hanami
67
67
  # @since 0.3.0
68
68
  # @api private
69
69
  def fresh?
70
- !Hanami::Utils::Blank.blank?(modified_since) && Time.httpdate(modified_since).to_i >= @value.to_time.to_i
70
+ return false if Hanami::Utils::Blank.blank?(modified_since)
71
+ return false if Hanami::Utils::Blank.blank?(@value)
72
+
73
+ Time.httpdate(modified_since).to_i >= @value.to_time.to_i
71
74
  end
72
75
 
73
76
  # @since 0.3.0
@@ -126,7 +126,7 @@ module Hanami
126
126
  #
127
127
  # @since 0.7.0
128
128
  #
129
- # @see http://hanamirb.org/guides/validations/overview/
129
+ # @see https://guides.hanamirb.org/validations/overview
130
130
  #
131
131
  # @example
132
132
  # class Signup
@@ -50,7 +50,7 @@ module Hanami
50
50
  # @since 0.3.0
51
51
  #
52
52
  # @see Hanami::Action::Params
53
- # @see http://hanamirb.org/guides/validations/overview/
53
+ # @see https://guides.hanamirb.org//validations/overview
54
54
  #
55
55
  # @example Anonymous Block
56
56
  # require 'hanami/controller'
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.3.1'.freeze
6
+ VERSION = '1.3.2'.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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-18 00:00:00.000000000 Z
11
+ date: 2019-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
- rubygems_version: 3.0.2
166
+ rubygems_version: 3.0.3
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Complete, fast and testable actions for Rack and Hanami