fix 0.7.0 → 0.7.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: f2e3d9374047af40837927cff33a10ca67d1eb51
4
- data.tar.gz: d54ab179692cb0cd3727897da8cb96cf3e9f76a6
3
+ metadata.gz: 863a38a69f60ebe69ce196d25129f59804f34b34
4
+ data.tar.gz: 5407d7adad29320bd7aea6ff813bc594f0b5f9c1
5
5
  SHA512:
6
- metadata.gz: 67bdef20cb2fa465c2275daed9f3d8cb94c8ce74ad864c373fe6c6b395e6aa2afb11c5bcc83b0509382f1bebe12ce256276cb3099302f0c42a56f18480e9df74
7
- data.tar.gz: 01a40b4df6f2d7f7871f3b2ccd7456bc8f9c0b969c371827735676a23232617470443297ccf010b629518e81eb1eca7ccbb4aeb624af41fc499fb7862a966b8c
6
+ metadata.gz: e0043e4cb94dd1ff42112658242a1f8de439da164bade1d97d2e2777349069e84f9c80e1d05bb9bfc54d1b1714664f118e715147a0ee021e888dba11e6dcedf0
7
+ data.tar.gz: c6bd204ea3691b355a1103cfaeeeee6ae7945f0dbb6b9d4fbc043842d41d7955fc61567f30888a47a202f090bb8114fc7c4bc3e129458e8a484adf4e270d689c
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Build Status](https://travis-ci.org/fixrb/fix.svg?branch=master)][travis]
4
4
  [![Gem Version](https://badge.fury.io/rb/fix.svg)][gem]
5
5
  [![Inline docs](http://inch-ci.org/github/fixrb/fix.svg?branch=master)][inchpages]
6
+ [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
6
7
 
7
8
  > Specing framework for Ruby.
8
9
 
@@ -39,6 +40,10 @@ And then execute:
39
40
 
40
41
  $ bundle
41
42
 
43
+ ## Let's get started!
44
+
45
+ [![asciicast](https://asciinema.org/a/25963.png)](https://asciinema.org/a/25963)
46
+
42
47
  ## Philosophy
43
48
 
44
49
  ### Minimalist
@@ -51,7 +56,7 @@ While specs behave like **documents** which can be logic-less, their interpretat
51
56
 
52
57
  ### Complexity
53
58
 
54
- Monkey-patching, magic tricks and friends are not included. Instead, animated by **authentic** and **unmuted** Ruby objects, unambiguous, understandable and structured specs are encouraged.
59
+ Monkey-patching, [magic tricks and friends](http://blog.arkency.com/2013/06/are-we-abusing-at-exit/) are not included. Instead, animated by **authentic** and **unmuted** Ruby objects, unambiguous, understandable and structured specs are encouraged.
55
60
 
56
61
  ## Usage
57
62
 
@@ -85,7 +90,7 @@ require 'fix'
85
90
 
86
91
  Fix.describe @bird do
87
92
  on :swims do
88
- it { MUST Equal: 'Swoosh...' }
93
+ it { MUST Eql: 'Swoosh...' }
89
94
  end
90
95
 
91
96
  on :speaks do
@@ -93,7 +98,7 @@ Fix.describe @bird do
93
98
  end
94
99
 
95
100
  on :sings do
96
- it { MAY :Equal: '♪... ♫...' }
101
+ it { MAY Eql: '♪... ♫...' }
97
102
  end
98
103
  end
99
104
  ```
@@ -140,3 +145,4 @@ See `LICENSE.md` file.
140
145
  [gem]: https://rubygems.org/gems/fix
141
146
  [travis]: https://travis-ci.org/fixrb/fix
142
147
  [inchpages]: http://inch-ci.org/github/fixrb/fix/
148
+ [rubydoc]: http://rubydoc.info/gems/fix/frames
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -0,0 +1 @@
1
+ 8351459bf70306c8ef0bba5d415d74e5f1fa7cfd73b70ba4ac0508989b04f70ce24e2923db1723ddd1fdad38ec2e6ac481df5a4af0adc55dc29e62ae19ed84cb
@@ -20,23 +20,35 @@ module Fix
20
20
  #
21
21
  # @return [String] The report in plain text.
22
22
  def to_s
23
- "\n" \
24
- "\n" \
25
- "#{results_banner.join("\n")}\n" \
26
- "#{total_time_banner}\n" \
27
- "#{statistics_banner}\n"
23
+ maybe_results_banner + total_time_banner + statistics_banner
28
24
  end
29
25
 
30
26
  private
31
27
 
32
28
  # @private
33
29
  def total_time_banner
34
- "Ran #{test.results.length} tests in #{test.total_time} seconds"
30
+ "Ran #{test.results.length} tests in #{test.total_time} seconds\n"
31
+ end
32
+
33
+ # @private
34
+ def alerts
35
+ test.results.reject { |r| r.to_char == '.' }
36
+ end
37
+
38
+ # @private
39
+ def maybe_results_banner
40
+ if alerts.any?
41
+ "\n" \
42
+ "\n" \
43
+ "#{results_banner.join("\n")}\n"
44
+ else
45
+ ''
46
+ end
35
47
  end
36
48
 
37
49
  # @private
38
50
  def results_banner
39
- test.results.reject { |r| r.to_char == '.' }.map.with_index(1) do |r, i|
51
+ alerts.map.with_index(1) do |r, i|
40
52
  "#{i}. #{r.message}\n" + maybe_backtrace(r)
41
53
  end
42
54
  end
@@ -55,7 +67,7 @@ module Fix
55
67
  "#{test.statistics.fetch(:pass_percent)}% compliant - " \
56
68
  "#{test.statistics.fetch(:total_infos)} infos, " \
57
69
  "#{test.statistics.fetch(:total_failures)} failures, " \
58
- "#{test.statistics.fetch(:total_errors)} errors"
70
+ "#{test.statistics.fetch(:total_errors)} errors\n"
59
71
  end
60
72
  end
61
73
  end
@@ -19,8 +19,6 @@ module Fix
19
19
 
20
20
  @results = g.results
21
21
  @total_time = Time.now - start_time
22
-
23
- puts
24
22
  end
25
23
 
26
24
  # @!attribute [r] results
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -30,7 +30,7 @@ cert_chain:
30
30
  dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
31
  0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
32
  -----END CERTIFICATE-----
33
- date: 2015-09-02 00:00:00.000000000 Z
33
+ date: 2015-09-07 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: spectus
@@ -136,6 +136,7 @@ files:
136
136
  - bin/console
137
137
  - bin/setup
138
138
  - certs/gem-fixrb-public_cert.pem
139
+ - checksum/fix-0.7.0.gem.sha512
139
140
  - fix.gemspec
140
141
  - lib/fix.rb
141
142
  - lib/fix/helpers/it_helper.rb
metadata.gz.sig CHANGED
Binary file