shells 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shells/version.rb +1 -1
- data/lib/shells.rb +10 -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: 84290cfa99c45a5ed364ed2768d33bd53065efa6
|
4
|
+
data.tar.gz: bf1b5abab47b36aaf979578203b650ca2ed750c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 246b734e106f7b40d4de02278a8a5f66f0191bb1341b92e68990d120ca23fb712d1aacb85dbb35c12c1856fe57f990b156f349d3f70f196db3ee50eb0cb24d66
|
7
|
+
data.tar.gz: f5f99c98cbbdd287442e65fd9f371a3ce761047a64dc8b779616b5efcc65cd2c7a0187ff915ae435014509f25ce90d06c2898b35031a59aa999ec406eb221b78
|
data/lib/shells/version.rb
CHANGED
data/lib/shells.rb
CHANGED
@@ -22,7 +22,16 @@ module Shells
|
|
22
22
|
# Provides the ability for the Shells module to allow sessions to be instantiated without calling +new+.
|
23
23
|
def self.method_missing(m, *args, &block) #:nodoc:
|
24
24
|
|
25
|
-
is_const =
|
25
|
+
is_const =
|
26
|
+
if m.to_s =~ /^[A-Z][a-zA-Z0-9_]*$/ # must start with uppercase and contain only letters, numbers, and underscores.
|
27
|
+
begin
|
28
|
+
const_defined?(m)
|
29
|
+
rescue NameError # if for some reason we still get a NameError, it's obviously not a constant.
|
30
|
+
false
|
31
|
+
end
|
32
|
+
else
|
33
|
+
false
|
34
|
+
end
|
26
35
|
|
27
36
|
if is_const
|
28
37
|
val = const_get(m)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shells
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beau Barker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|