might 0.7.4 → 0.7.5

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: 69567a90a20ed0670e59af3a8e2d4e539d115ba0f36c35e6abdb987a6dc87fd0
4
- data.tar.gz: d8111d49e645cfa566a10e30214fba4ad9b3479d4e38c8c326c3edb7c3010362
3
+ metadata.gz: f869b4b6ee90b6e24eb8cc2536525a038cff9d26d921a9f9f94c93d24a971249
4
+ data.tar.gz: 2fbed37817a64752e22bb725d365408c7e8355d111a4ee60954cecbe9e237a43
5
5
  SHA512:
6
- metadata.gz: 3bd1b9b6a767dd370c8c8f3753d4a2efc0c4231a0392e22555a849908cff7204e6178238a894523369d97ee79dac4d65d9ede737eb41f10d41377dfc18311d3b
7
- data.tar.gz: 7441d3b08e69af0ef44c40ac0977db9663f337641ff27deaca48494b1a2addcdbfc4952f8d2cd6750640d85f2540d913c19408e14ba755e9eefcb4a7713af1bf
6
+ metadata.gz: 3f8b92843b3c52236ac5052c38105cdeeb0045d5b007a11958f985511a8d6abd5434c2755bfbd709ac912e9aa55fc3d0097e9d8d3806af89ddc3e27e01b45c94
7
+ data.tar.gz: 4d62a98391fbeb6ac6d04ab0a158847f9b988f6a39c50b5236bcf59dc0a53e705991fac0a91198ea9e738d7bebd429acdd2de7df633f0aa0a92874b4c440b4c2
@@ -212,8 +212,9 @@ module Might
212
212
  # end
213
213
  # end
214
214
  #
215
- def after(&block)
216
- alter_middleware(:use, &block)
215
+ def after(middleware_or_index = nil, &block)
216
+ args = middleware_or_index ? [:insert_after, middleware_or_index] : [:use]
217
+ alter_middleware(*args, &block)
217
218
  end
218
219
 
219
220
  # Add middleware to the beginning of middleware chane
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Might
3
- VERSION = '0.7.4'
3
+ VERSION = '0.7.5'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: might
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tema Bolshakov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-02 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  version: '0'
275
275
  requirements: []
276
276
  rubyforge_project:
277
- rubygems_version: 2.7.7
277
+ rubygems_version: 2.7.6
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: Mighty resource fetchers