Sha256: da1f29f653c59fba59ac73cd7e941f4c2e9cd69a3f84f4206328c4de446c44ee

Contents?: true

Size: 897 Bytes

Versions: 7

Compression:

Stored size: 897 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"
require "rspec/its"

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

7 entries across 7 versions & 1 rubygems

Version Path
lastpass-1.7.1 spec/spec_helper.rb
lastpass-1.7.0 spec/spec_helper.rb
lastpass-1.6.1 spec/spec_helper.rb
lastpass-1.6.0 spec/spec_helper.rb
lastpass-1.5.0 spec/spec_helper.rb
lastpass-1.4.0 spec/spec_helper.rb
lastpass-1.3.0 spec/spec_helper.rb