You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it "should tokenize and stem with String#tokenize_and_stem"do"scoring stinks".tokenize_and_stem.should eq(["score", "stink"])
"SCORING STINKS".tokenize_and_stem.should eq(["score", "stink"])
end
That's because the core_ext for String is already included in the tokenizer shard, on which the stemmer depends.
Is there a point to port the same code in all the shards ? :-)
Ahh ok. Tbh I think for things like that we should probably have them included directly in the shard that depends on them. I don't mind having each shard have it's own core_ext because it makes things easier to find.
I totally understand your concern about finding easily the code.
So why not put the core_ext in cadmium_util (because one way or another, all cadmium shards will depend on it) and then point to its location each time we declare a new extension using it, like this :
Looks like the
core_ext
for String didn't get ported over to thisThe text was updated successfully, but these errors were encountered: