Sha256: ec76287878d3071de7b751a469f2ec89a2d7851b94c0e8ac3a318d49024ac641

Contents?: true

Size: 320 Bytes

Versions: 44

Compression:

Stored size: 320 Bytes

Contents

module Qa::Authorities
  # for use with Faraday; encode spaces as '%20' not '+'
  class AssignFast::SpaceFixEncoder
    def encode(hash)
      encoded = Faraday::NestedParamsEncoder.encode(hash)
      encoded.gsub('+', '%20')
    end

    def decode(str)
      Faraday::NestedParamsEncoder.decode(str)
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
qa-5.14.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.13.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.12.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.11.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.10.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.9.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.8.1 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.8.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.7.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.6.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.5.2 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-4.3.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-3.1.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-2.3.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.5.1 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.5.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.4.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.3.1 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.3.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb
qa-5.2.0 lib/qa/authorities/assign_fast/space_fix_encoder.rb