Skip to content

Commit

Permalink
Merge pull request #79 from toptal/devx-524-replace-ruby2-keywords-to…
Browse files Browse the repository at this point in the history
…-support-ruby3

[DEVX-524] Replace obsolete ruby2_keywords def with a gem
  • Loading branch information
betasve authored Aug 26, 2022
2 parents 83dfdf3 + cc45137 commit 376339a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
1 change: 1 addition & 0 deletions granite.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'active_data', '~> 1.2.0'
s.add_runtime_dependency 'activesupport', '>= 5.1', '< 7.1'
s.add_runtime_dependency 'memoist', '~> 0.16'
s.add_runtime_dependency 'ruby2_keywords', '~> 0.0.5'

s.add_development_dependency 'activerecord'
s.add_development_dependency 'appraisal'
Expand Down
2 changes: 1 addition & 1 deletion lib/granite.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require 'active_support/dependencies'
require 'action_controller'
require 'ruby2_keywords'

require 'granite/version'
require 'granite/config'
require 'granite/context'
require 'granite/util'
require 'granite/ruby3_compatibility'

module Granite
def self.config
Expand Down
2 changes: 0 additions & 2 deletions lib/granite/context_proxy/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ module ContextProxy
# Proxy which wraps the following method calls with BA context.
#
class Proxy
extend Granite::Ruby3Compatibility

def initialize(klass, context)
@klass = klass
@context = context
Expand Down
15 changes: 0 additions & 15 deletions lib/granite/ruby3_compatibility.rb

This file was deleted.

0 comments on commit 376339a

Please sign in to comment.