subl 0.1.1 → 0.1.2

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: 4ecb50de04626795261924f898604fade14e3641
4
- data.tar.gz: 511920c22c8ebc25657183256c4b34f9b9e810d8
3
+ metadata.gz: ee104da97b6a5e63f02c25b189abde14e79f3b14
4
+ data.tar.gz: 3303248b1036d6e0a1876a1cd4630986b61f49a6
5
5
  SHA512:
6
- metadata.gz: 3600c272b3b43a61ac1e7d1bb84b5994e23b7f4feb37bee44d7d75ba93ea75d7b576d737942c99e1ecd046e0d666fa812df1c2dfbbd7e2b9c284b3dc9ea8d0fc
7
- data.tar.gz: da93eacdb572456c4e142c53bab9f1a0b39a577b7675f572ab778aeb874fc60a97f0f7ef7a6299998955b89c7cac8080c33cb69d5220a4cb65e27f5ca58475a1
6
+ metadata.gz: 9f7a9e31b19508d9c078197c7d8e02f8fd1495e0760f05456281a27e059e8271855e31f2f57c10a46a1e1f36a2382bae6f5e450cd45bba4cf19c32813db11b38
7
+ data.tar.gz: 9febc1ac9f3c5f3e84cefd25e3c44b5f31b549018e20dd15edd4da49c1ed4139366ee55ae9598490535f672df22f809944cf07d3c3ce6a8ffeb7dfa3b8d6d793
@@ -20,16 +20,16 @@ module Subl
20
20
 
21
21
  def path
22
22
  case candidate
23
- when String then candidate
24
- when Symbol then resolve_symbol(candidate)
25
- when Class, Module then resolve_class(candidate)
26
- when Method then resolve_method(candidate)
27
- when Regexp then resolve_regexp(candidate)
23
+ when ::String then candidate
24
+ when ::Symbol then resolve_symbol(candidate)
25
+ when ::Class, ::Module then resolve_class(candidate)
26
+ when ::Method, ::Proc, ::UnboundMethod then resolve_method(candidate)
27
+ when ::Regexp then resolve_regexp(candidate)
28
28
  end
29
29
  end
30
30
 
31
31
  def resolve_symbol(name)
32
- if original_binding.class.in?([Object, NilClass])
32
+ if original_binding.class.in?([::Object, ::NilClass])
33
33
  resolve_gem(name)
34
34
  else
35
35
  resolve_regexp(/^#{name}$/)
@@ -1,3 +1,3 @@
1
1
  module Subl
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Opper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-16 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler