db_meta 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bb752e54793946b7bcd874d25439d559f4d400e7f5c2b30da635513ba05c2c4
4
- data.tar.gz: fea95107d75504c47ec7df81aad4ea87c7eb919d99263e4acaf36fafedbaf197
3
+ metadata.gz: 15ba346b7adfd29486405934fbcf9a9b3166c84ce31d2f315373612433deae0b
4
+ data.tar.gz: 9b0a4b086abe2ccd1ee5a7408dca92295541970b1967a4785e079b6507c1faa6
5
5
  SHA512:
6
- metadata.gz: 7282a69c1008c4eecb4975edd5d7699e0c5a2e8246ef70a8b98ad8b0bb424a0807657df876f20d406a53e106e3bc42ac2db492b7530c4d5edc22ef23f22341e4
7
- data.tar.gz: 66e54866798847a1de4f46741ececf9cf797fdaecb9ee46ce2fd65b92452c1e019e1f9c9858c21eb0515ad733d3bd2282240cfc69d3d54206f020d2ca9b80ff6
6
+ metadata.gz: 57113101c36ddee6999ad2d50c3492fc06436813c77d5a772c5253b721c7c006e781ffc655e4f9a884918645c0b9bc7eaad67773ce1bea9bd77b282200f2ae46
7
+ data.tar.gz: 13392b5c053f2b07039693c6421f6f2eab05490ad5e6b3a1117e000901959894131513f037d5751fceb16620488dfd48349fe2c020620d6334007cd4e1d3ed4a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.6.0] - 2021-02-23
2
+
3
+ ### Changed
4
+ - Escape "'" and ";" for clob multiline strings (supports empty lines)
5
+
1
6
  ## [0.5.0] - 2021-02-22
2
7
 
3
8
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- db_meta (0.5.0)
4
+ db_meta (0.6.0)
5
5
  ruby-oci8 (~> 2.2)
6
6
 
7
7
  GEM
@@ -74,7 +74,7 @@ module DbMeta
74
74
  m = []
75
75
  d = value.read
76
76
  d.chars.each_slice(2000).map(&:join).each do |item|
77
- m << "to_clob('#{item}')"
77
+ m << "to_clob('#{item.gsub("'", "''").gsub(";", "' || CHR(59) || '")}')"
78
78
  end
79
79
  m.join(" || ")
80
80
  when /date/i
@@ -1,3 +1,3 @@
1
1
  module DbMeta
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_meta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler