sublime_text_formatter 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sublime_text_formatter.rb +11 -2
- data/sublime_text_formatter.gemspec +5 -6
- metadata +10 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f905789d4d50ec8252f3e5ec82089b5fd1033ce8
|
|
4
|
+
data.tar.gz: 82bde9b09d97194648230f829a6639be605b1a14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1abc05c1a8ad1dff5252b11fc1484e95d2af3314106418960362ea3b3ffcaf47a3b3e38de33923075715437137e0f718805cd4325a6e09952059f620bac11654
|
|
7
|
+
data.tar.gz: 86a74e2f1d740532df269cf9caf12f3fdc3b8fd1c5abcea65e3a1de04b33f8defe281c14784fc9df7c324f96f671d905ec939101760aeb3e72c794336e649c30
|
|
@@ -8,7 +8,16 @@ class SublimeTextFormatter < RSpec::Core::Formatters::BaseTextFormatter
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def sublime(backtrace_info)
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
file_path = extract_path_from_backtrace(backtrace_info)
|
|
12
|
+
path = if file_path.starts_with?('/')
|
|
13
|
+
file_path
|
|
14
|
+
else
|
|
15
|
+
File.join(File.expand_path(ENV['SUBLIME_PROJECT_DIR']), file_path)
|
|
16
|
+
end
|
|
17
|
+
"subl://open?url=file://" + path
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def extract_path_from_backtrace(backtrace_info)
|
|
21
|
+
backtrace_info[/.*\:\d+/]
|
|
13
22
|
end
|
|
14
23
|
end
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "sublime_text_formatter"
|
|
5
|
-
s.version = '0.0
|
|
5
|
+
s.version = '0.1.0'
|
|
6
6
|
s.platform = Gem::Platform::RUBY
|
|
7
7
|
s.authors = ["Eduard Litau"]
|
|
8
|
-
s.email = ["eduard.litau@gmail.com"]
|
|
8
|
+
s.email = ["eduard.litau+sublime_text_formatter@gmail.com"]
|
|
9
9
|
s.homepage = "https://github.com/elitau/sublime_text_formatter"
|
|
10
|
-
s.summary = %q{
|
|
11
|
-
s.description = %q{
|
|
12
|
-
|
|
13
|
-
s.rubyforge_project = "sublime_text_formatter"
|
|
10
|
+
s.summary = %q{SublimeText links RSpec formatter}
|
|
11
|
+
s.description = %q{RSpec results formats file paths as links that can be opened by Sublime Text}
|
|
12
|
+
s.license = "MIT"
|
|
14
13
|
|
|
15
14
|
s.files = `git ls-files`.split("\n")
|
|
16
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sublime_text_formatter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eduard Litau
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -24,9 +24,10 @@ dependencies:
|
|
|
24
24
|
- - ~>
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '2.0'
|
|
27
|
-
description:
|
|
27
|
+
description: RSpec results formats file paths as links that can be opened by Sublime
|
|
28
|
+
Text
|
|
28
29
|
email:
|
|
29
|
-
- eduard.litau@gmail.com
|
|
30
|
+
- eduard.litau+sublime_text_formatter@gmail.com
|
|
30
31
|
executables: []
|
|
31
32
|
extensions: []
|
|
32
33
|
extra_rdoc_files: []
|
|
@@ -40,7 +41,8 @@ files:
|
|
|
40
41
|
- lib/sublime_text_formatter.rb
|
|
41
42
|
- sublime_text_formatter.gemspec
|
|
42
43
|
homepage: https://github.com/elitau/sublime_text_formatter
|
|
43
|
-
licenses:
|
|
44
|
+
licenses:
|
|
45
|
+
- MIT
|
|
44
46
|
metadata: {}
|
|
45
47
|
post_install_message:
|
|
46
48
|
rdoc_options: []
|
|
@@ -57,10 +59,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
59
|
- !ruby/object:Gem::Version
|
|
58
60
|
version: '0'
|
|
59
61
|
requirements: []
|
|
60
|
-
rubyforge_project:
|
|
61
|
-
rubygems_version: 2.
|
|
62
|
+
rubyforge_project:
|
|
63
|
+
rubygems_version: 2.1.11
|
|
62
64
|
signing_key:
|
|
63
65
|
specification_version: 4
|
|
64
|
-
summary:
|
|
66
|
+
summary: SublimeText links RSpec formatter
|
|
65
67
|
test_files: []
|
|
66
68
|
has_rdoc:
|