rack-reqorder 0.4.6 → 0.4.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cab88349aeef35a9e5760fd13f3932461d1f7ce
4
- data.tar.gz: e68d3ca8006f017f316899d9c6b3f71b95fcfcfd
3
+ metadata.gz: 3b99da98e8b48586df92b279d7dbe314c51c3e36
4
+ data.tar.gz: c711fd9aadd35b7696fcda7551c3a463ec92d54c
5
5
  SHA512:
6
- metadata.gz: d0b01473c631dbaba64bd037c185d16fa90185cc7db87687fcccff6e42186b3d437e8867cea022c646ad10aa698a82bac16008e8273d0375eeb92c8b71305f37
7
- data.tar.gz: 147923cd75bde1e4b3cd05fa1ad0deeeef1c7bdf187821be29cf1a8e7d4b2146e73c90edf6be4445a55eb85977acb20b3dbeeae873aa317e5fd576290fade923
6
+ metadata.gz: bb376f815f9ac833d0c4d457519eac0e127e8397e61846b25313e6f0b3985db05d51934bee90c251e61f0a83d9c1baca304ceea62681c6df5767711514c38a3a
7
+ data.tar.gz: 6c63a81de0c7307676ecb89f7e9343443decf31979d262f39c22a8eaa3958c96884b408616b0187207f460f146107207c8474d326e27f047c117512ed67d284a
@@ -62,7 +62,7 @@ module Rack::Reqorder
62
62
  [:all.to_s, DateTime.now.utc.hour.to_s].each do |key|
63
63
  statistic = route_path.send("statistic_#{key}".to_sym)
64
64
 
65
- if key != :all && statistic && statistic.created_at.to_date < DateTime.now.utc.to_date
65
+ if key != :all.to_s && statistic && statistic.created_at.to_date < DateTime.now.utc.to_date
66
66
  statistic = route_path.send("create_statistic_#{key}")
67
67
  end
68
68
 
@@ -147,7 +147,6 @@ module Rack::Reqorder
147
147
  e_class: exception.class,
148
148
  line: line.to_i,
149
149
  filepath: path[1..-1],
150
- route_path: http_request.route_path,
151
150
  environment: app_environment
152
151
  )
153
152
 
@@ -14,7 +14,6 @@ module Rack::Reqorder::Models
14
14
 
15
15
  field :app_exceptions_count, type: Integer, default: 0
16
16
 
17
- belongs_to :route_path, dependent: :nullify
18
17
  has_many :app_exceptions, dependent: :destroy
19
18
 
20
19
  def update_count!
@@ -14,7 +14,5 @@ module Rack::Reqorder::Models
14
14
  0.upto(23) do |i|
15
15
  embeds_one "statistic_#{i}", class_name: 'Rack::Reqorder::Models::Statistic'
16
16
  end
17
-
18
- has_one :app_fault, dependent: :destroy
19
17
  end
20
18
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Reqorder
3
- VERSION = "0.4.6"
3
+ VERSION = "0.4.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-reqorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-25 00:00:00.000000000 Z
12
+ date: 2015-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler