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 +4 -4
- data/lib/subl/command.rb +6 -6
- data/lib/subl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee104da97b6a5e63f02c25b189abde14e79f3b14
|
4
|
+
data.tar.gz: 3303248b1036d6e0a1876a1cd4630986b61f49a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f7a9e31b19508d9c078197c7d8e02f8fd1495e0760f05456281a27e059e8271855e31f2f57c10a46a1e1f36a2382bae6f5e450cd45bba4cf19c32813db11b38
|
7
|
+
data.tar.gz: 9febc1ac9f3c5f3e84cefd25e3c44b5f31b549018e20dd15edd4da49c1ed4139366ee55ae9598490535f672df22f809944cf07d3c3ce6a8ffeb7dfa3b8d6d793
|
data/lib/subl/command.rb
CHANGED
@@ -20,16 +20,16 @@ module Subl
|
|
20
20
|
|
21
21
|
def path
|
22
22
|
case candidate
|
23
|
-
when String
|
24
|
-
when Symbol
|
25
|
-
when Class, Module
|
26
|
-
when Method
|
27
|
-
when Regexp
|
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}$/)
|
data/lib/subl/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|