rspec_n 1.2.1 → 1.2.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: 4b180ad5f7e35fd0573d812a6aac70d2ca95fb9a
4
- data.tar.gz: a1ba8de7b75f26ae2a215f582199c0ddaf7dee74
3
+ metadata.gz: d086a277cdeda572b3358f254048ed4e7efa7028
4
+ data.tar.gz: b17c3463cece7279db187d9469c3ec280efe605b
5
5
  SHA512:
6
- metadata.gz: 1e97302f1e32ad29e01e339dc5fa99bcdcd3a299e2d70db85824bde5b0e5cc05cda9c616a36b5c09475094611e4eadae706b3714da5a3131e5222eeddd62b68b
7
- data.tar.gz: 86d2676d4319c227e0f127e90116e0355a9ca3ad41c26a3b9e9f0318cde93ef8602dfcfc036c4e1e4f1c4cdd2c4552172ea3f4ba89c707d9a06aa9974121f743
6
+ metadata.gz: 3717ceab5cd0fe798eddacebcfc66ad1ceccad082bec1c15f0843ced97179df37ceff80d24c8ff0fc47b2079408d5ec02eebbae41746fe044212e35dc8a4c9e7
7
+ data.tar.gz: 2f2b6d24ee1e683dd312554560e0c1af09aae7da2f3dd81741fa24ea939b66c66792720463d6fd0517c4ac8b9ac1c8c4446c2b741c4828ab2496674f3516ec31
@@ -1,5 +1,8 @@
1
1
  inherit_gem:
2
2
  rubocop_plus: config/rubocop.yml
3
3
 
4
+ AllCops:
5
+ TargetRubyVersion: 2.3
6
+
4
7
  Style/Documentation:
5
8
  Enabled: false
@@ -3,5 +3,12 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.1
7
- before_install: gem install bundler -v 2.0.1
6
+ - 2.3.8
7
+ - 2.4.5
8
+ - 2.5.5
9
+ - 2.6.3
10
+ before_install: gem install bundler -v 2.0.2
11
+ notifications:
12
+ email:
13
+ on_success: never # default: change
14
+ on_failure: never # default: always
@@ -1,22 +1,29 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## Next Release
4
+
5
+ 1. (New) Add Gemfile usage instructions to the README. ([Issue #36](https://github.com/roberts1000/rspec_n/issues/36))
6
+ 1. (New) Remove locking to a specify version of Ruby in development. ([Issue #41](https://github.com/roberts1000/rspec_n/issues/41))
7
+ 1. (New) Use pry 0.12.x for development. ([Issue #43](https://github.com/roberts1000/rspec_n/issues/43))
8
+ 1. (New) Stop `--order rand` from being added to the final command when a custom order is specified. ([Issue #38](https://github.com/roberts1000/rspec_n/issues/38))
9
+
3
10
  ## 1.2.1 (Mar 06, 2019)
4
11
 
5
- 1. (Fix) Make `-v` and `--version` work again. ([Issue #30](https://github.com/roberts1000/rspec_n/issues/30))
12
+ 1. (Fix) Make `-v` and `--version` work again. ([Issue #30](https://github.com/roberts1000/rspec_n/issues/30))
6
13
 
7
14
  ## 1.2.0 (Mar 03, 2019)
8
15
 
9
- 1. (New) Write the command that was used to run rspec_n to the output files. ([Issue #26](https://github.com/roberts1000/rspec_n/issues/26))
16
+ 1. (New) Write the command that was used to run rspec_n to the output files. ([Issue #26](https://github.com/roberts1000/rspec_n/issues/26))
10
17
 
11
18
  ## 1.1.0 (Mar 03, 2019)
12
19
 
13
- 1. (New) Add **Result Counts** column which shows the result counts for each run (e.g. "400 examples, 2 failures, 3 pending" ). ([Issue #19](https://github.com/roberts1000/rspec_n/issues/19))
14
- 1. (New) Allow an optional path argument, that is passed to RSpec, to target specs (e.g. `rspec_n 3 spec/features/example_spec.rb`, `rspec_n spec/features/example_spec.rb:5`, `rspec_n spec/features 4`). ([Issue #20](https://github.com/roberts1000/rspec_n/issues/20))
15
- 1. (New) Rename the `Result Counts` column to `Results` and remove the existing `Results` column. ([Issue #23](https://github.com/roberts1000/rspec_n/issues/23))
20
+ 1. (New) Add **Result Counts** column which shows the result counts for each run (e.g. "400 examples, 2 failures, 3 pending"). ([Issue #19](https://github.com/roberts1000/rspec_n/issues/19))
21
+ 1. (New) Allow an optional path argument, that is passed to RSpec, to target specs (e.g. `rspec_n 3 spec/features/example_spec.rb`, `rspec_n spec/features/example_spec.rb:5`, `rspec_n spec/features 4`). ([Issue #20](https://github.com/roberts1000/rspec_n/issues/20))
22
+ 1. (New) Rename the `Result Counts` column to `Results` and remove the existing `Results` column. ([Issue #23](https://github.com/roberts1000/rspec_n/issues/23))
16
23
 
17
24
  ## 1.0.0 (Feb 18, 2019)
18
25
 
19
26
  1. (New) Add initial core logic. ([Issue #1](https://github.com/roberts1000/rspec_n/issues/1))
20
27
  1. (New) Add initial CLI. ([Issue #4](https://github.com/roberts1000/rspec_n/issues/4))
21
- 1. (New) Write results of each iteration to a separate file. ([Issue #5](https://github.com/roberts1000/rspec_n/issues/5))
22
- 1. (New) Add `-s` option to stop on first failure. ([Issue #6](https://github.com/roberts1000/rspec_n/issues/6))
28
+ 1. (New) Write results of each iteration to a separate file. ([Issue #5](https://github.com/roberts1000/rspec_n/issues/5))
29
+ 1. (New) Add `-s` option to stop on first failure. ([Issue #6](https://github.com/roberts1000/rspec_n/issues/6))
data/Gemfile CHANGED
@@ -1,7 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- ruby '2.3.7'
4
-
5
3
  # Specify your gem's dependencies in rspec_n.gemspec
6
4
  gemspec
7
5
 
data/README.md CHANGED
@@ -4,13 +4,13 @@ rspec_n is a Ruby gem that makes it easy to run a project's RSpec test suite N t
4
4
 
5
5
  ![example](https://user-images.githubusercontent.com/2053901/53691471-c6956880-3d4c-11e9-8248-68bbb4c24786.png)
6
6
 
7
- ## Version Policy
7
+ ## Version Strategy
8
8
 
9
9
  Releases are versioned using [semver 2.0.0](https://semver.org/spec/v2.0.0.html).
10
10
 
11
11
  ## Supported Rubies
12
12
 
13
- Ruby 2.3.7+ is supported.
13
+ Ruby 2.3.0+ is supported.
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,6 +20,14 @@ Install by executing
20
20
 
21
21
  The gem will install an exectuable called `rspec_n` on your system. You may also want to add `rspec_n_iteration.*` to your `.gitignore` to exclude the output generated by rspec_n from your project's repo.
22
22
 
23
+ #### Using in a Gemfile
24
+
25
+ If you want to add rspec_n to your Gemfile, make sure you use the `require: false` option so rspec_n files aren't loaded into your application. rspec_n doesn't provide any runtime benefit to an app and requiring it will add unnecessary code to your project. Also, rspec_n is designed as a standalone commandline tool and isn't tested for compatibility inside other apps.
26
+
27
+ ```ruby
28
+ gem 'rspec_n', require: false
29
+ ```
30
+
23
31
  ## Usage
24
32
 
25
33
  The simplest way to run rspec_n is to give it a positive integer which tells it how many times to run RSpec:
@@ -44,7 +44,8 @@ module RspecN
44
44
  def determine_command
45
45
  command = @options.fetch(:command, guessed_command)
46
46
  command += " " + @spec_path if @spec_path
47
- command + " --order " + @order
47
+ command += " --order " + @order if should_append_order?(command)
48
+ command
48
49
  end
49
50
 
50
51
  def guessed_command
@@ -63,5 +64,9 @@ module RspecN
63
64
  app_file_name = "config/application.rb"
64
65
  File.file?(app_file_name) && File.readlines(app_file_name).grep(/Rails::Application/).any?
65
66
  end
67
+
68
+ def should_append_order?(command)
69
+ command.match(/--order/).nil?
70
+ end
66
71
  end
67
72
  end
@@ -1,3 +1,3 @@
1
1
  module RspecN
2
- VERSION = "1.2.1".freeze
2
+ VERSION = "1.2.2".freeze
3
3
  end
@@ -33,10 +33,10 @@ Gem::Specification.new do |spec|
33
33
  spec.bindir = "exe"
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ["lib"]
36
- spec.required_ruby_version = '>= 2.3.7'
36
+ spec.required_ruby_version = '>= 2.3.0'
37
37
 
38
38
  spec.add_development_dependency "bundler", "~> 2.0"
39
- spec.add_development_dependency "pry", "~> 0.11.2"
39
+ spec.add_development_dependency "pry", "~> 0.12.0"
40
40
  spec.add_development_dependency "rake", "~> 12.0"
41
41
  spec.add_development_dependency "rspec", "~> 3.0"
42
42
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - roberts1000
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.11.2
33
+ version: 0.12.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.11.2
40
+ version: 0.12.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 2.3.7
145
+ version: 2.3.0
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - ">="