Sha256: cb31132a1b4bc42a28a5d353f621d27b1ef11ad488d8b5ec65475285a116756d

Contents?: true

Size: 618 Bytes

Versions: 13

Compression:

Stored size: 618 Bytes

Contents

#
#       ActiveFacts Generators.
#       Provides version number from the --version option
#
# Copyright (c) 2009 Clifford Heath. Read the LICENSE file.
#
require 'activefacts/persistence'

module ActiveFacts
  module Generate
    # Generate nothing from an ActiveFacts vocabulary. This is useful to check the file can be read ok.
    # Invoke as
    #   afgen --null <file>.cql
    class VERSION
    private
      def initialize(vocabulary, *options)
        puts ActiveFacts::VERSION
        exit 0
      end

    public
    end
  end
end

ActiveFacts::Registry.generator('version', ActiveFacts::Generate::VERSION)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
activefacts-1.6.0 lib/activefacts/generate/version.rb
activefacts-1.5.3 lib/activefacts/generate/version.rb
activefacts-1.5.2 lib/activefacts/generate/version.rb
activefacts-1.5.1 lib/activefacts/generate/version.rb
activefacts-1.5.0 lib/activefacts/generate/version.rb
activefacts-1.3.0 lib/activefacts/generate/version.rb
activefacts-1.2.1 lib/activefacts/generate/version.rb
activefacts-1.2.0 lib/activefacts/generate/version.rb
activefacts-1.1.0 lib/activefacts/generate/version.rb
activefacts-1.0.2 lib/activefacts/generate/version.rb
activefacts-1.0.1 lib/activefacts/generate/version.rb
activefacts-1.0.0 lib/activefacts/generate/version.rb
activefacts-0.8.18 lib/activefacts/generate/version.rb