jefferies_tube 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jefferies_tube/railtie.rb +13 -2
- data/lib/jefferies_tube/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d43758c5c5aa990e21debc8c4338ae40016c7885c5a42e236d6c8e12d9d650c8
|
4
|
+
data.tar.gz: 5199e634f68f80e71a3ae5975138bc499a66be8f63e636728085f9581fa37817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b06ed2aec54ec7db1271aa1532aef953372f87affade53a375621aa3a35bc5aa0b680e16e9009c23a5d2edfb0beb41a66a0bef5577398cd4c054b76a0f9071c
|
7
|
+
data.tar.gz: 1580240cb171dbc75ce91e8b978ac6673249d8bcc31f045dd98258a66244f4b78f21a0e5d15f0e3a581102c407d1e488f8b217ab8f9426652759319ed2b9881e
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ This project attempts to follow [semantic versioning](https://semver.org/)
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## 1.6.9
|
10
|
+
* Refactor checking for JT_RSPEC environment variable when starting simplecov; prepends env var to rails application's spec_helper if
|
11
|
+
that line does not already exist.
|
12
|
+
|
9
13
|
## 1.6.8
|
10
14
|
* Add support for ignoring CVEs in .bundler-audit.yml, remove support for setting ignored CVEs in deploy.rb via `:bundler_audit_ignore`
|
11
15
|
|
@@ -77,7 +77,19 @@ module JefferiesTube
|
|
77
77
|
end
|
78
78
|
|
79
79
|
initializer 'load simplecov for tests' do |config|
|
80
|
-
|
80
|
+
existing_spec_helper = File.join(::Rails.root.join "spec", "spec_helper.rb" )
|
81
|
+
if !(File.open(existing_spec_helper, &:readline) == "ENV['JT_RSPEC'] = 'true'\n")
|
82
|
+
content = File.read(existing_spec_helper)
|
83
|
+
File.open(existing_spec_helper, "w") do |line|
|
84
|
+
line.puts "ENV['JT_RSPEC'] = 'true'"
|
85
|
+
line.puts "# ENV['JT_RSPEC'] = 'true' is required for correctly running SimpleCov via the jefferies_tube default rake task"
|
86
|
+
line.puts "\n"
|
87
|
+
line.puts content
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
if ::Rails.env.test? && ENV['JT_RSPEC'] == 'true'
|
92
|
+
ENV['JT_RSPEC'] = nil
|
81
93
|
simplecov_config = 'config/simplecov.rb'
|
82
94
|
require_relative simplecov_config
|
83
95
|
end
|
@@ -88,7 +100,6 @@ module JefferiesTube
|
|
88
100
|
if defined?(RSpec)
|
89
101
|
require 'rspec/core/rake_task'
|
90
102
|
task :jtspec do
|
91
|
-
ENV['JT_RAKE'] = "true"
|
92
103
|
Rake::Task["spec"].invoke
|
93
104
|
end
|
94
105
|
task default: :jtspec
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jefferies_tube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
rubygems_version: 3.5.
|
228
|
+
rubygems_version: 3.5.22
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Ten Forward Consulting useful tools.
|