ruby_patch 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 97508a666bf245496358080fe54090b0cd032558
4
+ data.tar.gz: 897e1bc4d54e06d718d926d9540cefa1b6dd3b55
5
+ SHA512:
6
+ metadata.gz: bfe17eac6287fce41927b0c9c1baa8322c5fc97fb94a0422081761a94e286768dff0fb2381e4cae2c97c9f6ea7a3efcf1df3a097e11ed852048567b8ecf1eaa6
7
+ data.tar.gz: 8521ba085ba7c5726de8f75fb08fb180dc445445c40fc6a9090bd8373c4f312f543ca220b6ce0a93a233937899ccbd51f78fdffb6413dc5483b465c621afce84
@@ -1,6 +1,6 @@
1
1
  class Object
2
2
  new_methods :exception?, :deep_clone
3
- new_private_methods :parse_caller, :called_from, :__DIR__, :__METHOD__, :check_type
3
+ new_private_methods :parse_caller, :called_from, :__DIR__, :check_type
4
4
 
5
5
  def exception?()
6
6
  self.class.posterity_of?(Exception)
@@ -37,10 +37,6 @@ class Object
37
37
  File.expand_path(dir)
38
38
  end
39
39
 
40
- def __METHOD__()
41
- called_from[:method]
42
- end
43
-
44
40
  # Check type of var.
45
41
  # @param [Symbol, String, Class, Array<Symbol, String, Class, Array<...>>]
46
42
  # @return [var]
@@ -1,3 +1,3 @@
1
1
  module RubyPatch
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -9,6 +9,6 @@ Gem::Specification.new do |s|
9
9
  s.add_development_dependency 'simplecov', '~> 0.6'
10
10
  s.author = 'kshramt'
11
11
  s.description = "Monkey patches used by kshramt's libraries."
12
- s.required_ruby_version = '~> 1.9'
12
+ s.required_ruby_version = '>= 1.9'
13
13
  s.test_files.concat `git ls-files spec`.split.select{|path| path =~ /_spec\.rb/}
14
14
  end
@@ -21,16 +21,6 @@ describe Object do
21
21
  end
22
22
  end
23
23
 
24
- describe '#__METHOD__' do
25
- it do
26
- def __method__spec()
27
- __METHOD__
28
- end
29
-
30
- __method__spec.should == '__method__spec'
31
- end
32
- end
33
-
34
24
  describe '#deep_clone' do
35
25
  it do
36
26
  @a = [1]
metadata CHANGED
@@ -1,38 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
5
- prerelease:
4
+ version: 2.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - kshramt
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-09 00:00:00.000000000 Z
11
+ date: 2013-04-29 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
- requirement: &2152555840 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.10'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *2152555840
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '2.10'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: simplecov
27
- requirement: &2152555320 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0.6'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *2152555320
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0.6'
36
41
  description: Monkey patches used by kshramt's libraries.
37
42
  email:
38
43
  executables: []
@@ -60,27 +65,26 @@ files:
60
65
  - spec/spec_helper.rb
61
66
  homepage:
62
67
  licenses: []
68
+ metadata: {}
63
69
  post_install_message:
64
70
  rdoc_options: []
65
71
  require_paths:
66
72
  - lib
67
73
  required_ruby_version: !ruby/object:Gem::Requirement
68
- none: false
69
74
  requirements:
70
- - - ~>
75
+ - - '>='
71
76
  - !ruby/object:Gem::Version
72
77
  version: '1.9'
73
78
  required_rubygems_version: !ruby/object:Gem::Requirement
74
- none: false
75
79
  requirements:
76
- - - ! '>='
80
+ - - '>='
77
81
  - !ruby/object:Gem::Version
78
82
  version: '0'
79
83
  requirements: []
80
84
  rubyforge_project:
81
- rubygems_version: 1.8.15
85
+ rubygems_version: 2.0.0
82
86
  signing_key:
83
- specification_version: 3
87
+ specification_version: 4
84
88
  summary: Monky patches for ruby.
85
89
  test_files:
86
90
  - spec/ruby_patch/auto_load_spec.rb
@@ -89,4 +93,3 @@ test_files:
89
93
  - spec/ruby_patch/core_ext/object_spec.rb
90
94
  - spec/ruby_patch/core_ext/string_spec.rb
91
95
  - spec/ruby_patch/core_ext/time_spec.rb
92
- has_rdoc: