console_buddy 0.1.4 → 0.1.5
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 +4 -4
- data/lib/console_buddy/version.rb +1 -1
- data/lib/console_buddy.rb +13 -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: e04be1adeb863f4260dab25a81cce777e2a4e433904998f69482b0f1dfb22399
|
4
|
+
data.tar.gz: 0625fe84308248a4cce330dda74f9aae56904ef9be087e55bed9c29ab1907332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf5f09899139d81888c8bb30e987b96b924496bde533f4a563fe114da2f0f8d5368dd0751a5618a2ea2736675c99e780ee307da6f77f67d4d78ec6436af720e
|
7
|
+
data.tar.gz: d92805d82a145126a57ec78c04044ec084c950957bcfcf2d4527063b80d7762b61d0a7d070a72912b689ff46de073755ebf75db0b063e1d2895472a2f2bb7417
|
data/lib/console_buddy.rb
CHANGED
@@ -14,6 +14,7 @@ require_relative "console_buddy/version"
|
|
14
14
|
require_relative "console_buddy/one_off_job"
|
15
15
|
require_relative "console_buddy/job"
|
16
16
|
|
17
|
+
rspec_present = false
|
17
18
|
# Only load the one-off job classes if the gems are installed
|
18
19
|
#
|
19
20
|
begin
|
@@ -37,6 +38,14 @@ rescue LoadError
|
|
37
38
|
# puts "ActiveJob gem not installed, skipping active job integration."
|
38
39
|
end
|
39
40
|
|
41
|
+
begin
|
42
|
+
require 'rspec'
|
43
|
+
rspec_present = true
|
44
|
+
rescue LoadError
|
45
|
+
rspec_present = false
|
46
|
+
# puts "RSpec gem not installed, skipping rspec integration."
|
47
|
+
end
|
48
|
+
|
40
49
|
module ConsoleBuddy
|
41
50
|
class << self
|
42
51
|
attr_accessor :verbose_console, :allowed_envs, :use_in_debuggers, :ignore_startup_errors, :use_in_tests, :one_off_job_service_type
|
@@ -213,4 +222,7 @@ end
|
|
213
222
|
|
214
223
|
require_relative "console_buddy/initializers/byebug"
|
215
224
|
require_relative "console_buddy/initializers/rails"
|
216
|
-
|
225
|
+
|
226
|
+
if rspec_present
|
227
|
+
require_relative "console_buddy/initializers/rspec"
|
228
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: console_buddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Bowie
|
8
|
-
-
|
8
|
+
- Good For Nothing
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|