sequel_caller_location 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/sequel/extensions/caller_location.rb +2 -2
- data/sequel_caller_location.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d4c83ec83098b203f9e3a96ecef6034d14eacfc
|
4
|
+
data.tar.gz: f9be052da4c31fd79792445f627a54dd0d8b7600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee3140dbaefc8120fc5cffa992b110ee0e78dd45cc827dfb55216afecee1d151886fb42e37fbceaffadbacb4e865e93ee6622899f5d863ad5867a944c1d9cddd
|
7
|
+
data.tar.gz: e2969bfd1d3a6b5b4373b86eeb2f2b3ff9827b6bccbd76eee27e99a38b7f56960e9d02d2da33a59b0bb3a6a2de88a326f6b1ecb761119b7b31ccda7f685da09f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
|
4
|
+
sequel_caller_location (0.1.1)
|
5
5
|
sequel (~> 4.39, >= 4.39.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -49,7 +49,7 @@ PLATFORMS
|
|
49
49
|
DEPENDENCIES
|
50
50
|
rspec (~> 3.5, >= 3.5.0)
|
51
51
|
rubocop (~> 0.43, >= 0.43.0)
|
52
|
-
|
52
|
+
sequel_caller_location!
|
53
53
|
simplecov (~> 0.12.0)
|
54
54
|
|
55
55
|
BUNDLED WITH
|
@@ -6,8 +6,8 @@ module Sequel
|
|
6
6
|
%w(select insert update delete).each do |type|
|
7
7
|
define_method(:"#{type}_sql") do |*a|
|
8
8
|
sql = super(*a)
|
9
|
-
if (backtrace = caller_locations(1).find { |c| c.path !~ /gems/ })
|
10
|
-
sql
|
9
|
+
if !sql.frozen? && (backtrace = caller_locations(1).find { |c| c.path !~ /gems/ })
|
10
|
+
sql << format_sql_comment(backtrace)
|
11
11
|
end
|
12
12
|
sql
|
13
13
|
end
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = 'sequel_caller_location'
|
15
15
|
gem.require_paths = ['lib']
|
16
|
-
gem.version = '0.
|
16
|
+
gem.version = '0.2.0'
|
17
17
|
|
18
18
|
gem.add_runtime_dependency 'sequel', '~> 4.39', '>= 4.39.0'
|
19
19
|
|