spring_onion 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -2
- data/lib/spring_onion/config.rb +2 -2
- data/lib/spring_onion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adf8950ce1f2d7c9c7d7c0d41d3472a833d37a046b9aa31848257a879c261c38
|
4
|
+
data.tar.gz: 23f8d10722ac30ce2a7c0c01236001ecde43c31ec47c81ad2fe0225495282252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4508747cc4ba4b0f4b2bea885b14877e6f7128afad83d0731cbe87b4160159acf13f39e8872d41c9c49328df80e92026900cde9280f8979de03d979a1d7d168e
|
7
|
+
data.tar.gz: 1a6634398984d1c7d317ed9685f9df6beca9c1377d564f90c70904aa646c90ef7d9b80586b79ff65d73253b327d1b711fdd7b7639eee10087ba4c2aa35a9d969
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -28,12 +28,11 @@ Or install it yourself as:
|
|
28
28
|
#!/usr/bin/env ruby
|
29
29
|
require 'active_record'
|
30
30
|
require 'spring_onion'
|
31
|
-
require 'logger'
|
32
31
|
|
33
32
|
ActiveRecord::Base.establish_connection(
|
34
33
|
adapter: 'mysql2',
|
35
34
|
username: 'root',
|
36
|
-
database: 'employees'
|
35
|
+
database: 'employees'
|
37
36
|
)
|
38
37
|
|
39
38
|
SpringOnion.enabled = true # or `SPRING_ONION_ENABLED=1`
|
data/lib/spring_onion/config.rb
CHANGED
@@ -28,13 +28,13 @@ module SpringOnion
|
|
28
28
|
@enabled = (/\A(1|true)\z/i =~ ENV['SPRING_ONION_ENABLED'])
|
29
29
|
|
30
30
|
@sql_filter_re = ENV['SPRING_ONION_SQL_FILTER_RE'].yield_self do |re|
|
31
|
-
re ? Regexp.new(re) : //
|
31
|
+
re ? Regexp.new(re, Regexp::IGNORECASE) : //
|
32
32
|
end
|
33
33
|
|
34
34
|
@ignore_sql_filter_re = Regexp.union(
|
35
35
|
[/\binformation_schema\b/].tap do |ary|
|
36
36
|
re = ENV['SPRING_ONION_IGNORE_SQL_FILTER_RE']
|
37
|
-
ary << Regexp.new(re) if re
|
37
|
+
ary << Regexp.new(re, Regexp::IGNORECASE) if re
|
38
38
|
end
|
39
39
|
)
|
40
40
|
|
data/lib/spring_onion/version.rb
CHANGED