libruby 0.1.0 → 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/lib/libruby.rb +1 -1
- data/lib/libruby/{fileutils.rb → file_utils.rb} +0 -0
- data/lib/libruby/misc_utils.rb +14 -0
- data/lib/libruby/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 755d1e69e34bb94400270ebb2cf93333371cc286
|
4
|
+
data.tar.gz: 22d2ce6045f79be70076b42e4e83df37f8e9fd0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fca9845a6435b0de77ed06404267ee2d2fd3b8677d37d56740aa492ec621ca4f396606224c8f9cfb2ce23d37200d2e1c504693a91fc89e65889bed5421c9bca
|
7
|
+
data.tar.gz: 2568e2c0f33d81b9908aa6677e92195fa1880a7822e173ddddeb705f53d8901ea2c7aa062585a435ad7c5f53aba2cdbe85b2333ec432be7b81974df253168143
|
data/lib/libruby.rb
CHANGED
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
module Libruby
|
3
|
+
class MiscUtils
|
4
|
+
def self.rescue_mysql2_error(e)
|
5
|
+
if e.message =~ /Incorrect string value:/
|
6
|
+
# utf8mb4にすればいいのだ…。とりあえずそのばしのぎ。
|
7
|
+
puts e.message[0, 100]
|
8
|
+
else
|
9
|
+
puts e.message
|
10
|
+
puts e.backtrace
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/libruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- src
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -71,7 +71,8 @@ files:
|
|
71
71
|
- bin/setup
|
72
72
|
- exe/libruby
|
73
73
|
- lib/libruby.rb
|
74
|
-
- lib/libruby/
|
74
|
+
- lib/libruby/file_utils.rb
|
75
|
+
- lib/libruby/misc_utils.rb
|
75
76
|
- lib/libruby/version.rb
|
76
77
|
- libruby.gemspec
|
77
78
|
- test.sh
|