Sha256: dbfbdc8f1cf1c177d20f12740ac13853d47af40ff7d4e87b6dc50734d5603ec7

Contents?: true

Size: 209 Bytes

Versions: 54

Compression:

Stored size: 209 Bytes

Contents

module Fog
  module Google
    class Mock
      def self.etag
        hex(32)
      end

      def self.hex(length)
        max = ("f" * length).to_i(16)
        rand(max).to_s(16)
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/google/mock.rb
fog-google-1.24.0 lib/fog/google/mock.rb
fog-google-1.23.0 lib/fog/google/mock.rb
fog-google-1.22.0 lib/fog/google/mock.rb
fog-google-1.21.1 lib/fog/google/mock.rb
fog-google-1.21.0 lib/fog/google/mock.rb
fog-google-1.20.0 lib/fog/google/mock.rb
fog-google-1.19.0 lib/fog/google/mock.rb
fog-google-1.18.0 lib/fog/google/mock.rb
fog-google-1.17.0 lib/fog/google/mock.rb
fog-google-1.16.1 lib/fog/google/mock.rb
fog-google-1.16.0 lib/fog/google/mock.rb
fog-google-1.15.0 lib/fog/google/mock.rb
fog-google-1.14.0 lib/fog/google/mock.rb
gitlab-fog-google-1.14.0 lib/fog/google/mock.rb
fog-google-1.13.0 lib/fog/google/mock.rb
gitlab-fog-google-1.13.0 lib/fog/google/mock.rb
fog-google-1.12.1 lib/fog/google/mock.rb
fog-google-1.12.0 lib/fog/google/mock.rb
fog-google-1.11.0 lib/fog/google/mock.rb