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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6763099ec0acd75e736c7dac93c0b085096cc62ef64716be3c8503eab4f489e
4
- data.tar.gz: 54f4f6d0316bcedebecdb02e45e1d4c6a953db52ef63d776c2d6c581e83cada7
3
+ metadata.gz: 7fe602725abd18a98be2f3943a3dcceed5ab4b7a015143b8c43718284bc64a38
4
+ data.tar.gz: cfa868f58d797feb34c52030ad3af8a57aa1468898e68051734187cdc9fbf9a5
5
5
  SHA512:
6
- metadata.gz: 4e0cdbd5348ab0dbb3bbf3154a2b9743266d7001ec4688df0516eb48593d7a0366686f6df6bbe2d945d7b7eb0c604985f62a8d5d96622e513a56806cba6890f5
7
- data.tar.gz: 98d7c5c3c7f2095238c77ae049a5c94f9bd525cb8e58fb3a2238018a5ac832954a5e32a2b4fa65687feccf8f00b78f1c4ea39592746b7b6646e286014cacf2cd
6
+ metadata.gz: 349d3ad88b447e272b53e60682ffefc4f42af6d8c710b6c38bd1411081358f6e1d03c2344a3eb3df22eb4f43936c9b20feb9056ba017bd0a55edae7b4946f56b
7
+ data.tar.gz: 1f256c06b1e70fba130a652597a6c7b3ad56636b643263b749a491ad46802421005d74680653bb814d972f65f7cf5e490b63d30b53427a13936a07dfc637a000
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zeus (0.16.0)
4
+ zeus (0.17.0)
5
5
  method_source (>= 0.6.7)
6
6
 
7
7
  GEM
@@ -30,6 +30,7 @@ GEM
30
30
 
31
31
  PLATFORMS
32
32
  x86_64-darwin-22
33
+ x86_64-darwin-23
33
34
 
34
35
  DEPENDENCIES
35
36
  bundler (~> 2.3)
Binary file
Binary file
data/build/zeus-linux-386 CHANGED
Binary file
Binary file
@@ -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, *a)
91
+ def load_file(file, **kwargs)
92
92
  Zeus::LoadTracking.add_feature(file)
93
- __load_file_without_zeus(file, *a)
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.exists?(gemfile_lock)
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.exists?(File.expand_path(path, root_path)) }
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.exists?(ROOT_PATH + "/spec/rails_helper.rb")
213
+ if File.exist?(ROOT_PATH + "/spec/rails_helper.rb")
214
214
  # RSpec >= 3.0+
215
215
  require 'rails_helper'
216
- elsif File.exists?(ROOT_PATH + "/spec/spec_helper.rb")
216
+ elsif File.exist?(ROOT_PATH + "/spec/spec_helper.rb")
217
217
  # RSpec < 3.0
218
218
  require 'spec_helper'
219
- elsif File.exists?(ROOT_PATH + "/test/minitest_helper.rb")
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
@@ -1,3 +1,3 @@
1
1
  module Zeus
2
- VERSION = "0.16.0"
2
+ VERSION = "0.17.0"
3
3
  end
data/spec/rails_spec.rb CHANGED
@@ -5,7 +5,7 @@ module Zeus
5
5
  subject(:rails) { Rails.new }
6
6
 
7
7
  def mock_file_existence(file, result)
8
- expect(File).to receive(:exists?).with(file).and_return(result)
8
+ expect(File).to receive(:exist?).with(file).and_return(result)
9
9
  end
10
10
 
11
11
  describe "#test_helper" do
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.16.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: 2023-10-06 00:00:00.000000000 Z
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.1.6
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