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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/elastics/variables.rb +2 -0
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.5
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastics-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: