Sha256: 60cf1faf707f29c3ddc397d106c0f4c210535bdbe309e986f265984d169d71a2

Contents?: true

Size: 360 Bytes

Versions: 31

Compression:

Stored size: 360 Bytes

Contents

require 'digest/sha1'

module ETL #:nodoc:
  module Transform #:nodoc:
    # Transform which hashes the original value with a SHA-1 hash algorithm
    class Sha1Transform < ETL::Transform::Transform
      # Transform the value with a SHA1 digest algorithm.
      def transform(name, value, row)
        Digest::SHA1.hexdigest(value)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 9 rubygems

Version Path
aeden-activewarehouse-etl-0.9.1 etl/lib/etl/transform/sha1_transform.rb
colincasey-activewarehouse-etl-0.9.4 lib/etl/transform/sha1_transform.rb
colincasey-activewarehouse-etl-0.9.5 lib/etl/transform/sha1_transform.rb
factorylabs-activewarehouse-etl-0.9.1.2 lib/etl/transform/sha1_transform.rb
factorylabs-activewarehouse-etl-0.9.1.3 lib/etl/transform/sha1_transform.rb
factorylabs-activewarehouse-etl-0.9.1.4 lib/etl/transform/sha1_transform.rb
factorylabs-activewarehouse-etl-0.9.1.5 lib/etl/transform/sha1_transform.rb
factorylabs-activewarehouse-etl-0.9.1.6 lib/etl/transform/sha1_transform.rb
factorylabs-activewarehouse-etl-0.9.1.7 lib/etl/transform/sha1_transform.rb
jayzes-activewarehouse-etl-0.9.1.1 lib/etl/transform/sha1_transform.rb
jayzes-activewarehouse-etl-0.9.1.2 lib/etl/transform/sha1_transform.rb
jayzes-activewarehouse-etl-0.9.1 lib/etl/transform/sha1_transform.rb
activewarehouse-etl-1.0.0 lib/etl/transform/sha1_transform.rb
activewarehouse-etl-1.0.0.rc1 lib/etl/transform/sha1_transform.rb
etl-0.9.5.rc1 lib/etl/transform/sha1_transform.rb
activewarehouse-etl-sgonyea-0.9.6 lib/etl/transform/sha1_transform.rb
activewarehouse-etl-0.9.5.rc1 lib/etl/transform/sha1_transform.rb
darrell-activewarehouse-etl-0.9.1.6 lib/etl/transform/sha1_transform.rb
darrell-activewarehouse-etl-0.9.1.4 lib/etl/transform/sha1_transform.rb
factorylabs-activewarehouse-etl-0.9.1.8 lib/etl/transform/sha1_transform.rb