Sha256: f6008304e9051367adebc3c92065ac360a5bf3e9238bc7a0feec1cc99f11494d

Contents?: true

Size: 223 Bytes

Versions: 10

Compression:

Stored size: 223 Bytes

Contents

require "adeia/engine"

module Adeia
  @@api_patterns = []
  mattr_accessor :api_patterns

  def self.api_urls=(urls)
    self.api_patterns = urls.map do |url|
      url.gsub(/\//, "\\/").gsub(/\*/, ".*")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
adeia-1.0.0 lib/adeia.rb
adeia-0.15.4 lib/adeia.rb
adeia-0.15.3 lib/adeia.rb
adeia-0.15.2 lib/adeia.rb
adeia-0.15.1 lib/adeia.rb
adeia-0.15.0 lib/adeia.rb
adeia-0.14.0 lib/adeia.rb
adeia-0.13.1 lib/adeia.rb
adeia-0.13.0 lib/adeia.rb
adeia-0.12.0 lib/adeia.rb