Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into windows-support
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyazub committed Apr 16, 2024
2 parents 1fa426c + 6ada9df commit 1f714bf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
6 changes: 0 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ PATH
remote: .
specs:
turbo_tests (2.2.2)
fileutils (~> 1.4)
json (~> 2.3)
open3 (~> 0.1)
ostruct (~> 0.2)
parallel_tests (>= 3.3.0, < 5)
rspec (>= 3.10)

Expand All @@ -14,11 +11,8 @@ GEM
specs:
coderay (1.1.3)
diff-lcs (1.5.0)
fileutils (1.7.2)
json (2.7.2)
method_source (1.0.0)
open3 (0.2.1)
ostruct (0.6.0)
parallel (1.22.1)
parallel_tests (4.2.0)
parallel
Expand Down
1 change: 0 additions & 1 deletion lib/turbo_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "securerandom"
require "open3"
require "fileutils"
require "ostruct"
require "json"

require "rspec"
Expand Down
4 changes: 1 addition & 3 deletions lib/utils/hash_extension.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module CoreExtensions
refine Hash do
def to_struct
OpenStruct.new(self.each_with_object({}) do |(key, val), acc|
acc[key] = val.is_a?(Hash) ? val.to_struct : val
end)
Struct.new(*self.keys).new(*self.values.map { |value| value.is_a?(Hash) ? value.to_struct : value })
end
end
end
3 changes: 0 additions & 3 deletions turbo_tests.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "rspec", ">= 3.10"
spec.add_dependency "parallel_tests", ">= 3.3.0", "< 5"
spec.add_dependency "fileutils", "~> 1.4"
spec.add_dependency "open3", "~> 0.1"
spec.add_dependency "json", "~> 2.3"
spec.add_dependency "ostruct", "~> 0.2"

spec.add_development_dependency "pry", "~> 0.14"

Expand Down

0 comments on commit 1f714bf

Please sign in to comment.