psychic-runner 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/psychic/runner/version.rb +1 -1
- data/lib/psychic/shell/execution_result.rb +2 -0
- data/lib/psychic/util.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69224ee73f0d75190d851b16319792a4dc766f34
|
4
|
+
data.tar.gz: 1cddbfe6844bf53e58a6b15113b57c18b823a9f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7784c2bf1669787a6dc29eb096dd21e6afec25204a5d44e43c6f92bd342490065d3fbb4f5acad414865e8637023812f6b1a284a5fce5309251e1ee6f61b946e7
|
7
|
+
data.tar.gz: e42b2f1153877d7d04fb91a0c7cd19438e35f30b5f82669cb776b27fe5768ab17a93c15404a947fcbd44258d843d02510eafcca1825d14066b8bcfdb834a2d43
|
data/lib/psychic/util.rb
CHANGED
@@ -2,6 +2,13 @@ module Psychic
|
|
2
2
|
autoload :RegexpTokenHandler, 'psychic/tokens'
|
3
3
|
autoload :MustacheTokenHandler, 'psychic/tokens'
|
4
4
|
class Util
|
5
|
+
module Hashable
|
6
|
+
def to_hash
|
7
|
+
instance_variables.each_with_object({}) do |var,hash|
|
8
|
+
hash[var.to_s.delete("@")] = instance_variable_get(var)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
5
12
|
# Returns a new Hash with all key values coerced to strings. All keys
|
6
13
|
# within a Hash are coerced by calling #to_s and hashes with arrays
|
7
14
|
# and other hashes are traversed.
|