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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0c7710846e38b3dafc711bebe3e0ae5e5c8e05c
4
- data.tar.gz: f7d7ba50bb03814af7a91858cee351a926cc5d21
3
+ metadata.gz: f5011de31b6ce61e041b63288abddf8af8edd5b0
4
+ data.tar.gz: 760e5629648eedf4c90e38a76b5a5143c7f90ed6
5
5
  SHA512:
6
- metadata.gz: a2f52082d72f785d55d9c8c76eedd4215291728a1c7bf7b2faffd524e3cb026b78a159d106db17f943af5dc003e452cc797c5d43514d55a9562952cb72fb194b
7
- data.tar.gz: f8eb698ac26988d1480fc7ec0f772f4804326b1bf079ed39f83e600a4e106f452c41e2b0c7635bb1d5e0e652696952625a4866d63f23b10cd91596592fb5bff8
6
+ metadata.gz: 86d472e6c067e68cc4d105397276282cfa212758339012e6d346a165b429988096ef9fd952997f2e369f473989edf40b15644348f3abfedece1848ef5b602d8a
7
+ data.tar.gz: de31578552fc8d887b6bce71197c7e3393cd9c30f65ed30da999b331c4c66fb190ac878a009af740b36c7b7b3cb3e53907b266f65c8607c80d95151231ee0935
@@ -27,23 +27,34 @@ hdrs = ->{
27
27
  res
28
28
  }
29
29
 
30
- if RUBY_PATCHLEVEL < 0 && !Debugger::RubyCoreSource::REVISION_MAP[RUBY_REVISION]
31
- puts "RubyCoreSource does not have support for your ruby revision, trying a workaround..."
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
- else
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)
@@ -1,3 +1,3 @@
1
1
  module IsA
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-13 00:00:00.000000000 Z
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.11
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