Sha256: 8f8aa17bcfa7a82649d409e0b4544e23a1b00d90308f27c452f66148be759a01

Contents?: true

Size: 221 Bytes

Versions: 9

Compression:

Stored size: 221 Bytes

Contents

class Thor
  module Actions
    class CreateFile
      class_eval do
        def identical?
          exists? && File.binread(destination).force_encoding(render.encoding) == render
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mandrill-template-manager-0.3.3 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.3.2 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.3.1 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.3.0 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.2.2 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.2.1 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.2.0 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.1.1 lib/mandrill_template/monkey_create_file.rb
mandrill-template-manager-0.1.0 lib/mandrill_template/monkey_create_file.rb