crude-mutant 0.5.3 → 0.5.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
  SHA256:
3
- metadata.gz: 48afe3ed22dad22ac49315038c73c7323a5c1804db9fbbdd50f1d3cf24aa86f3
4
- data.tar.gz: c71ad154397aea0a4fd7196b84036dd6d774b7ee34818556ed9638f6467f91ce
3
+ metadata.gz: 05b09a8c4ed5247bdab72147c7fdd912e2d3a9f8d732e2dddcc179f7138513f9
4
+ data.tar.gz: c6f6d8bc85f9ce982f595d106fdda7246481f85bb6b3e7ccc45a7a9038672ed8
5
5
  SHA512:
6
- metadata.gz: 551c35d3f62f8196fcbf9167555f50f4459e488f8f0dfea356f2f181e87c7bed4c207907ba652b21a5e106c2c51346b772e5817e6f942665ccad9911eef188ba
7
- data.tar.gz: 0f821b776740cf7cd37d57ddbdb2b6e97788c097549b1f14d88190f3f0cefb768a8a5b24bae531a56c63b6bddb3cb1f50b3b65ad0b3f2754d5a87bb0a6dd2640
6
+ metadata.gz: 0726eda365a0c85f9f2321c37fbccb6dbd81d973565f1dc17ffbdb505c9126ab1b6b55c1aecdf50b35fe8b8c3907722e1c4ac95461035d89ad36b7de767c4189
7
+ data.tar.gz: 7a929bfdf1bb4cb6d197b7958e6c44fe480942b3d051f1c752dad23861fe8e4b0497d710cf09fdc7c918423f6a5160907f3208e2ac6bfb2f88922436a52d6689
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crude-mutant (0.5.3)
4
+ crude-mutant (0.5.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/crude_mutant.rb CHANGED
@@ -18,14 +18,14 @@ module CrudeMutant
18
18
  class NeutralCaseError < StandardError; end
19
19
 
20
20
  class << self
21
- def start(file_path, test_command, section: 1, total_sections: 1, result_printer: :standard, &block)
21
+ def start(file_path, test_command, section: 0, total_sections: 1, result_printer: :standard, &block)
22
22
  printer_klass = result_printer == :json ? JsonResultPrinter : ResultPrinter
23
23
 
24
24
  start_time = Time.now.to_f
25
25
  file = FileLoader.load(file_path)
26
26
  num_lines_in_file = file.lines_in_file
27
27
  section_size = (num_lines_in_file.to_f / total_sections).ceil
28
- starting_line_number = (section - 1) * section_size - 1
28
+ starting_line_number = section * section_size - 1
29
29
  stopping_line_number = starting_line_number + section_size
30
30
 
31
31
  initial_success = Executor.call(test_command)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CrudeMutant
4
- VERSION = "0.5.3"
4
+ VERSION = "0.5.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crude-mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Sutton