require_options 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/lib/require_options.rb +2 -0
- data/spec/require_options_spec.rb +6 -0
- metadata +2 -4
- data/TODO +0 -1
data/README.rdoc
CHANGED
data/lib/require_options.rb
CHANGED
@@ -30,6 +30,12 @@ describe RequireOptions do
|
|
30
30
|
require_options(opts, :gear, :speed)
|
31
31
|
}.should raise_error("speed required")
|
32
32
|
end
|
33
|
+
|
34
|
+
it "raises an error if anything other than a hash is passed in" do
|
35
|
+
lambda {
|
36
|
+
require_options(2, :pole)
|
37
|
+
}.should raise_error(ArgumentError, /options must be a hash/i)
|
38
|
+
end
|
33
39
|
end
|
34
40
|
|
35
41
|
describe "#allow_options" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: require_options
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Atomic Object
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-02-03 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -22,13 +22,11 @@ extensions: []
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- LICENSE
|
24
24
|
- README.rdoc
|
25
|
-
- TODO
|
26
25
|
files:
|
27
26
|
- LICENSE
|
28
27
|
- Rakefile
|
29
28
|
- lib/require_options.rb
|
30
29
|
- README.rdoc
|
31
|
-
- TODO
|
32
30
|
has_rdoc: true
|
33
31
|
homepage: http://github.com/atomicobject/require_options
|
34
32
|
licenses: []
|