Sha256: 613513e202b239d2b7c58c17cbdb0d14df22bd073718e21cdc8c05c10e235415

Contents?: true

Size: 877 Bytes

Versions: 5

Compression:

Stored size: 877 Bytes

Contents

# Copyright (C) 2013 Dmitry Yakimenko (detunized@gmail.com).
# Licensed under the terms of the MIT license. See LICENCE for details.

# Only calculate test coverage on TravisCI
if ENV["CI"] == "true" && ENV["TRAVIS"] == "true"
    require "coveralls"
    Coveralls.wear!
end

require "base64"
require "lastpass"

class String
    def decode64
        Base64.decode64 self
    end

    def decode_hex
        scan(/../).map { |i| i.to_i 16 }.pack "c*"
    end
end

module LastPass
    class Session
        def == other
            id == other.id && key_iteration_count == other.key_iteration_count
        end
    end

    class Blob
        def == other
            bytes == other.bytes && key_iteration_count == other.key_iteration_count
        end
    end

    class Chunk
        def == other
            id == other.id && payload == other.payload
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lastpass-1.2.1 spec/spec_helper.rb
lastpass-1.2.0 spec/spec_helper.rb
lastpass-1.1.0 spec/spec_helper.rb
lastpass-1.0.1 spec/spec_helper.rb
lastpass-1.0.0 spec/spec_helper.rb