dsl 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/dsl.rb +1 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/lib/dsl.rb CHANGED
@@ -26,7 +26,7 @@ class Module
26
26
  # The methods do not accept arguments, only blocks
27
27
  opts.each do |method, dsl_class|
28
28
  define_method(method) do |&blk|
29
- raise(ArgumentError, "method #{method} requires a block") unless block_given?
29
+ raise(ArgumentError, "method #{method} requires a block") unless !!blk
30
30
  dsl_class.call(self, &blk)
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - c00lryguy