rails_log_book 0.2.0 → 0.3.0

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: 67d0353c0e186e2a8264652e9f9c98deb83373bc
4
- data.tar.gz: 9b95ba2e4073d819ade42d82b4f25db38936d53f
3
+ metadata.gz: 1dcd95f53c62fb9971f9b6aa3600f083fe20e390
4
+ data.tar.gz: 5c8d602213701f68f25b4ea419bba3b415e25f4b
5
5
  SHA512:
6
- metadata.gz: 56f0e225cab9b1f90cd07a20ce44461844b8f0ff46cbdd39e2b0b3c270f73fd2606dddea2f24b7fa995bb13d7f4fbbee1f019fe4b5cf9dfa3295b0a6313fd5d5
7
- data.tar.gz: f5a82f48790adf8927013a4a4ab14ef42ed354ea924e65a6a3b137911a019cc6b52bf3136272ae0303ddbed9f752fb1885cb99263324c3e833aa980e14731fa5
6
+ metadata.gz: cf696b59c7b89efea1dbb24525750653d1507e3b78803a4ae2c36076348f73d9099210ba75ad54c2f5f8f79d90cf7d2792f4d12becff5f5ba6867198991aebf5
7
+ data.tar.gz: 70d8ddd9694e9221d4347e1aaaaa5ceb8859cab8a0d224bca164bb1e989e4643956710ac216b2717fc05ff749fd37ed6f8708f7e6622f723aea8bd53da127634
@@ -1,3 +1,3 @@
1
1
  module LogBook
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -66,7 +66,7 @@ module LogBook
66
66
  def squash_records
67
67
  return if LogBook.store[:request_uuid].nil?
68
68
  records = LogBook::Record.where(request_uuid: LogBook.store[:request_uuid])
69
- return if records.empty?
69
+ return unless records.exists?
70
70
  LogBook::SquashRecords.new(records).call
71
71
  end
72
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_log_book
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler