coverfield 0.0.3 → 0.0.4

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: 596e4ca89a3515273d53c461a9a33cfb4cf07660
4
- data.tar.gz: 0d58d8fa87674ac7b0ea363ae32fe3c53cd08c0e
3
+ metadata.gz: c9769d1a0bdcb6d2f686f03b0fe60207779fc2e3
4
+ data.tar.gz: 41b064b0ea8701426554cd0326228cc4f8a9edc0
5
5
  SHA512:
6
- metadata.gz: 5058db947d48f2559abb0b9b6b86e4f91ca1d842e53b6b6b955e2a3f438f49416b3852d761aee03e17629e0763ecdc4e8cdb84611271ebd7c1e5486b86e5914e
7
- data.tar.gz: 885f2f7a1861f5400ade5b759d76a28a89f48f1e76b8ec5e1b9e58a454787d1dd3a3d5acba4cd0105719dc44b0668471ea976f8cd2d7e1cab28ef58a72fda7b8
6
+ metadata.gz: 9e27ac0765a91a7c474a1022107d951bc6f7362423fb9d80ab460ae78e6d6503ba249ec09f3309620a7f3b1b6d6d56f497004110b3624967efce9582885e7234
7
+ data.tar.gz: 0c09947fd5dfe20d34bcba1b9ee09500a58153c4ae1e43e6fe1cbda8ae99f14b3231cbaa48bb16f651c894d217aedc476bda6e593b4382f43ac2e172462f4efb
data/README.md CHANGED
@@ -65,13 +65,13 @@ Coverfield requires you to have a specific architecture of your RSpec Suite.
65
65
  1. All specs are located in `spec/`.
66
66
  2. Within `spec` all specs are placed in the same path as the file which is
67
67
  tested by the spec. For example the spec for the file
68
- `/lib/some/nice_code.rb` have to be placed in
69
- `/spec/lib/some/nice_code_spec.rb`. And the spec for the file
68
+ `/lib/some/nice_class.rb` have to be placed in
69
+ `/spec/lib/some/nice_class_spec.rb`. And the spec for the file
70
70
  `/app/models/post.rb` goes to `/spec/models/post.rb`
71
71
  [Why?](http://stackoverflow.com/questions/14180003/rspec-naming-conventions-for-files-and-directory-structure)
72
- 3. The first and outer `describe` call have to be built like that:
73
- `describe Some::NiceCode do` assuming, that `/lib/some/nice_code.rb` defines
74
- the class `Some::NiceCode`.
72
+ 3. The first `describe` call have to be built like that:
73
+ `describe Some::NiceClass do` assuming, that `/lib/some/nice_code.rb` defines
74
+ the class `Some::NiceClass`.
75
75
  [Why?](http://rspec.info/documentation/3.4/rspec-core/#Basic_Structure)
76
76
  4. All inner `describe` calls for the methods have to be built like that:
77
77
  `describe '#method_name' do`. The `#` is optional and may also be a `.`.
@@ -33,7 +33,7 @@ class Coverfield::SourceFile
33
33
  @coverage += 1
34
34
  else
35
35
  method_name = "#{cls.name}.#{method_name}".red
36
- @hints << "Missing test vor #{method_name} in #{test_file.relative_file_name.yellow}"
36
+ @hints << "Missing test for #{method_name} in #{test_file.relative_file_name.yellow}"
37
37
  end
38
38
  end
39
39
  end
@@ -1,5 +1,5 @@
1
1
  module Coverfield
2
- version = '0.0.3'
2
+ version = '0.0.4'
3
3
 
4
4
  def version.to_a
5
5
  split('.').map(&:to_i)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coverfield
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Klein