forked from RubyData/docker-stacks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added patch to accomdate respond_to_missing failure when using iruby
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
diff --git a/lib/ruby-spacy.rb b/lib/ruby-spacy.rb | ||
index c0a1c3b..beed1e7 100644 | ||
--- a/lib/ruby-spacy.rb | ||
+++ b/lib/ruby-spacy.rb | ||
@@ -340,7 +340,7 @@ module Spacy | ||
@py_doc.send(name, *args) | ||
end | ||
|
||
- def respond_to_missing?(sym) | ||
+ def respond_to_missing?(name, sym) | ||
sym ? true : super | ||
end | ||
end | ||
@@ -454,7 +454,7 @@ module Spacy | ||
@py_nlp.send(name, *args) | ||
end | ||
|
||
- def respond_to_missing?(sym) | ||
+ def respond_to_missing?(name, sym) | ||
sym ? true : super | ||
end | ||
end | ||
@@ -660,7 +660,7 @@ module Spacy | ||
@py_span.send(name, *args) | ||
end | ||
|
||
- def respond_to_missing?(sym) | ||
+ def respond_to_missing?(name, sym) | ||
sym ? true : super | ||
end | ||
end | ||
@@ -826,7 +826,7 @@ module Spacy | ||
@py_token.send(name, *args) | ||
end | ||
|
||
- def respond_to_missing?(sym) | ||
+ def respond_to_missing?(name, sym) | ||
sym ? true : super | ||
end | ||
end | ||
@@ -901,7 +901,7 @@ module Spacy | ||
@py_lexeme.send(name, *args) | ||
end | ||
|
||
- def respond_to_missing?(sym) | ||
+ def respond_to_missing?(name, sym) | ||
sym ? true : super | ||
end | ||
end |