Sha256: c8b9faea093618e697f9386735908e4c8e3ed7ad3b8703e18d3dac87656e88a6

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

# From ruby_parser 3.x to fix warnings under ruby_parser 2.x
#
# ruby2ruby sets some constants, but not ONCE.  ruby_parser 2.x checks for
# ONCE and then causes duplicate definitions of ENC_*.
class Regexp
  ONCE = 0 unless defined? ONCE # FIX: remove this - it makes no sense

  unless defined? ENC_NONE then
    ENC_NONE = /x/n.options
    ENC_EUC  = /x/e.options
    ENC_SJIS = /x/s.options
    ENC_UTF8 = /x/u.options
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/lib/regexp_extensions.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/lib/regexp_extensions.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/lib/regexp_extensions.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/lib/regexp_extensions.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/lib/regexp_extensions.rb