ultrafast 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/ultrafast/model.rb +7 -6
- data/lib/ultrafast/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b45c9177b0e8cc8b7aae0bad56095ce8afda1872
|
4
|
+
data.tar.gz: 28f51cc9103e68abe49f4921c8633d96817c67b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c04298b45d67e5fcc4ca4f71bdfa3e496e50b2297aebe1f5ec1b58c3b6348d8d223d1ed6a6942eb385e806ba0265e6c76d53328cbce1166637134d723ee7dff2
|
7
|
+
data.tar.gz: fedbc75456fa5ee78bc960d47aa7912eac98d5c81428f0bb2442f3e1b5db2a2955e60392a094b7b15ee6ab740d428603b45d96e9049a38170588abf073dc9539
|
data/lib/ultrafast/model.rb
CHANGED
@@ -7,8 +7,8 @@ module Ultrafast
|
|
7
7
|
|
8
8
|
redis_connection.set(store_key, content)
|
9
9
|
self.new(attributes)
|
10
|
-
rescue
|
11
|
-
error_message
|
10
|
+
rescue => exception
|
11
|
+
error_message(exception)
|
12
12
|
self.create(*attributes)
|
13
13
|
end
|
14
14
|
|
@@ -28,10 +28,11 @@ module Ultrafast
|
|
28
28
|
Ultrafast::CurrentApplication.name
|
29
29
|
end
|
30
30
|
|
31
|
-
def error_message
|
32
|
-
Rails.logger.
|
33
|
-
Rails.logger.
|
34
|
-
Rails.logger.
|
31
|
+
def error_message(exception)
|
32
|
+
Rails.logger.error exception.backtrace
|
33
|
+
Rails.logger.error '-----------------------------------------------------'
|
34
|
+
Rails.logger.error '[WARN Error] on try use fastcreate, running fallback'
|
35
|
+
Rails.logger.error '-----------------------------------------------------'
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|
data/lib/ultrafast/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultrafast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dayvson Lima
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -123,7 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.6.11
|
127
128
|
signing_key:
|
128
129
|
specification_version: 4
|
129
130
|
summary: optimize atomic inserts using the redis as buffer
|