Sha256: d1094bf8f6f1543557c84fc62a093a74504e6490fb676ac5a82d7587834af875

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

module Sniffles
  module Sniffers
    class Sitefinity
      include Text
      
      attr_accessor :doc
      attr_reader :output
      
      def initialize(response_body)
        @output = {}        
        parse(response_body) && process_document
      end
      
      def process_document
        if @output[:found] = found?
          sitefinity_version
        end
      end
      
      private
      def found?
        match?(/content="Sitefinity/)
      end    
      
      def sitefinity_version
        @output[:version] = capture(/content="Sitefinity\s([\d*].[\d+])/)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sniffles-0.2.0 lib/sniffles/sniffers/cms/sitefinity.rb
sniffles-0.1.5 lib/sniffles/sniffers/cms/sitefinity.rb