logstash-input-mongoprofile 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e85c56eb301aa6347d92f1afb5709f256f9b208
4
- data.tar.gz: 1a421cbbbfb5ade2019bdf01fbea4f885777005e
3
+ metadata.gz: d9ddb07ddef37f8f33a7b86cb92234ddd68ebf43
4
+ data.tar.gz: 1eaefb1378c21fc977cd83a63f6836ee5c8922e8
5
5
  SHA512:
6
- metadata.gz: 2beb086fb1ad2f2fe3ea6f99988ada00b2e6cb0674477d02612f5d3255a14fa4be7df7314488fe66c07f8ffa45a0ffafa996a9c9c944b218b04129924f31061a
7
- data.tar.gz: 7eeeef25d2164fa94a8da609437cc59e88d14dca0d21716c6831e255f29001f9a74fdf68ec935a91e6c0cd5367a76f467d8d18b0c7e07781eb7f36ea6c5e696d
6
+ metadata.gz: 1fb2738ea5f931be2372eb8ec6c46838611e1fd401447da710e1f3d81562a010e19bab5806b718763395383a168327a7ff9b1969acaa05fd55e43cefb1949361
7
+ data.tar.gz: 3702c6fa7ccdd71bf379b346b5991e83f1300829f4baea20f6e28b8fb343797876c57ddbc4e985ca8807c188004161975eac65a1b6142034690007d02ff5d7bf
@@ -100,7 +100,7 @@ class ProfileCollection
100
100
  end
101
101
 
102
102
  def get_last_document_date
103
- if @documents != nil
103
+ if @documents and @documents[-1] != nil
104
104
  @documents[-1]['ts']
105
105
  else
106
106
  nil
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-mongoprofile'
3
- s.version = '0.1.7'
3
+ s.version = '0.1.8'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'MongoDB system.profile input plugin'
6
6
  s.description = 'MongoDB system.profile input plugin'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-mongoprofile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Antonov