diff --git a/Gemfile b/Gemfile index 1a49130..250fd75 100644 --- a/Gemfile +++ b/Gemfile @@ -2,9 +2,9 @@ source 'https://rubygems.org' gem 'byebug' -gem 'rails', '~> 5.2' +gem 'rails', '~> 7.0' -gem 'graphql', '~> 1.9.6' +gem 'graphql', '~> 2.0.16' # Specify your gem's dependencies in graphql-auth.gemspec -gemspec \ No newline at end of file +gemspec diff --git a/graphql-auth.gemspec b/graphql-auth.gemspec index 2941f9e..4ee0dd4 100644 --- a/graphql-auth.gemspec +++ b/graphql-auth.gemspec @@ -15,16 +15,16 @@ Gem::Specification.new do |spec| spec.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "CHANGELOG.md"] - spec.required_ruby_version = '>= 2.4.5' + spec.required_ruby_version = '>= 3.2' - spec.add_dependency "rails", "~> 5.1" - spec.add_dependency 'graphql', '~> 1.9', '>= 1.9.6' + spec.add_dependency "rails", "~> 7.0", '>= 7.0.4.2' + spec.add_dependency 'graphql', '~> 2.0', '>= 2.0.16' spec.add_dependency 'devise', '~> 4.6', '>= 4.6.2' - spec.add_dependency 'jwt', '~> 1.5' + spec.add_dependency 'jwt', '~> 2.7' - spec.add_development_dependency 'sqlite3', '~> 1.3.6' + spec.add_development_dependency 'sqlite3', '~> 1.6' spec.add_development_dependency 'bundler', '~> 2.0' - spec.add_development_dependency 'rake', '~> 10.0' + spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rspec', '~> 3.0' spec.add_development_dependency 'database_cleaner' -end \ No newline at end of file +end diff --git a/lib/graphql-auth/engine.rb b/lib/graphql-auth/engine.rb index d85710c..67be5bc 100644 --- a/lib/graphql-auth/engine.rb +++ b/lib/graphql-auth/engine.rb @@ -3,7 +3,7 @@ module Auth class Engine < ::Rails::Engine isolate_namespace GraphQL::Auth - config.autoload_paths += Dir["#{config.root}/app/**/"] + config.autoload_paths += Dir["#{config.root}/app/**/*.rb"] end end -end \ No newline at end of file +end diff --git a/spec/dummy/app/assets/config/manifest.js b/spec/dummy/app/assets/config/manifest.js new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/app/graphql/graphql_schema.rb b/spec/dummy/app/graphql/graphql_schema.rb index 39d1556..d090815 100644 --- a/spec/dummy/app/graphql/graphql_schema.rb +++ b/spec/dummy/app/graphql/graphql_schema.rb @@ -2,7 +2,7 @@ class GraphqlSchema < GraphQL::Schema mutation Types::MutationType - query Types::QueryType + #query Types::QueryType end -GraphqlSchema.graphql_definition +#GraphqlSchema.graphql_definition diff --git a/spec/dummy/config/initializers/assets.rb b/spec/dummy/config/initializers/assets.rb index 4b828e8..e4354f2 100644 --- a/spec/dummy/config/initializers/assets.rb +++ b/spec/dummy/config/initializers/assets.rb @@ -1,12 +1,12 @@ # Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' +# Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path # Add Yarn node_modules folder to the asset load path. -Rails.application.config.assets.paths << Rails.root.join('node_modules') +# Rails.application.config.assets.paths << Rails.root.join('node_modules') # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in the app/assets