cadre 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/default_files/templates/rspec-config +5 -0
- data/lib/cadre/command-line.rb +4 -2
- data/lib/cadre/rspec/notify-on-complete-formatter.rb +1 -0
- data/lib/cadre/rspec/true-feelings-formatter.rb +15 -0
- data/lib/cadre/rspec.rb +2 -2
- metadata +6 -6
- data/lib/cadre/rspec/true-feelings.rb +0 -9
- /data/lib/cadre/rspec/{quickfix.rb → quickfix-formatter.rb} +0 -0
@@ -2,6 +2,11 @@ require 'cadre/rspec'
|
|
2
2
|
|
3
3
|
RSpec.configure do |config|
|
4
4
|
config.run_all_when_everything_filtered = true
|
5
|
+
if config.formatters.empty?
|
6
|
+
config.add_formatter(:progress)
|
7
|
+
#but do consider:
|
8
|
+
#config.add_formatter(Cadre::RSpec::TrueFeelingsFormatter)
|
9
|
+
end
|
5
10
|
config.add_formatter(Cadre::RSpec::NotifyOnCompleteFormatter)
|
6
11
|
config.add_formatter(Cadre::RSpec::QuickfixFormatter)
|
7
12
|
end
|
data/lib/cadre/command-line.rb
CHANGED
@@ -14,10 +14,12 @@ module Cadre
|
|
14
14
|
#{command_name} vim_plugin > ~/.vim/plugin/cadre.vim
|
15
15
|
#{command_name} rspec_config >> spec/spec_helper.rb
|
16
16
|
#{command_name} simplecov_config >> .simplecov
|
17
|
+
echo errors.err >> .gitignore
|
18
|
+
echo .cadre >> .gitignore
|
17
19
|
|
18
|
-
Yeah, that's
|
20
|
+
Yeah, that's five commands, and you have to do the redirects yourself,
|
19
21
|
but you can review the output before making it live, and put them
|
20
|
-
somewhere else if that's what you want.
|
22
|
+
somewhere else if that's what you want. (I'm considering a single command for all of it...)
|
21
23
|
|
22
24
|
Configuration (including tool config templates) is sourced from:
|
23
25
|
#{Valise.to_s("\n ")}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rspec/core/formatters/progress_formatter'
|
2
|
+
|
3
|
+
module Cadre::RSpec
|
4
|
+
class TrueFeelingsFormatter < RSpec::Core::Formatters::ProgressFormatter
|
5
|
+
def example_passed(example)
|
6
|
+
if @failed_examples.empty?
|
7
|
+
super
|
8
|
+
else
|
9
|
+
output.print fail_color("u")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Uuu = Cadre::RSpec::TrueFeelingsFormatter
|
data/lib/cadre/rspec.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
require 'cadre/rspec/notify-on-complete-formatter'
|
2
|
-
require 'cadre/rspec/quickfix'
|
3
|
-
require 'cadre/rspec/true-feelings'
|
2
|
+
require 'cadre/rspec/quickfix-formatter'
|
3
|
+
require 'cadre/rspec/true-feelings-formatter'
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: cadre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0
|
5
|
+
version: 0.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Judson Lester
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
prerelease: false
|
@@ -100,9 +100,9 @@ files:
|
|
100
100
|
- lib/cadre/libnotify/notifier.rb
|
101
101
|
- lib/cadre/growl/notifier.rb
|
102
102
|
- lib/cadre/rspec.rb
|
103
|
-
- lib/cadre/rspec/quickfix.rb
|
103
|
+
- lib/cadre/rspec/quickfix-formatter.rb
|
104
104
|
- lib/cadre/rspec/notify-on-complete-formatter.rb
|
105
|
-
- lib/cadre/rspec/true-feelings.rb
|
105
|
+
- lib/cadre/rspec/true-feelings-formatter.rb
|
106
106
|
- lib/cadre/config.rb
|
107
107
|
- lib/cadre/command-line.rb
|
108
108
|
- lib/cadre/valise.rb
|
@@ -120,7 +120,7 @@ rdoc_options:
|
|
120
120
|
- --main
|
121
121
|
- doc/README
|
122
122
|
- --title
|
123
|
-
- cadre-0.0
|
123
|
+
- cadre-0.1.0 Documentation
|
124
124
|
require_paths:
|
125
125
|
- lib/
|
126
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
segments:
|
131
131
|
- 0
|
132
|
-
hash: -
|
132
|
+
hash: -11582157
|
133
133
|
version: '0'
|
134
134
|
none: false
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
File without changes
|