elastics-client 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/elastics/variables.rb +2 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.5
|
data/lib/elastics/variables.rb
CHANGED
@@ -45,6 +45,8 @@ module Elastics
|
|
45
45
|
def fetch_nested(key)
|
46
46
|
unnest(key).inject(self, :fetch)
|
47
47
|
rescue NoMethodError, KeyError
|
48
|
+
# return the milliseconds for :now if it is not set explicitly
|
49
|
+
return (Time.now.to_f * 1000).to_i if key == :now
|
48
50
|
raise MissingVariableError, "the required #{key.inspect} variable is missing."
|
49
51
|
end
|
50
52
|
|