Updated gems (also to support current pg gem).
This commit is contained in:
parent
7ce18e86f6
commit
577c8b7995
2 changed files with 27 additions and 22 deletions
43
Gemfile.lock
43
Gemfile.lock
|
@ -30,14 +30,14 @@ GEM
|
||||||
activemodel (= 4.2.9)
|
activemodel (= 4.2.9)
|
||||||
activesupport (= 4.2.9)
|
activesupport (= 4.2.9)
|
||||||
arel (~> 6.0)
|
arel (~> 6.0)
|
||||||
activerecord-nulldb-adapter (0.3.6)
|
activerecord-nulldb-adapter (0.3.7)
|
||||||
activerecord (>= 2.0.0)
|
activerecord (>= 2.0.0)
|
||||||
activerecord-session_store (1.0.0)
|
activerecord-session_store (1.1.0)
|
||||||
actionpack (>= 4.0, < 5.1)
|
actionpack (>= 4.0, < 5.2)
|
||||||
activerecord (>= 4.0, < 5.1)
|
activerecord (>= 4.0, < 5.2)
|
||||||
multi_json (~> 1.11, >= 1.11.2)
|
multi_json (~> 1.11, >= 1.11.2)
|
||||||
rack (>= 1.5.2, < 3)
|
rack (>= 1.5.2, < 3)
|
||||||
railties (>= 4.0, < 5.1)
|
railties (>= 4.0, < 5.2)
|
||||||
activesupport (4.2.9)
|
activesupport (4.2.9)
|
||||||
i18n (~> 0.7)
|
i18n (~> 0.7)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
|
@ -49,9 +49,9 @@ GEM
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
ffi-compiler (~> 0.1)
|
ffi-compiler (~> 0.1)
|
||||||
ast (2.3.0)
|
ast (2.3.0)
|
||||||
autoprefixer-rails (6.4.1.1)
|
autoprefixer-rails (7.1.2.4)
|
||||||
execjs
|
execjs
|
||||||
biz (1.6.0)
|
biz (1.7.0)
|
||||||
clavius (~> 1.0)
|
clavius (~> 1.0)
|
||||||
tzinfo
|
tzinfo
|
||||||
browser (2.2.0)
|
browser (2.2.0)
|
||||||
|
@ -69,12 +69,12 @@ GEM
|
||||||
coffee-script (2.4.1)
|
coffee-script (2.4.1)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.10.0)
|
coffee-script-source (1.12.2)
|
||||||
coffeelint (1.14.0)
|
coffeelint (1.14.0)
|
||||||
coffee-script
|
coffee-script
|
||||||
execjs
|
execjs
|
||||||
json
|
json
|
||||||
composite_primary_keys (8.1.5)
|
composite_primary_keys (8.1.6)
|
||||||
activerecord (~> 4.2.0)
|
activerecord (~> 4.2.0)
|
||||||
concurrent-ruby (1.0.5)
|
concurrent-ruby (1.0.5)
|
||||||
coveralls (0.8.16)
|
coveralls (0.8.16)
|
||||||
|
@ -86,10 +86,10 @@ GEM
|
||||||
crack (0.4.3)
|
crack (0.4.3)
|
||||||
safe_yaml (~> 1.0.0)
|
safe_yaml (~> 1.0.0)
|
||||||
daemons (1.2.4)
|
daemons (1.2.4)
|
||||||
delayed_job (4.1.2)
|
delayed_job (4.1.3)
|
||||||
activesupport (>= 3.0, < 5.1)
|
activesupport (>= 3.0, < 5.2)
|
||||||
delayed_job_active_record (4.1.1)
|
delayed_job_active_record (4.1.2)
|
||||||
activerecord (>= 3.0, < 5.1)
|
activerecord (>= 3.0, < 5.2)
|
||||||
delayed_job (>= 3.0, < 5)
|
delayed_job (>= 3.0, < 5)
|
||||||
diff-lcs (1.2.5)
|
diff-lcs (1.2.5)
|
||||||
diffy (3.1.0)
|
diffy (3.1.0)
|
||||||
|
@ -176,7 +176,7 @@ GEM
|
||||||
addressable
|
addressable
|
||||||
faraday
|
faraday
|
||||||
multi_json (>= 1.3.0)
|
multi_json (>= 1.3.0)
|
||||||
libv8 (3.16.14.15)
|
libv8 (3.16.14.19)
|
||||||
listen (3.1.5)
|
listen (3.1.5)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
|
@ -250,7 +250,7 @@ GEM
|
||||||
omniauth-oauth (~> 1.1)
|
omniauth-oauth (~> 1.1)
|
||||||
parser (2.3.1.2)
|
parser (2.3.1.2)
|
||||||
ast (~> 2.2)
|
ast (~> 2.2)
|
||||||
pg (0.18.4)
|
pg (0.20.0)
|
||||||
pluginator (1.3.0)
|
pluginator (1.3.0)
|
||||||
power_assert (0.3.1)
|
power_assert (0.3.1)
|
||||||
powerpack (0.1.1)
|
powerpack (0.1.1)
|
||||||
|
@ -285,14 +285,15 @@ GEM
|
||||||
rails-deprecated_sanitizer (>= 1.0.1)
|
rails-deprecated_sanitizer (>= 1.0.1)
|
||||||
rails-html-sanitizer (1.0.3)
|
rails-html-sanitizer (1.0.3)
|
||||||
loofah (~> 2.0)
|
loofah (~> 2.0)
|
||||||
rails-observers (0.1.2)
|
rails-observers (0.1.5)
|
||||||
activemodel (~> 4.0)
|
activemodel (>= 4.0)
|
||||||
railties (4.2.9)
|
railties (4.2.9)
|
||||||
actionpack (= 4.2.9)
|
actionpack (= 4.2.9)
|
||||||
activesupport (= 4.2.9)
|
activesupport (= 4.2.9)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
rainbow (2.1.0)
|
rainbow (2.2.2)
|
||||||
|
rake
|
||||||
raindrops (0.17.0)
|
raindrops (0.17.0)
|
||||||
rake (12.0.0)
|
rake (12.0.0)
|
||||||
rb-fsevent (0.9.7)
|
rb-fsevent (0.9.7)
|
||||||
|
@ -374,8 +375,8 @@ GEM
|
||||||
tins (~> 1.0)
|
tins (~> 1.0)
|
||||||
test-unit (3.2.1)
|
test-unit (3.2.1)
|
||||||
power_assert
|
power_assert
|
||||||
therubyracer (0.12.2)
|
therubyracer (0.12.3)
|
||||||
libv8 (~> 3.16.14.0)
|
libv8 (~> 3.16.14.15)
|
||||||
ref
|
ref
|
||||||
thor (0.19.4)
|
thor (0.19.4)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
|
@ -403,7 +404,7 @@ GEM
|
||||||
unicorn (5.2.0)
|
unicorn (5.2.0)
|
||||||
kgio (~> 2.6)
|
kgio (~> 2.6)
|
||||||
raindrops (~> 0.7)
|
raindrops (~> 0.7)
|
||||||
valid_email2 (1.2.17)
|
valid_email2 (2.0.0)
|
||||||
activemodel (>= 3.2)
|
activemodel (>= 3.2)
|
||||||
mail (~> 2.5)
|
mail (~> 2.5)
|
||||||
webmock (2.3.2)
|
webmock (2.3.2)
|
||||||
|
|
|
@ -23,8 +23,12 @@ module ApplicationModel::ChecksAttributeValuesAndLength
|
||||||
column = columns[name]
|
column = columns[name]
|
||||||
next if !column
|
next if !column
|
||||||
|
|
||||||
|
if column.type == :binary
|
||||||
|
self[name].force_encoding('BINARY')
|
||||||
|
end
|
||||||
|
|
||||||
# strip null byte chars (postgresql will complain about it)
|
# strip null byte chars (postgresql will complain about it)
|
||||||
if column.sql_type == 'text'
|
if column.type == :text
|
||||||
if Rails.application.config.db_null_byte == false
|
if Rails.application.config.db_null_byte == false
|
||||||
self[name].delete!("\u0000")
|
self[name].delete!("\u0000")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue