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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 875bf5496c715e62b4f0f76b65499f1260644b35
4
- data.tar.gz: ce07d07794311ffbc2ffc1b5e4005cb6bb5d1926
3
+ metadata.gz: 942c5dd49c4b92ad9485749bf4f938cac7861060
4
+ data.tar.gz: 27989fe798f2a93dd0145fefc039e5cee369c638
5
5
  SHA512:
6
- metadata.gz: d801d14c89e931ca7aba418246ca3deef9c3589ff519a0c0602bc430c793ac55ab79260dfaaf137aa2b41aa541b15758ad52db7cb288fb6a4fbf324852a8e9f7
7
- data.tar.gz: 8a48d5e94f6d0c413485a80c88142c4d0630d08949015b9dc060a2595a2da0c3f7336d119948353a02dcf1e87154f32cf105983e67d4352865605e45c50cd29f
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/party/parrot/formatter`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
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 `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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/[USERNAME]/party-parrot-formatter.
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 [MIT License](http://opensource.org/licenses/MIT).
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
- @frames ||= Dir['./data/txt/*.txt'].map do |path|
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
@@ -1,3 +1,3 @@
1
1
  module PartyParrot
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: party-parrot-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaroslaw Rodak