Skip to content

Commit

Permalink
Drop ruby-next
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTsepelev committed Jan 4, 2025
1 parent f2abadc commit 9620770
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 36 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:
bundler-cache: true
bundler: 2.2.0
cache-version: 1
- name: Run Ruby Next
run: bundle exec rake nextify
- name: Run RSpec
run: |
bundle exec rake spec
Expand Down
2 changes: 0 additions & 2 deletions .rbnextrc

This file was deleted.

5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
default: test

nextify:
bundle exec rake nextify

test: nextify
test:
bundle exec rake
CI=true bundle exec rake

Expand Down
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

desc "Run Ruby Next nextify"
task :nextify do
sh "bundle exec ruby-next nextify ./lib -V"
end

desc "Run specs without Rails"
RSpec::Core::RakeTask.new("spec:norails") do |task|
task.exclude_pattern = "**/rails/**"
Expand Down
8 changes: 0 additions & 8 deletions graphql-ruby-fragment_cache.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ Gem::Specification.new do |spec|

spec.add_dependency "graphql", ">= 2.1.4"

# When gem is installed from source, we add `ruby-next` as a dependency
# to auto-transpile source files during the first load
if File.directory?(File.join(__dir__, ".git"))
spec.add_runtime_dependency "ruby-next", ">= 0.15.0"
else
spec.add_runtime_dependency "ruby-next-core", ">= 0.15.0"
end

spec.add_development_dependency "combustion", "~> 1.1"
spec.add_development_dependency "activerecord"
spec.add_development_dependency "sqlite3"
Expand Down
5 changes: 0 additions & 5 deletions lib/graphql-fragment_cache.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
require "ruby-next"

require "ruby-next/language/setup"
RubyNext::Language.setup_gem_load_path(transpile: true)

require "graphql/fragment_cache"
4 changes: 0 additions & 4 deletions lib/graphql/fragment_cache/cache_key_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
require "json"
require "digest"

using RubyNext

module GraphQL
module FragmentCache
using Ext
Expand Down Expand Up @@ -57,8 +55,6 @@ def selection_with_alias(name, **kwargs)

# Builds cache key for fragment
class CacheKeyBuilder
using RubyNext

class << self
def call(**options)
new(**options).build
Expand Down
2 changes: 0 additions & 2 deletions lib/graphql/fragment_cache/graphql_ruby_version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

using RubyNext

module GraphQL
module FragmentCache
module GraphRubyVersion
Expand Down
4 changes: 0 additions & 4 deletions lib/graphql/fragment_cache/memory_store.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# frozen_string_literal: true

using RubyNext

module GraphQL
module FragmentCache
# Memory adapter for storing cached fragments
class MemoryStore
using RubyNext

class Entry < Struct.new(:value, :expires_at, keyword_init: true)
def expired?
expires_at && expires_at < Time.now
Expand Down

0 comments on commit 9620770

Please sign in to comment.