sublime_text_formatter 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8daecede46920dc64714d6be66d35f9d0e46a436
4
+ data.tar.gz: 36575df35a7ecac17480d0be24fc0926e0b27b48
5
+ SHA512:
6
+ metadata.gz: 642ceabca35d74011c53a8e0166b91439de28ca3527447c72bce5a4ab674f23cc85b02bd869679a2c0753f67deadb4be6166a2345d83c61f673a0ae91bc33a5d
7
+ data.tar.gz: 83a9097d8bc5af6b1dd25c8cbd5c3ddbe6402a6cd6ed8a1d6fdfde44281514c9a6faaa6d5734367a609c1f90cc75951b8d1f9abb9131fb41954aaaa5510de448
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
4
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format SublimeTextFormatter
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in sublime_text_formatter.gemspec
4
+ gemspec
5
+
6
+ gem 'rake'
data/LICENSE ADDED
@@ -0,0 +1,3 @@
1
+ Copyright 2013 Eduard Litau.
2
+ You may use this work without restrictions, as long as this notice is included.
3
+ The work is provided "as is" without warranty of any kind, neither express nor implied.
data/README.textile ADDED
@@ -0,0 +1,18 @@
1
+ h1. SublimeTextFormatter
2
+
3
+ Format backtrace as sublime links in the form subl://open=file:///path/to/file:42
4
+
5
+ h2. Installation
6
+
7
+ Put 'sublime_text_formatter' it in your @Gemfile@ and run your specs like this from now on:
8
+
9
+ bc. $ rspec --format SublimeTextFormatter
10
+
11
+ If you want to use SublimeTextFormatter as your default formatter, simply put the options in your @.rspec@ file:
12
+
13
+ bc. --format SublimeTextFormatter
14
+ --color
15
+
16
+ h2. Contributing
17
+
18
+ Found an issue? Have a great idea? Want to help? Great! Create an issue "issue":http://github.com/elitau/sublime_text_formatter/issues for it, or even better; fork the project and fix the problem yourself. Pull requests are always welcome. :)
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'rake'
2
+
3
+ task :default => :spec
4
+
5
+ require 'rspec/core/rake_task'
6
+ RSpec::Core::RakeTask.new
@@ -0,0 +1,14 @@
1
+ require 'rspec/core/formatters/base_text_formatter'
2
+
3
+ class SublimeTextFormatter < RSpec::Core::Formatters::BaseTextFormatter
4
+ def dump_backtrace(example)
5
+ format_backtrace(example.execution_result[:exception].backtrace, example).each do |backtrace_info|
6
+ output.puts detail_color("#{long_padding}# #{sublime backtrace_info}")
7
+ end
8
+ end
9
+
10
+ def sublime(backtrace_info)
11
+ app_path = File.join(File.dirname(__FILE__))
12
+ "subl://open?url=file://" + backtrace_info.sub("./spec", app_path)
13
+ end
14
+ end
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "sublime_text_formatter"
5
+ s.version = '0.0.1'
6
+ s.platform = Gem::Platform::RUBY
7
+ s.authors = ["Eduard Litau"]
8
+ s.email = ["eduard.litau@gmail.com"]
9
+ s.homepage = "https://github.com/elitau/sublime_text_formatter"
10
+ s.summary = %q{the SublimeText links RSpec formatter}
11
+ s.description = %q{the SublimeText links RSpec formatter}
12
+
13
+ s.rubyforge_project = "sublime_text_formatter"
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+
20
+ s.add_dependency('rspec', ["~> 2.0"])
21
+ end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sublime_text_formatter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Eduard Litau
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ description: the SublimeText links RSpec formatter
28
+ email:
29
+ - eduard.litau@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - .gitignore
35
+ - .rspec
36
+ - Gemfile
37
+ - LICENSE
38
+ - README.textile
39
+ - Rakefile
40
+ - lib/sublime_text_formatter.rb
41
+ - sublime_text_formatter.gemspec
42
+ homepage: https://github.com/elitau/sublime_text_formatter
43
+ licenses: []
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project: sublime_text_formatter
61
+ rubygems_version: 2.0.3
62
+ signing_key:
63
+ specification_version: 4
64
+ summary: the SublimeText links RSpec formatter
65
+ test_files: []
66
+ has_rdoc: