derail_specs 0.6.0 → 0.6.1

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
  SHA256:
3
- metadata.gz: f41316c2b4b33b60d06fb9a0a0b8fc647f93455e3a1a8978fd16f27b7c118b37
4
- data.tar.gz: 4c3d831d2f467eb42fac527d07ff5edcb943b8ed36fc358ff239d5045acd3f6c
3
+ metadata.gz: b8b54899a77d83026a909627639d48c24d9174e4069bd1a4e242666265c9a8c2
4
+ data.tar.gz: 42cde73f7dc9e73dd79f6b2138bf137a308170e1f891a4f1e6dbc1d4e1b20383
5
5
  SHA512:
6
- metadata.gz: b92ec87ddeabfc801dfaae6dab6f064ddf9b98dd4677bcef61041da677534944fcefc038f676f7b2f99dfec8e5c62b29ada587bd5c9aba366cad89994dbb32d9
7
- data.tar.gz: e304ee8306d696348c44427febd0090912942cc4c07fc5334e1cea6d5aaf5521b8f72db997aa55fb6cdfbb5c991e71a7eddec9bbe251dfbf2a52f12ad596b836
6
+ metadata.gz: 015e4dcb1c5fdf6c46ef12f4a2351054b59b427bcb065163667e89003a834c86c71e2bc13af12c9b3aab105c4f3e028d13c8e80579c45523b08d6121a722d308
7
+ data.tar.gz: aec06f8aed5fdc6606c28d63b9b3729b42011b165ebda41c27a953a756723f18252553e8e9442c40e1fc4aca18bde22ef5d087a9ec5e9032faf0c3ff8dd5a6c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.6.1] - 2021-09-27
4
+
5
+ - Change exit status of `rails derail_specs:run` to match config.command exit status when command is provided
6
+ - Fix template initializer Rails.env.test? typo (jasonfb, #4)
7
+
3
8
  ## [0.6.0] - 2021-09-23
4
9
 
5
10
  - Add /factory-bot/create-list to map to FactoryBot.create_list
data/README.md CHANGED
@@ -121,7 +121,7 @@ end
121
121
 
122
122
  ## Development
123
123
 
124
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
124
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the rspec tests and `bin/test` to run all tests, including sample rails app tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
125
125
 
126
126
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
127
127
 
data/bin/test ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6
+
7
+ cd $DIR/..
8
+ pwd
9
+ rake
10
+ cd example
11
+ bundle exec rails derail_specs:run
data/example/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- derail_specs (0.6.0)
4
+ derail_specs (0.6.1)
5
5
  puma (>= 3.8.0)
6
6
  railties (>= 5.2.0)
7
7
 
@@ -11,7 +11,7 @@ module DerailSpecs
11
11
 
12
12
  if command.present?
13
13
  puts "Run: #{command}"
14
- system command
14
+ exit system(command)
15
15
  else
16
16
  loop { sleep 60 }
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DerailSpecs
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
@@ -1,4 +1,4 @@
1
- return unless Rails.test.env?
1
+ return unless Rails.env.test?
2
2
 
3
3
  DerailSpecs.configure do |config|
4
4
  config.command = './tests.sh' # <-- delete this line for infinite mode
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derail_specs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Piechowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-23 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -52,12 +52,12 @@ files:
52
52
  - CHANGELOG.md
53
53
  - CODE_OF_CONDUCT.md
54
54
  - Gemfile
55
- - Gemfile.lock
56
55
  - LICENSE.txt
57
56
  - README.md
58
57
  - Rakefile
59
58
  - bin/console
60
59
  - bin/setup
60
+ - bin/test
61
61
  - derail_specs.gemspec
62
62
  - example/.gitignore
63
63
  - example/.ruby-version
data/Gemfile.lock DELETED
@@ -1,122 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- derail_specs (0.6.0)
5
- puma (>= 3.8.0)
6
- railties (>= 5.2.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionpack (6.1.4.1)
12
- actionview (= 6.1.4.1)
13
- activesupport (= 6.1.4.1)
14
- rack (~> 2.0, >= 2.0.9)
15
- rack-test (>= 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
- actionview (6.1.4.1)
19
- activesupport (= 6.1.4.1)
20
- builder (~> 3.1)
21
- erubi (~> 1.4)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
- activesupport (6.1.4.1)
25
- concurrent-ruby (~> 1.0, >= 1.0.2)
26
- i18n (>= 1.6, < 2)
27
- minitest (>= 5.1)
28
- tzinfo (~> 2.0)
29
- zeitwerk (~> 2.3)
30
- ast (2.4.2)
31
- builder (3.2.4)
32
- concurrent-ruby (1.1.9)
33
- crass (1.0.6)
34
- diff-lcs (1.4.4)
35
- erubi (1.10.0)
36
- generator_spec (0.9.4)
37
- activesupport (>= 3.0.0)
38
- railties (>= 3.0.0)
39
- i18n (1.8.10)
40
- concurrent-ruby (~> 1.0)
41
- loofah (2.12.0)
42
- crass (~> 1.0.2)
43
- nokogiri (>= 1.5.9)
44
- method_source (1.0.0)
45
- minitest (5.14.4)
46
- nio4r (2.5.8)
47
- nokogiri (1.12.4-x86_64-linux)
48
- racc (~> 1.4)
49
- parallel (1.21.0)
50
- parser (3.0.2.0)
51
- ast (~> 2.4.1)
52
- puma (5.5.0)
53
- nio4r (~> 2.0)
54
- racc (1.5.2)
55
- rack (2.2.3)
56
- rack-test (1.1.0)
57
- rack (>= 1.0, < 3)
58
- rails-dom-testing (2.0.3)
59
- activesupport (>= 4.2.0)
60
- nokogiri (>= 1.6)
61
- rails-html-sanitizer (1.4.2)
62
- loofah (~> 2.3)
63
- railties (6.1.4.1)
64
- actionpack (= 6.1.4.1)
65
- activesupport (= 6.1.4.1)
66
- method_source
67
- rake (>= 0.13)
68
- thor (~> 1.0)
69
- rainbow (3.0.0)
70
- rake (13.0.6)
71
- regexp_parser (2.1.1)
72
- rexml (3.2.5)
73
- rspec (3.10.0)
74
- rspec-core (~> 3.10.0)
75
- rspec-expectations (~> 3.10.0)
76
- rspec-mocks (~> 3.10.0)
77
- rspec-core (3.10.1)
78
- rspec-support (~> 3.10.0)
79
- rspec-expectations (3.10.1)
80
- diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.10.0)
82
- rspec-mocks (3.10.2)
83
- diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.10.0)
85
- rspec-support (3.10.2)
86
- rubocop (1.21.0)
87
- parallel (~> 1.10)
88
- parser (>= 3.0.0.0)
89
- rainbow (>= 2.2.2, < 4.0)
90
- regexp_parser (>= 1.8, < 3.0)
91
- rexml
92
- rubocop-ast (>= 1.9.1, < 2.0)
93
- ruby-progressbar (~> 1.7)
94
- unicode-display_width (>= 1.4.0, < 3.0)
95
- rubocop-ast (1.11.0)
96
- parser (>= 3.0.1.1)
97
- rubocop-rake (0.6.0)
98
- rubocop (~> 1.0)
99
- rubocop-rspec (2.4.0)
100
- rubocop (~> 1.0)
101
- rubocop-ast (>= 1.1.0)
102
- ruby-progressbar (1.11.0)
103
- thor (1.1.0)
104
- tzinfo (2.0.4)
105
- concurrent-ruby (~> 1.0)
106
- unicode-display_width (2.0.0)
107
- zeitwerk (2.4.2)
108
-
109
- PLATFORMS
110
- x86_64-linux
111
-
112
- DEPENDENCIES
113
- derail_specs!
114
- generator_spec
115
- rake (~> 13.0)
116
- rspec (~> 3.0)
117
- rubocop (~> 1.7)
118
- rubocop-rake
119
- rubocop-rspec
120
-
121
- BUNDLED WITH
122
- 2.2.27