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:
parent
562201f7dd
commit
84dc4295e5
3 changed files with 13 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
10
lib/awesome_print/version.rb
Normal file
10
lib/awesome_print/version.rb
Normal 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
|
Loading…
Reference in a new issue