dumb_delegator 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # DumbDelegator
2
2
 
3
3
  [![Build Status](https://secure.travis-ci.org/highgroove/dumb_delegator.png)](http://travis-ci.org/highgroove/dumb_delegator)
4
+ [![Dependency Status](https://gemnasium.com/highgroove/dumb_delegator.png)](https://gemnasium.com/highgroove/dumb_delegator)
4
5
 
5
6
  Ruby provides the `delegate` standard library. However, we found that it is
6
7
  not appropriate for many use cases that require nearly every call to be
@@ -1,3 +1,4 @@
1
+ require "set"
1
2
  require "dumb_delegator/version"
2
3
 
3
4
  class DumbDelegator < ::BasicObject
@@ -11,8 +12,9 @@ class DumbDelegator < ::BasicObject
11
12
  end
12
13
  include kernel
13
14
 
14
- NON_DELEGATED_METHODS = [:equal?, :__id__, :__send__, :dup, :clone, :__getobj__, :__setobj__,
15
- :marshal_dump, :marshal_load, :respond_to?].freeze
15
+ NON_DELEGATED_METHODS = ::Set.new([:equal?, :__id__, :__send__, :dup, :clone, :__getobj__,
16
+ :__setobj__, :marshal_dump, :marshal_load,
17
+ :respond_to?]).freeze
16
18
 
17
19
  def initialize(target)
18
20
  __setobj__(target)
@@ -1,3 +1,3 @@
1
1
  class DumbDelegator < ::BasicObject
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumb_delegator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  segments:
94
94
  - 0
95
- hash: -3943974630074694994
95
+ hash: 2175975043620941750
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  segments:
103
103
  - 0
104
- hash: -3943974630074694994
104
+ hash: 2175975043620941750
105
105
  requirements: []
106
106
  rubyforge_project:
107
107
  rubygems_version: 1.8.24