zeus 0.16.0 → 0.17.0
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/Gemfile.lock +2 -1
- data/build/zeus-darwin-amd64 +0 -0
- data/build/zeus-darwin-arm64 +0 -0
- data/build/zeus-linux-386 +0 -0
- data/build/zeus-linux-amd64 +0 -0
- data/lib/zeus/load_tracking.rb +2 -2
- data/lib/zeus/m.rb +1 -1
- data/lib/zeus/rails.rb +4 -4
- data/lib/zeus/version.rb +1 -1
- data/spec/rails_spec.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: 7fe602725abd18a98be2f3943a3dcceed5ab4b7a015143b8c43718284bc64a38
|
4
|
+
data.tar.gz: cfa868f58d797feb34c52030ad3af8a57aa1468898e68051734187cdc9fbf9a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 349d3ad88b447e272b53e60682ffefc4f42af6d8c710b6c38bd1411081358f6e1d03c2344a3eb3df22eb4f43936c9b20feb9056ba017bd0a55edae7b4946f56b
|
7
|
+
data.tar.gz: 1f256c06b1e70fba130a652597a6c7b3ad56636b643263b749a491ad46802421005d74680653bb814d972f65f7cf5e490b63d30b53427a13936a07dfc637a000
|
data/Gemfile.lock
CHANGED
data/build/zeus-darwin-amd64
CHANGED
Binary file
|
data/build/zeus-darwin-arm64
CHANGED
Binary file
|
data/build/zeus-linux-386
CHANGED
Binary file
|
data/build/zeus-linux-amd64
CHANGED
Binary file
|
data/lib/zeus/load_tracking.rb
CHANGED
@@ -88,9 +88,9 @@ require 'yaml'
|
|
88
88
|
module YAML
|
89
89
|
class << self
|
90
90
|
alias_method :__load_file_without_zeus, :load_file
|
91
|
-
def load_file(file,
|
91
|
+
def load_file(file, **kwargs)
|
92
92
|
Zeus::LoadTracking.add_feature(file)
|
93
|
-
__load_file_without_zeus(file,
|
93
|
+
__load_file_without_zeus(file, **kwargs)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
data/lib/zeus/m.rb
CHANGED
@@ -10,7 +10,7 @@ require "zeus/m/test_method"
|
|
10
10
|
# To avoid possible "you've activated X; gemfile specifies Y" errors, we actually scan
|
11
11
|
# Gemfile.lock for a specific version, and require exactly that version if present.
|
12
12
|
gemfile_lock = ROOT_PATH + "/Gemfile.lock"
|
13
|
-
if File.
|
13
|
+
if File.exist?(gemfile_lock)
|
14
14
|
version = File.read(ROOT_PATH + "/Gemfile.lock").
|
15
15
|
scan(/\bmethod_source\s*\(([\d\.]+)\)/).flatten[0]
|
16
16
|
|
data/lib/zeus/rails.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
def find_rails_path(root_path)
|
2
2
|
paths = %w(spec/dummy test/dummy .)
|
3
|
-
paths.find { |path| File.
|
3
|
+
paths.find { |path| File.exist?(File.expand_path(path, root_path)) }
|
4
4
|
end
|
5
5
|
|
6
6
|
ROOT_PATH = File.expand_path(Dir.pwd)
|
@@ -210,13 +210,13 @@ module Zeus
|
|
210
210
|
if ENV['RAILS_TEST_HELPER']
|
211
211
|
require ENV['RAILS_TEST_HELPER']
|
212
212
|
else
|
213
|
-
if File.
|
213
|
+
if File.exist?(ROOT_PATH + "/spec/rails_helper.rb")
|
214
214
|
# RSpec >= 3.0+
|
215
215
|
require 'rails_helper'
|
216
|
-
elsif File.
|
216
|
+
elsif File.exist?(ROOT_PATH + "/spec/spec_helper.rb")
|
217
217
|
# RSpec < 3.0
|
218
218
|
require 'spec_helper'
|
219
|
-
elsif File.
|
219
|
+
elsif File.exist?(ROOT_PATH + "/test/minitest_helper.rb")
|
220
220
|
require 'minitest_helper'
|
221
221
|
else
|
222
222
|
require 'test_helper'
|
data/lib/zeus/version.rb
CHANGED
data/spec/rails_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: method_source
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
114
|
+
rubygems_version: 3.4.19
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Zeus is an intelligent preloader for ruby applications. It allows normal
|