introspection 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f259fa19d4b6711e52536a5f115c0be851c5cdb2
4
+ data.tar.gz: 1831f6c813603c22831a088eacbcd4674373b97a
5
+ SHA512:
6
+ metadata.gz: 37d604c54683afe81f1298804de18ddef9681105b0c5332931c3cb778036c05f9078322b50ff23a8e91ace7475efbbf9fee26d84b0c27e2f97e9046aa98e6c46
7
+ data.tar.gz: 8fab710f02cf3d3bf757d58ac1d3cc163e50eca029d6b0b85203af1056d2577468c9d5df14f8048f632d173eb53d61b514ada637147fea6635fbc19f32511e5b
data/.travis.yml CHANGED
@@ -1,3 +1,5 @@
1
1
  rvm:
2
2
  - 1.8.7
3
- - 1.9.2
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
data/COPYING.txt ADDED
@@ -0,0 +1,21 @@
1
+ == Licence (MIT)
2
+
3
+ Copyright (c) 2011 James Mead
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.homepage = "http://jamesmead.org"
14
14
  s.summary = %q{Dynamic inspection of the hierarchy of method definitions on a Ruby object.}
15
15
  s.description = %q{}
16
+ s.license = "MIT"
16
17
 
17
18
  s.required_rubygems_version = ">= 1.3.6"
18
19
  s.rubyforge_project = "introspection"
@@ -26,4 +27,5 @@ Gem::Specification.new do |s|
26
27
  s.add_dependency "instantiator", "~> 0.0.3"
27
28
 
28
29
  s.add_development_dependency "rake"
30
+ s.add_development_dependency "blankslate"
29
31
  end
@@ -25,7 +25,11 @@ module Introspection
25
25
  end
26
26
 
27
27
  def local_receivers
28
- [__metaclass__] + __metaclass__.ancestors - superklass.__metaclass__.ancestors
28
+ receivers = []
29
+ receivers << __metaclass__ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
30
+ receivers += __metaclass__.ancestors
31
+ receivers -= superklass.__metaclass__.ancestors
32
+ receivers
29
33
  end
30
34
 
31
35
  def receivers
@@ -1,3 +1,3 @@
1
1
  module Introspection
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,81 +1,81 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: introspection
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 2
10
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - James Mead
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-08-12 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2014-01-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: metaclass
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 29
30
- segments:
31
- - 0
32
- - 0
33
- - 1
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
34
19
  version: 0.0.1
35
20
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: instantiator
39
21
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 25
46
- segments:
47
- - 0
48
- - 0
49
- - 3
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: instantiator
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
50
33
  version: 0.0.3
51
34
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.3
41
+ - !ruby/object:Gem::Dependency
54
42
  name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
55
49
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: blankslate
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
59
  - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
65
62
  type: :development
66
- version_requirements: *id003
67
- description: ""
68
- email:
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: ''
70
+ email:
69
71
  - james@floehopper.org
70
72
  executables: []
71
-
72
73
  extensions: []
73
-
74
74
  extra_rdoc_files: []
75
-
76
- files:
77
- - .gitignore
78
- - .travis.yml
75
+ files:
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
+ - COPYING.txt
79
79
  - Gemfile
80
80
  - README.md
81
81
  - Rakefile
@@ -97,43 +97,31 @@ files:
97
97
  - test/module_snapshot_test.rb
98
98
  - test/snapshot_test.rb
99
99
  - test/test_helper.rb
100
- has_rdoc: true
101
100
  homepage: http://jamesmead.org
102
- licenses: []
103
-
101
+ licenses:
102
+ - MIT
103
+ metadata: {}
104
104
  post_install_message:
105
105
  rdoc_options: []
106
-
107
- require_paths:
106
+ require_paths:
108
107
  - lib
109
- required_ruby_version: !ruby/object:Gem::Requirement
110
- none: false
111
- requirements:
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
112
110
  - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 3
115
- segments:
116
- - 0
117
- version: "0"
118
- required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
121
115
  - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 23
124
- segments:
125
- - 1
126
- - 3
127
- - 6
116
+ - !ruby/object:Gem::Version
128
117
  version: 1.3.6
129
118
  requirements: []
130
-
131
119
  rubyforge_project: introspection
132
- rubygems_version: 1.6.2
120
+ rubygems_version: 2.2.0
133
121
  signing_key:
134
- specification_version: 3
122
+ specification_version: 4
135
123
  summary: Dynamic inspection of the hierarchy of method definitions on a Ruby object.
136
- test_files:
124
+ test_files:
137
125
  - test/class_snapshot_test.rb
138
126
  - test/instance_snapshot_test.rb
139
127
  - test/module_snapshot_test.rb