hanami-controller 0.6.0 → 0.6.1

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
  SHA1:
3
- metadata.gz: 6aa09c8d919968060861da431f0ba61eb8c58cac
4
- data.tar.gz: 6b46109f745c50ee376811c08469792ed00eb053
3
+ metadata.gz: d9cfb818515da7bb2f825a1016ebfd221cfb3c75
4
+ data.tar.gz: e459b2afa444cd3a7e5ddb6f77ee7594cedf59c0
5
5
  SHA512:
6
- metadata.gz: 5a8524d76af843a0e61350b7b9b550e8ce2d1f7b6ff84fe7ea0cc62c7af1bddde884a8c56fdcc8b7430cd3733598a1a0a9efb35bb4ba7467dff4b01f17bf643c
7
- data.tar.gz: 5251e851f5d42427d012532b84e26837b5dca7d0c8e1c90b4bad4ab15dff614cca508583b44aa1741b9f5926f07fb36a48647dcd7ce7ec0f921acf6fd0e96bea
6
+ metadata.gz: bd1689d659b55ee1a01114eba2c37e27768ad926c0c3e1adf9b90c5030a92e5b35383e297c494e7e4ce037183a0b356c6410d76b3b6a948a3db2ece4f7cade22
7
+ data.tar.gz: a2fa0502c2e59c9eb6d22f5850ed0454fe4ea59531460575f7fcdc383fc90f9ca399e487013940b3b7c6fb743035cd190765fd67d12fd1ffc2c18f678c308cea
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Hanami::Controller
2
2
  Complete, fast and testable actions for Rack
3
3
 
4
+ ## v0.6.1 - 2016-02-05
5
+ ### Changed
6
+ - [Anatolii Didukh] Optimise memory usage by freezing MIME types constant
7
+
4
8
  ## v0.6.0 - 2016-01-22
5
9
  ### Changed
6
10
  - [Luca Guidi] Renamed the project
@@ -41,6 +41,12 @@ module Hanami
41
41
  # @api private
42
42
  DEFAULT_CHARSET = 'utf-8'.freeze
43
43
 
44
+ # The default mime types list
45
+ #
46
+ # @since 0.6.1
47
+ # @api private
48
+ MIME_TYPES = ::Rack::Mime::MIME_TYPES.values.freeze
49
+
44
50
  # Override Ruby's hook for modules.
45
51
  # It includes Mime types logic
46
52
  #
@@ -418,7 +424,7 @@ module Hanami
418
424
  # @api private
419
425
  def accepts
420
426
  unless accept == DEFAULT_ACCEPT
421
- best_q_match(accept, ::Rack::Mime::MIME_TYPES.values)
427
+ best_q_match(accept, MIME_TYPES)
422
428
  end
423
429
  end
424
430
 
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '0.6.0'.freeze
6
+ VERSION = '0.6.1'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-controller
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
  - Luca Guidi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-22 00:00:00.000000000 Z
13
+ date: 2016-02-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack