party-parrot-formatter 0.1.0 → 0.1.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 +4 -4
- data/README.md +21 -8
- data/lib/party_parrot/formatters/rspec3/base.rb +2 -1
- data/lib/party_parrot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 942c5dd49c4b92ad9485749bf4f938cac7861060
|
4
|
+
data.tar.gz: 27989fe798f2a93dd0145fefc039e5cee369c638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4a1484338035ef061ee2135a610597a5a2a7be7eae8e9cb1c94c57706ad5ac97a175d5e94613283145c3f2c3addc7615a4f39d748e61a289ea30d02e4a66d42
|
7
|
+
data.tar.gz: 3eef9a7ba2267832f6b24ca4270700fb8de8f2170e4681be698e57ca63603d02fbe542a09c837b090abd615723a2d42911edfd92be45c8350b958830d97fa52d
|
data/README.md
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
# Party::Parrot::Formatter
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
PartyParrot RSpec3 results formatter. [All hail the party parrot!](http://cultofthepartyparrot.com/)
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem 'party-parrot-formatter'
|
10
|
+
gem 'party-parrot-formatter', group: [:test]
|
13
11
|
```
|
14
12
|
|
15
13
|
And then execute:
|
@@ -20,22 +18,37 @@ Or install it yourself as:
|
|
20
18
|
|
21
19
|
$ gem install party-parrot-formatter
|
22
20
|
|
21
|
+
|
22
|
+
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
To run rspec suite with this formatter use:
|
26
|
+
|
27
|
+
$ rspec spec -f PartyParrotFormatter
|
28
|
+
|
29
|
+
Or add it to `.rspec` file:
|
30
|
+
|
31
|
+
# PROJECT_ROOT/.rspec
|
32
|
+
--format PartyParrotFormatter
|
33
|
+
--color
|
34
|
+
|
26
35
|
|
27
36
|
## Development
|
28
37
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `
|
38
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rspec spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. You can also run `rspec demo.rb` to see example.
|
30
39
|
|
31
40
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
41
|
|
42
|
+
## Kudos
|
43
|
+
|
44
|
+
Hugely influenced by awesome gem [Nyan Cat Formatter](https://github.com/mattsears/nyan-cat-formatter) by Matt Sears.
|
45
|
+
|
33
46
|
## Contributing
|
34
47
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
48
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jadrol/party-parrot-formatter.
|
36
49
|
|
37
50
|
|
38
51
|
## License
|
39
52
|
|
40
|
-
The gem is available as open source under the terms of the [
|
53
|
+
The gem is available as open source under the terms of the [Beerware license](https://en.wikipedia.org/wiki/Beerware).
|
41
54
|
|
@@ -30,7 +30,8 @@ module PartyParrot
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def frames
|
33
|
-
|
33
|
+
# Handle gem file loading in application
|
34
|
+
@frames ||= Dir["#{File.expand_path('../../../../../', __FILE__)}/data/txt/*.txt"].map do |path|
|
34
35
|
frame = File.read(path).split("\n")
|
35
36
|
frame.map! { |line| line.size >= 50 ? line : line + (" " * (60 - line.size)) }.join("\n")
|
36
37
|
end
|
data/lib/party_parrot/version.rb
CHANGED