spec_durr 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 585e76e15f2a24273e04a448688a601a3fa48bc3
4
- data.tar.gz: 7235503175a9c689eb4fb457c231f9b544a306f2
3
+ metadata.gz: e88dd7c1a8eb351409ed1ae262b2d19959e2cc92
4
+ data.tar.gz: 67779083f595bb7905d4c58b46a6c400502b5913
5
5
  SHA512:
6
- metadata.gz: 9dcfcc718a53062b56e801e570027707eeca84a765e0934e80c327285dd4213ec3a0944f95517b658e17e7da9eb33843a74b7eee9c03b420e45ed0452eb4b306
7
- data.tar.gz: 1d33115777f786f3e2968f8288218fd3944389c3d2ec6802fbf21a5df2266a3c82bfbe16d1feec581d4168960ca55c1b36bc5b52223989b0ab2683ac4c9dab74
6
+ metadata.gz: 0dd9b6aa39e4b83a5a87524ad74b523ec74a6c4da8df74ff177212331941c953d84a09d317663f6ff1314db4a618f4d8f157bb0c42bc0f425935bce9eb35cd27
7
+ data.tar.gz: ff48d7b570c4abc4eac2e7c93f066cfd1c2243308bb4e59391fdd77bc927234e8be7e01a711e77ed95d8c5fb4ce5a9cd7ff59fda3885aa798ff95fe806103267
@@ -11,6 +11,9 @@ if ARGV.empty?
11
11
  exit(1)
12
12
  end
13
13
 
14
+ spec_count = 0
15
+ pending_count = 0
16
+
14
17
  ARGV.each do |file|
15
18
  level = 0
16
19
  puts
@@ -23,8 +26,10 @@ ARGV.each do |file|
23
26
  type, description = *match.captures
24
27
  color = case type
25
28
  when 'it'
29
+ spec_count += 1
26
30
  COLORS[:green]
27
31
  when 'pending'
32
+ pending_count += 1
28
33
  COLORS[:yellow]
29
34
  else # describe, context
30
35
  COLORS[:none]
@@ -36,3 +41,10 @@ ARGV.each do |file|
36
41
  end
37
42
  end
38
43
  end
44
+
45
+ if pending_count > 0
46
+ total_count = spec_count + pending_count
47
+ puts
48
+ puts "#{pending_count} pending of #{total_count} (#{(spec_count/total_count.to_f * 100).floor}% complete)"
49
+ puts
50
+ end
@@ -1,3 +1,3 @@
1
1
  module SpecDurr
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_durr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Woody Peterson