Permalink
Browse files

Added AwesomePrint.version

  • Loading branch information...
1 parent 562201f commit 84dc4295e51cf5983f84ec03d4b6f3b2a0071482 @michaeldv michaeldv committed Nov 24, 2011
Showing with 13 additions and 1 deletion.
  1. +2 −1 awesome_print.gemspec
  2. +1 −0 lib/awesome_print.rb
  3. +10 −0 lib/awesome_print/version.rb
View
@@ -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
@@ -14,6 +14,7 @@
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)
@@ -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

0 comments on commit 84dc429

Please sign in to comment.