elastics-client 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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: