dumb_delegator 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cae66a8a74772ba193dd066ab5b030b6cc9ab526
4
- data.tar.gz: dfa72a06e4197d605dcd0dbb3d4865c92d9b2d61
3
+ metadata.gz: 8524fe928dd6b0408756da095f04ea57e1036e6f
4
+ data.tar.gz: a39869c5c1b01db9a97f8809619dd6774986e27d
5
5
  SHA512:
6
- metadata.gz: 8df3f3d465f33af6d63aa2f9444effa6dbcdbc22e8b1d7b6062030ba3ea5921618602e8bc6d69fcecd7b9fc53d45e0e5b691a95a8342dbb452ab5946fda4826f
7
- data.tar.gz: 93dd9e69cd72bd079f84070eba0f077c267f3432e0566b3d6135cb911a0142a0b858b15717edc4578db1d63dad13dc6be6dbaa11d9089fa75aeb3517ccff2a0f
6
+ metadata.gz: 82918496afa98bd4571110957ea147c93d23af57ba12d686e4fab24ad5e756e390a4815cf81ad95a3be64c0eed17b534bbe509e18086ac07a2033a17eafeb650
7
+ data.tar.gz: 086cec5a4ccd5e2d7450c892e3a42995cefa323ef6ffdcab7263b1637edf68c008b82e9bca2cc0ab9e6d3ce8dfa1a1dd3914aa2f565537a58ee526ca2d58cbe9
data/.gitignore CHANGED
@@ -10,9 +10,11 @@ _yardoc
10
10
  coverage
11
11
  doc/
12
12
  lib/bundler/man
13
+ bin
13
14
  pkg
14
15
  rdoc
15
16
  spec/reports
16
17
  test/tmp
17
18
  test/version_tmp
18
19
  tmp
20
+ tags
@@ -1,9 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
5
4
  - 2.0.0
6
- - 2.1.0
7
- - 2.1.1
5
+ - 2.1.4
8
6
  - jruby-19mode
7
+ - rbx-2
9
8
  - rbx
9
+ - rbx-2
10
+ addons:
11
+ code_climate:
12
+ repo_token: aa3e0e1258e480f3446dd626e825c0a93153fce83ee0cc2f007096546389c882
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in dumb_delegator.gemspec
4
4
  gemspec
5
+
6
+ gem 'codeclimate-test-reporter', :group => :test, :require => nil
@@ -11,13 +11,12 @@ Gem::Specification.new do |gem|
11
11
  gem.homepage = 'https://github.com/stevenharman/dumb_delegator'
12
12
 
13
13
  gem.files = `git ls-files`.split($\)
14
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
15
  gem.name = 'dumb_delegator'
17
16
  gem.require_paths = ['lib']
18
17
  gem.version = DumbDelegator::VERSION
19
18
 
20
- gem.add_development_dependency 'rspec', '~>2.14'
21
19
  gem.add_development_dependency 'pry'
22
- gem.add_development_dependency 'rake'
20
+ gem.add_development_dependency 'rake', '~> 10.0'
21
+ gem.add_development_dependency 'rspec', '~> 3.1'
23
22
  end
@@ -1,4 +1,3 @@
1
- require 'set'
2
1
  require 'dumb_delegator/version'
3
2
 
4
3
  class DumbDelegator < ::BasicObject
@@ -7,7 +6,7 @@ class DumbDelegator < ::BasicObject
7
6
  end
8
7
 
9
8
  kernel = ::Kernel.dup
10
- (kernel.instance_methods - [:dup, :clone, :respond_to?]).each do |method|
9
+ (kernel.instance_methods - [:dup, :clone, :respond_to?, :object_id]).each do |method|
11
10
  kernel.__send__ :undef_method, method
12
11
  end
13
12
  include kernel
@@ -1,3 +1,3 @@
1
1
  class DumbDelegator < ::BasicObject
2
- VERSION = '0.7.0'
2
+ VERSION = '0.8.0'
3
3
  end
@@ -115,7 +115,7 @@ describe DumbDelegator do
115
115
  describe '#respond_to?' do
116
116
  [:equal?, :__id__, :__send__, :dup, :clone, :__getobj__, :__setobj__, :marshal_dump, :marshal_load, :respond_to?].each do |method|
117
117
  it "responds to #{method}" do
118
- expect(dummy.respond_to?(method)).to be_true
118
+ expect(dummy.respond_to?(method)).to be true
119
119
  end
120
120
  end
121
121
 
@@ -123,7 +123,7 @@ describe DumbDelegator do
123
123
  subject(:dummy) { Class.new(DumbDelegator) { def foobar; end }.new([]) }
124
124
 
125
125
  it 'respond to methods defined on the subclass' do
126
- expect(dummy.respond_to?(:foobar)).to be_true
126
+ expect(dummy.respond_to?(:foobar)).to be true
127
127
  end
128
128
  end
129
129
  end
@@ -1,16 +1,12 @@
1
- # This file was generated by the `rspec --init` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # Require this file using `require 'spec_helper.rb'` to ensure that it is only
4
- # loaded once.
5
- #
6
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
1
+ if ENV['CODECLIMATE_REPO_TOKEN']
2
+ require 'codeclimate-test-reporter'
3
+ CodeClimate::TestReporter.start
4
+ end
7
5
 
8
6
  require File.expand_path('../lib/dumb_delegator', File.dirname(__FILE__))
9
-
10
7
  require 'pry'
11
8
 
12
9
  RSpec.configure do |config|
13
- config.treat_symbols_as_metadata_keys_with_true_values = true
14
10
  config.run_all_when_everything_filtered = true
15
11
  config.filter_run :focus
16
12
  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.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Lindeman
@@ -9,50 +9,50 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-17 00:00:00.000000000 Z
12
+ date: 2014-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rspec
15
+ name: pry
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '2.14'
20
+ version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '2.14'
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
- name: pry
29
+ name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: '10.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: '10.0'
42
42
  - !ruby/object:Gem::Dependency
43
- name: rake
43
+ name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '3.1'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '3.1'
56
56
  description: Delegator class that delegates ALL the things
57
57
  email:
58
58
  - alindeman@gmail.com
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.2.2
95
+ rubygems_version: 2.4.2
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Delegator and SimpleDelegator in Ruby's stdlib are somewhat useful, but they