From 3ded6f94e1c0f8a16087d0fadec80f4e9b2d85a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= <jeremy@asynk.ch>
Date: Fri, 18 May 2012 22:27:16 +0200
Subject: add lib/version.rb

---
 iotas.gemspec  |  2 +-
 lib/iotas.rb   |  3 +--
 lib/version.rb | 28 ++++++++++++++++++++++++++++
 3 files changed, 30 insertions(+), 3 deletions(-)
 create mode 100644 lib/version.rb

diff --git a/iotas.gemspec b/iotas.gemspec
index 6b799bd..e9afddf 100644
--- a/iotas.gemspec
+++ b/iotas.gemspec
@@ -2,7 +2,7 @@
 # -*- coding: UTF-8 -*-
 #
 $:.push File.expand_path("../lib", __FILE__)
-require 'iotas'
+require 'version'
 #
 Gem::Specification.new do |s|
     s.name = "iotas"
diff --git a/lib/iotas.rb b/lib/iotas.rb
index 4ac8c26..fe837b4 100644
--- a/lib/iotas.rb
+++ b/lib/iotas.rb
@@ -18,6 +18,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with iotas.  If not, see <http://www.gnu.org/licenses/>.
 
+require 'version'
 #
 module Iotas
     #
@@ -36,8 +37,6 @@ module Iotas
     #
     class Exception < ::Exception; end
     #
-    VERSION = "0.0.1"
-    #
 end
 #
 require 'json'
diff --git a/lib/version.rb b/lib/version.rb
new file mode 100644
index 0000000..4504564
--- /dev/null
+++ b/lib/version.rb
@@ -0,0 +1,28 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+# Copyright 2012 Jérémy Zurcher <jeremy@asynk.ch>
+#
+# This file is part of iotas.
+#
+# iotas is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iotas is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with iotas.  If not, see <http://www.gnu.org/licenses/>.
+
+#
+module Iotas
+    #
+    VERSION = "0.0.1"
+    #
+end
+#
+# EOF
-- 
cgit v1.1-2-g2b99