sequel-rails 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +8 -0
- data/lib/sequel_rails/railties/controller_runtime.rb +11 -2
- data/lib/sequel_rails/version.rb +1 -1
- data/rubocop-todo.yml +3 -0
- metadata +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb5f5a7169279f155b93bff5ba8e8810476d90e2
|
4
|
+
data.tar.gz: efbdcdb7bcec836942e4c9d128f8ecce42c02f78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fb9ddba737bd25fb13ec5626cab4ef932e8109adfc4ad87af995b583bc546da6c1a05e6d863133b8331854b7f1c74347d613f9aafc6e11adc3c7b6f4e9eea28
|
7
|
+
data.tar.gz: 6ad79e4f6b46c8ef912777f4a4ab8bdfbd1f9059a01146c565eb1f1e01ed953e00135377be748f7719639bc67cbd4547080c404aad6565035529419492f5e9e6
|
data/History.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
0.9.2 (2014-02-11)
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Update SequelRails::Railties::ControllerRuntime to be up-to-date with how
|
5
|
+
ActiveRecord 4.0.x do the DB time calculation. It should fix some
|
6
|
+
inconsistencies with the reported time in logs where View + DB time was
|
7
|
+
sometimes less than Total time.
|
8
|
+
|
1
9
|
0.9.1 (2013-12-31)
|
2
10
|
==================
|
3
11
|
|
@@ -9,17 +9,26 @@ module SequelRails
|
|
9
9
|
|
10
10
|
attr_internal :db_runtime
|
11
11
|
|
12
|
+
def process_action(action, *)
|
13
|
+
# We also need to reset the runtime before each action
|
14
|
+
# because of queries in middleware or in cases we are streaming
|
15
|
+
# and it won't be cleaned up by the method below.
|
16
|
+
::SequelRails::Railties::LogSubscriber.reset_runtime
|
17
|
+
super
|
18
|
+
end
|
19
|
+
|
12
20
|
def cleanup_view_runtime
|
13
21
|
db_rt_before_render = ::SequelRails::Railties::LogSubscriber.reset_runtime
|
22
|
+
self.db_runtime = (db_runtime || 0) + db_rt_before_render
|
14
23
|
runtime = super
|
15
24
|
db_rt_after_render = ::SequelRails::Railties::LogSubscriber.reset_runtime
|
16
|
-
self.db_runtime
|
25
|
+
self.db_runtime += db_rt_after_render
|
17
26
|
runtime - db_rt_after_render
|
18
27
|
end
|
19
28
|
|
20
29
|
def append_info_to_payload(payload)
|
21
30
|
super
|
22
|
-
payload[:db_runtime] = db_runtime
|
31
|
+
payload[:db_runtime] = (db_runtime || 0) + ::SequelRails::Railties::LogSubscriber.reset_runtime
|
23
32
|
end
|
24
33
|
|
25
34
|
module ClassMethods
|
data/lib/sequel_rails/version.rb
CHANGED
data/rubocop-todo.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brasten Sager (brasten)
|
@@ -9,152 +9,152 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: railties
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 3.2.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 3.2.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: actionpack
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 3.2.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 3.2.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: sequel
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '3.28'
|
63
|
-
- - <
|
63
|
+
- - "<"
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '5.0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '3.28'
|
73
|
-
- - <
|
73
|
+
- - "<"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '5.0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: combustion
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: generator_spec
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: rake
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.8.7
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 0.8.7
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: rspec
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '2.14'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '2.14'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: rspec-rails
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '2.14'
|
139
139
|
type: :development
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '2.14'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: rubocop
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
type: :development
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
description: Integrate Sequel with Rails (3.x and 4.x)
|
@@ -167,10 +167,10 @@ extra_rdoc_files:
|
|
167
167
|
- LICENSE
|
168
168
|
- README.md
|
169
169
|
files:
|
170
|
-
- .gitignore
|
171
|
-
- .rspec
|
172
|
-
- .rubocop.yml
|
173
|
-
- .travis.yml
|
170
|
+
- ".gitignore"
|
171
|
+
- ".rspec"
|
172
|
+
- ".rubocop.yml"
|
173
|
+
- ".travis.yml"
|
174
174
|
- Gemfile
|
175
175
|
- History.md
|
176
176
|
- LICENSE
|
@@ -243,22 +243,22 @@ licenses:
|
|
243
243
|
metadata: {}
|
244
244
|
post_install_message:
|
245
245
|
rdoc_options:
|
246
|
-
- --charset=UTF-8
|
246
|
+
- "--charset=UTF-8"
|
247
247
|
require_paths:
|
248
248
|
- lib
|
249
249
|
required_ruby_version: !ruby/object:Gem::Requirement
|
250
250
|
requirements:
|
251
|
-
- -
|
251
|
+
- - ">="
|
252
252
|
- !ruby/object:Gem::Version
|
253
253
|
version: '0'
|
254
254
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
255
|
requirements:
|
256
|
-
- -
|
256
|
+
- - ">="
|
257
257
|
- !ruby/object:Gem::Version
|
258
258
|
version: '0'
|
259
259
|
requirements: []
|
260
260
|
rubyforge_project:
|
261
|
-
rubygems_version: 2.
|
261
|
+
rubygems_version: 2.2.0
|
262
262
|
signing_key:
|
263
263
|
specification_version: 4
|
264
264
|
summary: Use Sequel with Rails (3.x and 4.x)
|