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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 029f11de28ff6aad99782e6afa1cd9b63fd5a728
4
- data.tar.gz: 7534e31e1f74e53908750560a9939a1c1052d43a
3
+ metadata.gz: 77cbbacd319f472da01acaa7be887855096facf6
4
+ data.tar.gz: e198ad723b9e7431a29a93cd6527f2ab65927ee9
5
5
  SHA512:
6
- metadata.gz: e52ac061f8085db1f3ca79dba71a0b33f7e8d5228a3d612b637ea7c8683abdd40ac808f1532469938f17cd6c50745d9161a81968563c6224e122b7434244acc8
7
- data.tar.gz: 63674f861d4a4d5777df6f94079863c6f5ea4b7a62a39d3dde9a03d7bb6c08698cc4803bf1dc7d082491ffc4682b715918bba3d91ac50d22a61a0128217fe8a2
6
+ metadata.gz: 97c16159042f72c46ab081f889bf6db8fae3e7b06ef6909a814fdafd945dd13ad5d3ac3672ac89500a38694b1819d512f7360e0ad1274072399043427842af1a
7
+ data.tar.gz: a0c2475a80583da947f65e9f25f11970e8214d4e2671a4305d30f7b5cbceae51eabf6122e310049d38cb68e9851d843efc6c7c9336cf6d2b95ebb8a3b21b09e4
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Moonrope
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
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.2
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-28 00:00:00.000000000 Z
11
+ date: 2014-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json