1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Added AwesomePrint.version

This commit is contained in:
Mike Dvorkin 2011-11-23 21:47:05 -08:00
parent 562201f7dd
commit 84dc4295e5
3 changed files with 13 additions and 1 deletions

View file

@ -4,6 +4,7 @@
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
require "rake"
require File.dirname(__FILE__) + "/lib/awesome_print/version"
task :default => :spec
@ -15,7 +16,7 @@ end
Gem::Specification.new do |s|
s.name = "awesome_print"
s.version = "1.0.0"
s.version = AwesomePrint.version
# s.platform = Gem::Platform::RUBY
s.authors = "Michael Dvorkin"
s.date = "2011-11-08"

View file

@ -14,6 +14,7 @@ unless defined?(AwesomePrint)
require File.dirname(__FILE__) + "/awesome_print/inspector"
require File.dirname(__FILE__) + "/awesome_print/formatter"
require File.dirname(__FILE__) + "/awesome_print/version"
require File.dirname(__FILE__) + "/awesome_print/core_ext/logger" if defined?(Logger)
require File.dirname(__FILE__) + "/awesome_print/ext/action_view" if defined?(ActionView)

View file

@ -0,0 +1,10 @@
# Copyright (c) 2010-2011 Michael Dvorkin
#
# Awesome Print is freely distributable under the terms of MIT license.
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
module AwesomePrint
def self.version
'1.0.0'
end
end