Sha256: 6ef9270a1dc65b6f50912272446e71ec713fc02fab9e8bf4b5de043e13ca2474

Contents?: true

Size: 358 Bytes

Versions: 28

Compression:

Stored size: 358 Bytes

Contents

package s3.website

object Ruby {
  lazy val rubyRuntime = org.jruby.Ruby.newInstance() // Instantiate heavy object

  def rubyRegexMatches(text: String, regex: String) = {
    val z  = rubyRuntime.evalScriptlet(
      s"""# encoding: utf-8
          !!Regexp.new("$regex").match("$text")"""
    )
    z.toJava(classOf[Boolean]).asInstanceOf[Boolean]
  }

}

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
s3_website_revived-4.0.3 src/main/scala/s3/website/Ruby.scala
s3_website_revived-4.0.2 src/main/scala/s3/website/Ruby.scala
s3_website_revived-4.0.1 src/main/scala/s3/website/Ruby.scala
s3_website_revived-4.0.0 src/main/scala/s3/website/Ruby.scala
s3_website-3.4.0 src/main/scala/s3/website/Ruby.scala
s3_website-3.3.0 src/main/scala/s3/website/Ruby.scala
s3_website-3.2.0 src/main/scala/s3/website/Ruby.scala
s3_website-3.1.0 src/main/scala/s3/website/Ruby.scala
s3_website-3.0.0 src/main/scala/s3/website/Ruby.scala
s3_website-2.16.0 src/main/scala/s3/website/Ruby.scala
s3_website-2.15.1 src/main/scala/s3/website/Ruby.scala
s3_website-2.15.0 src/main/scala/s3/website/Ruby.scala
s3_website-2.14.3 src/main/scala/s3/website/Ruby.scala
s3_website-2.14.2 src/main/scala/s3/website/Ruby.scala
s3_website-2.14.1 src/main/scala/s3/website/Ruby.scala
s3_website-2.14.0 src/main/scala/s3/website/Ruby.scala
s3_website-2.13.0 src/main/scala/s3/website/Ruby.scala
s3_website-2.12.3 src/main/scala/s3/website/Ruby.scala
s3_website-2.12.2 src/main/scala/s3/website/Ruby.scala
s3_website-2.12.1 src/main/scala/s3/website/Ruby.scala