gorilla-patch 0.0.17 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gorilla-patch/string.rb +14 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b0b12c39a1af4f5ee11e9145330af57bd412991
4
- data.tar.gz: 81cb1b2f8052a5d0f7ac82086b88681ac4541c0e
3
+ metadata.gz: 1799b8afd962ff6a0c728d82a7a5c4ed2e3c8d8d
4
+ data.tar.gz: 9c81b76b45d0f9654037e5eba32a25bb4d523177
5
5
  SHA512:
6
- metadata.gz: 5a817b237f13748ba31de42c665a6de3bfb08d45d4f9971f7162de168069d96a9af1f0985a785ac2cee0af746913be866422ec90952f98f19a6c73fa134efd37
7
- data.tar.gz: 9f3e1706f771036b70d9fb7f07af42479a41b85931654a423b58e3204e9f34688ef993863e1486071d5ea41c0612e4aca035317f534f72bb1907214b26094019
6
+ metadata.gz: c84bf4c05d3dc0c416691c77ce43c9f67e113feb7feb3dac6ef07db01582c5b993df117d342a147add1d23ff80db3159126d5b7b0e7572909f1dad765376430c
7
+ data.tar.gz: 923fe369a7e965ee26d5b0c9aa9866f5315366f1a09c972e379224966bd0b1be6f9cb4678249da58142d04695d5c86c2804e953c2efd65ec60a11516869042a7
@@ -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.17
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-09-12 00:00:00.000000000 Z
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