poly_delegate 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/poly_delegate/call.rb +1 -2
- data/lib/poly_delegate/force_bind.rb +26 -0
- data/lib/poly_delegate/version.rb +1 -1
- data/poly_delegate.gemspec +0 -1
- metadata +5 -6
- data/ext/mkrf_conf.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29bfa0d49ff2c5ace7d9ecbe736fbe866aab40cc
|
4
|
+
data.tar.gz: c1817804b7ce31a576441ce4453540440ad31846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278834ca22b954b089afb170b82388446e66be5aac5e24bbdbae625e44e7684e339aab18c2cca9e01abf872b9b06a489063f821e099deae4546f92050d69b635
|
7
|
+
data.tar.gz: f9a5dcc1d2ea4bbf8eefccc09a949c50f57ad23ff031be235bbbed8a76bb57855aaaf97692883c774ca2780b6fcf1ae3fa5f4364a2206d58b9236425b830464f
|
data/lib/poly_delegate/call.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) 2016 Nathan Currier
|
3
|
+
|
4
|
+
# This Source Code Form is subject to the terms of the Mozilla Public
|
5
|
+
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
6
|
+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
7
|
+
|
8
|
+
begin
|
9
|
+
case RUBY_ENGINE
|
10
|
+
when 'ruby'
|
11
|
+
require 'force_bind'
|
12
|
+
when 'rbx'
|
13
|
+
require 'force_bind_rbx'
|
14
|
+
end
|
15
|
+
rescue LoadError
|
16
|
+
ensure
|
17
|
+
unless UnboundMethod.method_defined?(:force_bind)
|
18
|
+
fail <<-EOF
|
19
|
+
UnboundMethod#force_bind is not defined.
|
20
|
+
|
21
|
+
Implement UnboundMethod#force_bind or install a gem that implements it
|
22
|
+
before continuing. Known implementations are in the 'force_bind' and
|
23
|
+
'force_bind_rbx' gems for MRI and Rubinius respectively.
|
24
|
+
EOF
|
25
|
+
end
|
26
|
+
end
|
data/poly_delegate.gemspec
CHANGED
metadata
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poly_delegate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Currier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ''
|
14
14
|
email:
|
15
15
|
- nathan.currier@gmail.com
|
16
16
|
executables: []
|
17
|
-
extensions:
|
18
|
-
- ext/mkrf_conf.rb
|
17
|
+
extensions: []
|
19
18
|
extra_rdoc_files: []
|
20
19
|
files:
|
21
20
|
- ".gitignore"
|
@@ -25,7 +24,6 @@ files:
|
|
25
24
|
- Gemfile
|
26
25
|
- LICENSE.md
|
27
26
|
- Rakefile
|
28
|
-
- ext/mkrf_conf.rb
|
29
27
|
- gemfiles/Gemfile.ci
|
30
28
|
- gemfiles/Gemfile.doc
|
31
29
|
- lib/poly_delegate.rb
|
@@ -33,6 +31,7 @@ files:
|
|
33
31
|
- lib/poly_delegate/classic_access.rb
|
34
32
|
- lib/poly_delegate/delegated.rb
|
35
33
|
- lib/poly_delegate/delegator.rb
|
34
|
+
- lib/poly_delegate/force_bind.rb
|
36
35
|
- lib/poly_delegate/method.rb
|
37
36
|
- lib/poly_delegate/version.rb
|
38
37
|
- poly_delegate.gemspec
|
@@ -61,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
60
|
version: '0'
|
62
61
|
requirements: []
|
63
62
|
rubyforge_project:
|
64
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.4.8
|
65
64
|
signing_key:
|
66
65
|
specification_version: 4
|
67
66
|
summary: ''
|
data/ext/mkrf_conf.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Copyright (c) 2016 Nathan Currier
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
require 'rubygems/command'
|
6
|
-
require 'rubygems/dependency_installer'
|
7
|
-
|
8
|
-
begin
|
9
|
-
Gem::Command.build_args = ARGV
|
10
|
-
rescue NoMethodError
|
11
|
-
end
|
12
|
-
|
13
|
-
installer = Gem::DependencyInstaller.new
|
14
|
-
|
15
|
-
case RUBY_ENGINE
|
16
|
-
when 'rbx'
|
17
|
-
installer.install 'force_bind_rbx'
|
18
|
-
when 'ruby'
|
19
|
-
installer.install 'force_bind'
|
20
|
-
end
|
21
|
-
|
22
|
-
File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w') do |f|
|
23
|
-
f.write('task :default')
|
24
|
-
end
|