gorilla-patch 0.0.17 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gorilla-patch/string.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1799b8afd962ff6a0c728d82a7a5c4ed2e3c8d8d
|
4
|
+
data.tar.gz: 9c81b76b45d0f9654037e5eba32a25bb4d523177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c84bf4c05d3dc0c416691c77ce43c9f67e113feb7feb3dac6ef07db01582c5b993df117d342a147add1d23ff80db3159126d5b7b0e7572909f1dad765376430c
|
7
|
+
data.tar.gz: 923fe369a7e965ee26d5b0c9aa9866f5315366f1a09c972e379224966bd0b1be6f9cb4678249da58142d04695d5c86c2804e953c2efd65ec60a11516869042a7
|
data/lib/gorilla-patch/string.rb
CHANGED
@@ -20,5 +20,19 @@ module GorillaPatch
|
|
20
20
|
.join('::')
|
21
21
|
end
|
22
22
|
end
|
23
|
+
|
24
|
+
def self.from_sequel
|
25
|
+
@from_sequel ||= Module.new do
|
26
|
+
refine String do
|
27
|
+
require 'sequel'
|
28
|
+
|
29
|
+
Sequel::Inflections.private_instance_methods.each do |method|
|
30
|
+
define_method method do
|
31
|
+
Sequel::Inflections.instance_method(method).bind(self).call(self)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
23
37
|
end
|
24
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gorilla-patch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Refine Ruby Core classes.
|
14
14
|
email: alex.wayfer@gmail.com
|