lsd/guard-phpspec

View on GitHub
lib/guard/phpspec/version.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Guard
  VERSION = "0.0.2"

  module Version
    MAJOR   = Integer(VERSION.split('.')[0])
    MINOR   = Integer(VERSION.split('.')[1])
    PATCH   = Integer(VERSION.split('.')[2])

    def self.to_a
      [MAJOR, MINOR, PATCH]
    end

    def self.to_s
      VERSION
    end
  end

  # Guard::PHPSpecVersion used in gem spec
  module PHPSpecVersion
    VERSION = Version.to_s
  end
end