is_a 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/is_a/extconf.rb +25 -14
- data/lib/is_a/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5011de31b6ce61e041b63288abddf8af8edd5b0
|
4
|
+
data.tar.gz: 760e5629648eedf4c90e38a76b5a5143c7f90ed6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d472e6c067e68cc4d105397276282cfa212758339012e6d346a165b429988096ef9fd952997f2e369f473989edf40b15644348f3abfedece1848ef5b602d8a
|
7
|
+
data.tar.gz: de31578552fc8d887b6bce71197c7e3393cd9c30f65ed30da999b331c4c66fb190ac878a009af740b36c7b7b3cb3e53907b266f65c8607c80d95151231ee0935
|
data/ext/is_a/extconf.rb
CHANGED
@@ -27,23 +27,34 @@ hdrs = ->{
|
|
27
27
|
res
|
28
28
|
}
|
29
29
|
|
30
|
-
|
31
|
-
|
30
|
+
module Debugger::RubyCoreSource
|
31
|
+
class NoSourceException < RuntimeError; end
|
32
|
+
# instead of aborting - throw an error
|
33
|
+
def self.no_source_abort *args
|
34
|
+
raise NoSourceException
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
begin
|
39
|
+
exit if Debugger::RubyCoreSource::create_makefile_with_core(hdrs, "is_a")
|
40
|
+
rescue Debugger::RubyCoreSource::NoSourceException
|
41
|
+
STDERR.print("RubyCoreSource does not have support for your ruby revision\n")
|
42
|
+
end
|
43
|
+
|
44
|
+
if ruby_include
|
45
|
+
puts "trying a workaround..."
|
32
46
|
with_cppflags("-I" + ruby_include) {
|
33
47
|
if hdrs.call
|
34
48
|
create_makefile('is_a')
|
35
|
-
|
36
|
-
STDERR.print("Makefile creation failed\n")
|
37
|
-
exit(1)
|
49
|
+
exit
|
38
50
|
end
|
39
51
|
}
|
40
|
-
else
|
41
|
-
if !Debugger::RubyCoreSource::create_makefile_with_core(hdrs, "is_a")
|
42
|
-
STDERR.print("Makefile creation failed\n")
|
43
|
-
STDERR.print("*************************************************************\n\n")
|
44
|
-
STDERR.print(" NOTE: If your headers were not found, try passing\n")
|
45
|
-
STDERR.print(" --with-ruby-include=PATH_TO_HEADERS \n\n")
|
46
|
-
STDERR.print("*************************************************************\n\n")
|
47
|
-
exit(1)
|
48
|
-
end
|
49
52
|
end
|
53
|
+
|
54
|
+
|
55
|
+
STDERR.print("Makefile creation failed\n")
|
56
|
+
STDERR.print("*************************************************************\n\n")
|
57
|
+
STDERR.print(" NOTE: If your headers were not found, try passing\n")
|
58
|
+
STDERR.print(" --with-ruby-include=PATH_TO_HEADERS \n\n")
|
59
|
+
STDERR.print("*************************************************************\n\n")
|
60
|
+
exit(1)
|
data/lib/is_a/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: is_a
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Fedoseyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debugger-ruby_core_source
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.1
|
94
|
+
rubygems_version: 2.2.0.rc.1
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Defines methods to introspect any ruby object more deeply
|