moonrope 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moonrope/param_set.rb +10 -0
- data/lib/moonrope/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77cbbacd319f472da01acaa7be887855096facf6
|
4
|
+
data.tar.gz: e198ad723b9e7431a29a93cd6527f2ab65927ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97c16159042f72c46ab081f889bf6db8fae3e7b06ef6909a814fdafd945dd13ad5d3ac3672ac89500a38694b1819d512f7360e0ad1274072399043427842af1a
|
7
|
+
data.tar.gz: a0c2475a80583da947f65e9f25f11970e8214d4e2671a4305d30f7b5cbceae51eabf6122e310049d38cb68e9851d843efc6c7c9336cf6d2b95ebb8a3b21b09e4
|
data/lib/moonrope/param_set.rb
CHANGED
@@ -40,5 +40,15 @@ module Moonrope
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
#
|
44
|
+
# Does the specified key exist?
|
45
|
+
#
|
46
|
+
# @param key [Symbol or String]
|
47
|
+
# @return [Boolean]
|
48
|
+
#
|
49
|
+
def has?(key)
|
50
|
+
@params.keys.include?(key.to_s) || @defaults.keys.include?(key.to_s)
|
51
|
+
end
|
52
|
+
|
43
53
|
end
|
44
54
|
end
|
data/lib/moonrope/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moonrope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|