my-sugar 0.0.3 → 0.0.4

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.
@@ -1,3 +1,3 @@
1
1
  module MySugar
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/my-sugar.rb CHANGED
@@ -11,7 +11,10 @@ end
11
11
 
12
12
  include MySugar::Stuff # ah..
13
13
 
14
- require 'active_support/core_ext/module/delegation' # oh..
14
+ # require 'active_support/core_ext/module/delegation' # oh..
15
+ def require_delegation
16
+ require 'active_support/core_ext/module/delegation'
17
+ end
15
18
 
16
19
  # monkeys out of the zoo!
17
20
  class Module
data/my-sugar.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency 'active_support' # not using forwardable
20
+ # gem.add_dependency 'active_support' # not using forwardable
21
21
 
22
22
  gem.add_development_dependency 'rspec'
23
23
  end
data/spec/all_spec.rb CHANGED
@@ -20,10 +20,11 @@ describe MySugar do
20
20
  Any.new.test.should == 'here'
21
21
  end
22
22
 
23
- specify 'delegation' do
24
- module Nighbour; def self.test!; 'here!' end end
25
- class Other; delegate :test!, to: :Nighbour end
26
- Other.new.test!.should == 'here!'
27
- end
23
+ # specify 'delegation [using active_support]' do
24
+ # require_delegation
25
+ # module Nighbour; def self.test!; 'here!' end end
26
+ # class Other; delegate :test!, to: :Nighbour end
27
+ # Other.new.test!.should == 'here!'
28
+ # end
28
29
 
29
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my-sugar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,22 +11,6 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: active_support
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: rspec
32
16
  requirement: !ruby/object:Gem::Requirement