rspec-lenny 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Rakefile +6 -0
- data/lib/rspec/core/formatters/lenny_formatter.rb +27 -0
- data/lib/rspec/core/formatters_decorator.rb +28 -0
- data/lib/rspec/lenny.rb +8 -0
- data/lib/rspec/lenny/version.rb +5 -0
- metadata +70 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YjFmZTZlZmQ0NzE3MTU3NjRhNGE2YWJjZTkyN2RmNWM3MDI3YzkzOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NzhlZjI2MDZlNjQ0OTMyZDg4NzI4OTJmNzQyMTc3NzI3OGU5OWY4MQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
N2VlODRkZjhjMWI5NDRhMWYyMjczM2VjMzVhM2Q5Mjc0Zjk3NzU3MDIxOTdh
|
10
|
+
MTU2OGQ2ZTM0MTBmOGE0ZTg0YmE5ZGZmMzAzNzZmZTU5Njc2NTc2YjRjNjk3
|
11
|
+
MjgzNTNmNDk1NjQ5MTkwYjk1MTA4MzY0NzVmOGVlNDE4OTE3YmE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjY0YTQzYTZiYjQxM2ZiZWFjNjdiYzZiNzNlMzM1YzczYjQzNGM0MzRjYzk1
|
14
|
+
YTNlZTY1M2QxZjBkYzcxZDA5ODU4Y2RkZDllNDUzMmVkZGZkOTM0ZTYxNzMw
|
15
|
+
N2UxMWRiODZiNWNkOGI2MTQwZGJiMGVkZmJmMjE5ZDVjMjUwNTc=
|
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
RSpec::Support.require_rspec_core "formatters/base_text_formatter"
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Core
|
5
|
+
module Formatters
|
6
|
+
class LennyFormatter < BaseTextFormatter
|
7
|
+
Formatters.register self, :example_passed, :example_pending, :example_failed, :start_dump
|
8
|
+
|
9
|
+
def example_passed(_notification)
|
10
|
+
output.print ConsoleCodes.wrap('( ͡° ͜ʖ ͡°)', :success)
|
11
|
+
end
|
12
|
+
|
13
|
+
def example_pending(_notification)
|
14
|
+
output.print ConsoleCodes.wrap('( ‾ʖ̫‾)', :pending)
|
15
|
+
end
|
16
|
+
|
17
|
+
def example_failed(_notification)
|
18
|
+
output.print ConsoleCodes.wrap('(╯°□°)╯︵ ┻━┻', :failure)
|
19
|
+
end
|
20
|
+
|
21
|
+
def start_dump(_notification)
|
22
|
+
output.puts
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
RSpec::Core::Formatters.module_eval do
|
2
|
+
autoload :LennyFormatter, 'rspec/core/formatters/lenny_formatter'
|
3
|
+
end
|
4
|
+
|
5
|
+
RSpec::Core::Formatters::Loader.class_eval do
|
6
|
+
def initialize(reporter)
|
7
|
+
@formatters = []
|
8
|
+
@reporter = reporter
|
9
|
+
self.default_formatter = 'lenny'
|
10
|
+
end
|
11
|
+
|
12
|
+
def built_in_formatter(key)
|
13
|
+
case key.to_s
|
14
|
+
when 'd', 'doc', 'documentation'
|
15
|
+
RSpec::Core::Formatters::DocumentationFormatter
|
16
|
+
when 'h', 'html'
|
17
|
+
RSpec::Core::Formatters::HtmlFormatter
|
18
|
+
when 'p', 'progress'
|
19
|
+
RSpec::Core::Formatters::ProgressFormatter
|
20
|
+
when 'j', 'json'
|
21
|
+
RSpec::Core::Formatters::JsonFormatter
|
22
|
+
when 'bisect'
|
23
|
+
RSpec::Core::Formatters::BisectFormatter
|
24
|
+
when 'l', 'lenny'
|
25
|
+
RSpec::Core::Formatters::LennyFormatter
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/rspec/lenny.rb
ADDED
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rspec-lenny
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- tcain
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec-rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.2.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.2.1
|
33
|
+
description: A gem that changes the default rspec format to be slightly more interesting.
|
34
|
+
email:
|
35
|
+
- tdcain89@gmail.com
|
36
|
+
executables: []
|
37
|
+
extensions: []
|
38
|
+
extra_rdoc_files: []
|
39
|
+
files:
|
40
|
+
- Rakefile
|
41
|
+
- lib/rspec/core/formatters/lenny_formatter.rb
|
42
|
+
- lib/rspec/core/formatters_decorator.rb
|
43
|
+
- lib/rspec/lenny.rb
|
44
|
+
- lib/rspec/lenny/version.rb
|
45
|
+
homepage: http://www.github.com/tdcain89
|
46
|
+
licenses:
|
47
|
+
- MIT
|
48
|
+
metadata: {}
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options: []
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
requirements: []
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 2.4.1
|
66
|
+
signing_key:
|
67
|
+
specification_version: 4
|
68
|
+
summary: A gem that changes the default rspec format to be slightly more interesting.
|
69
|
+
test_files: []
|
70
|
+
has_rdoc:
|