blocks 4.0.0.rc1 → 4.0.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: ac889f821c446485bd1f322997668b8918bcbf2ad7537101ff63d8fc072b2b50
4
- data.tar.gz: c051d2d14d83d092f4194eefc0c42bfc348e9ee67d5c13d371a7f57cbd5cf04d
3
+ metadata.gz: 5c2bc8606eb38fc14ef7d5cba2af1243900777696d36555948c3723d96242032
4
+ data.tar.gz: 3d278dc1864520beaa5b33d44680fe0326621128f7fe97d96249080698237e2b
5
5
  SHA512:
6
- metadata.gz: cf7c5360fa45839ec5f7b43d0a3a0206698d60ee1ba44d456c525c2a35ca5da15f35b4f500330effd8102d28a75daa1dc36fe3ad7c1be8866ff6a203de418aa7
7
- data.tar.gz: 1721d9b28d74306501327f1a05e638cb1b27a700099ae385bfa9653d650840e2f56c7a7899ce8bbebf8efd1ffa1a066dfd0e3be200bf92a2e94df1c4fd3abea1
6
+ metadata.gz: 0db01d1469f15ac1f833ae155d04ea28232106eff6a108d7640552f3f18116a7aec72f32d54939efe3ba5cdd56bc5d19fa2150cb79ff1b5fcfa89414a2696b51
7
+ data.tar.gz: 4fa95a20bc9f3ab1372dfa921a8acb4bea749beabb2aff6ae0241ff134a38074d9f24fd0c5dd5ff779a30a1f3ea3371d443af5f6ea6de66949f3163d42da9576
@@ -13,8 +13,7 @@ module Blocks
13
13
  runtime_context.collection_item_index = index
14
14
 
15
15
  if Blocks.collection_item_passed_to_block_as_first_arg
16
- runtime_context.runtime_args = runtime_context.runtime_args.try(:clone) || []
17
- runtime_context.runtime_args = [item] + Array(runtime_context.runtime_args)
16
+ runtime_context.runtime_args = [item, *original_runtime_args]
18
17
  end
19
18
 
20
19
  yield runtime_context
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Blocks
4
- VERSION = "4.0.0.rc1"
4
+ VERSION = "4.0.0.rc2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.rc1
4
+ version: 4.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hunter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-20 00:00:00.000000000 Z
11
+ date: 2020-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails