better_struct 0.0.2 → 0.0.3

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
  !binary "U0hBMQ==":
3
- metadata.gz: 1c66dda2acf77cbc9d8335a5566a4c7ceb6b08c3
4
- data.tar.gz: 4b89de754a58102d32eece33e3299fa4acd44db1
3
+ metadata.gz: c413c7fb47cee774225d9ca7ef9da5bddf59181c
4
+ data.tar.gz: 24ca5a390276c9f470d52b1d54c68bcbda6cfba0
5
5
  SHA512:
6
- metadata.gz: d3247b8c76980dd91b2e463c150e27555cbf4714f898fc8e40938d2b952d6e2c3896722e0a8c3d7e7fe3edc4d94931ad6c17ff35dea4db7663e5f29818d320ec
7
- data.tar.gz: 6d601f5ce53b1c0d66ac0185fb5df718041be0abc976e19df56715888ba21a249934ad798e63307343d6f06ce31eac2293ff764a6aab4f5ab16a4f90c86cb32e
6
+ metadata.gz: bee0f31a4b043844b8924cb02623a026c5194a9b6dfa1a79bfe0ab0ce20d8992df92eb008b7dd7cf942c229900419352c17b09b8d977c6951a63726b8f86476f
7
+ data.tar.gz: b3e6e11e24100e44f286135c6146a6f6041fc7ffc92968fb21b4b263ebc6ea9e5d15de745ea10c12629c3935de39cec47d22c8294e527d137cb08c3473dfb06a
@@ -31,6 +31,8 @@ private
31
31
  end
32
32
 
33
33
  def wrap_block_arguments(*args, &block)
34
+ return if block.nil?
35
+
34
36
  Proc.new do |*args|
35
37
  wrapped_arguments = args.map { |arg| wrap(arg) }
36
38
  block.call(*wrapped_arguments)
@@ -1,3 +1,3 @@
1
1
  class BetterStruct
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-25 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler