require 'json' module Joosy PACKAGE = File.expand_path("../../package.json", __FILE__) # Converting semver to the notation compatible with rubygems VERSION = JSON.parse(File.read(PACKAGE))['version'].gsub '-', '.' def self.assets_paths [ File.expand_path('../../source', __FILE__) ] end def self.generators_path File.expand_path '../../generators', __FILE__ end def self.templates_path File.expand_path '../../generators/templates', __FILE__ end end