instantiator 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,5 +18,4 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_dependency("blankslate")
21
- s.add_dependency("backports")
22
21
  end
@@ -1,5 +1,5 @@
1
1
  require "instantiator/version"
2
- require "backports"
2
+ require "instantiator/symbol"
3
3
  require "blankslate"
4
4
 
5
5
  module Instantiator
@@ -0,0 +1,6 @@
1
+ class Symbol
2
+ # Standard in ruby 1.8.7+. See official documentation[http://ruby-doc.org/core-1.9/classes/Symbol.html]
3
+ def to_proc
4
+ Proc.new { |*args| args.shift.__send__(self, *args) }
5
+ end unless :to_proc.respond_to?(:to_proc)
6
+ end
@@ -1,3 +1,3 @@
1
1
  module Instantiator
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instantiator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Mead
@@ -32,20 +32,6 @@ dependencies:
32
32
  version: "0"
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: backports
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
47
- type: :runtime
48
- version_requirements: *id002
49
35
  description:
50
36
  email:
51
37
  - james@floehopper.org
@@ -62,6 +48,7 @@ files:
62
48
  - Rakefile
63
49
  - instantiator.gemspec
64
50
  - lib/instantiator.rb
51
+ - lib/instantiator/symbol.rb
65
52
  - lib/instantiator/version.rb
66
53
  - test/instantiator_test.rb
67
54
  - test/method_invocation_sink_test.rb