Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ private CacheEntry searchWithCacheMiss(Ruby runtime, final String id, final bool
if (cacheUndef) {
return addToCache(id, UndefinedMethod.getInstance(), this, token);
}
return cacheEntryFactory.newCacheEntry(id, UndefinedMethod.getInstance(), methodEntry.sourceModule, token);
return cacheEntryFactory.newCacheEntry(id, UndefinedMethod.getInstance(), this, token);
} else if (!runtime.isBooting()) {
addToCache(id, methodEntry);
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/StringSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,7 @@ public static IRubyObject rbStrEnumerateLines(RubyString str, ThreadContext cont

if (opts != context.nil) {
IRubyObject _chomp = ArgsUtil.extractKeywordArg(context, "chomp", opts);
chomp = _chomp != null || _chomp.isTrue();
chomp = _chomp.isTrue();
}

if (block.isGiven()) {
Expand Down