Permalink
Browse files

moved version to version.rb file

  • Loading branch information...
1 parent 3230549 commit 57f8f7ad394203e0ae2723cbf64b06529f97ec2b @qoobaa committed Jun 13, 2010
Showing with 6 additions and 2 deletions.
  1. +1 −2 lib/magic.rb
  2. +5 −0 magic.gemspec
View
@@ -6,10 +6,9 @@
require "magic/api"
require "magic/constants"
require "magic/database"
+require "magic/version"
module Magic
- VERSION = "0.2.5"
-
class << self
# Guesses mime of given file
#
View
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
+lib = File.expand_path("../lib/", __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require "magic/version"
+
Gem::Specification.new do |s|
s.name = "magic"
s.version = Magic::VERSION

0 comments on commit 57f8f7a

Please sign in to comment.