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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b9466c608ebb3036068f91caaacc927e157b03e45dfa83b201f2822683d7d60
4
- data.tar.gz: cfef6348b6e2e237312dc8cc3328750832dd57f0cd640dbdb8863ef58a70da32
3
+ metadata.gz: d43758c5c5aa990e21debc8c4338ae40016c7885c5a42e236d6c8e12d9d650c8
4
+ data.tar.gz: 5199e634f68f80e71a3ae5975138bc499a66be8f63e636728085f9581fa37817
5
5
  SHA512:
6
- metadata.gz: 4cbe0c0a98edf3a57ddd60e74425415fad6f1d59e5cbead19fc5306f5bbb7668bd40cc47f9099a499b3ea28fe1a2eba5172a8acb335ba518621ac051f0e17702
7
- data.tar.gz: 6bea0c1b6494d95568c9188dfc00cabd40afc4b2e2d876df545240333c825d55b0ea75a1c6a299ba67be97abffcaf521ebdc01c55e755a43c01c4d1a8d5d46c1
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
- if ::Rails.env.test? && ENV['JT_RAKE']
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
@@ -1,7 +1,7 @@
1
1
  require 'open-uri'
2
2
 
3
3
  module JefferiesTube
4
- VERSION = "1.6.8"
4
+ VERSION = "1.6.9"
5
5
 
6
6
  def self.latest_rubygems_version
7
7
  JSON.parse(URI.parse("https://rubygems.org/api/v1/versions/jefferies_tube/latest.json").read)["version"]
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.8
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-09-03 00:00:00.000000000 Z
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.18
228
+ rubygems_version: 3.5.22
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Ten Forward Consulting useful tools.