summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-18 22:27:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-18 22:27:16 +0200
commit3ded6f94e1c0f8a16087d0fadec80f4e9b2d85a6 (patch)
treecfd30a3b0de02b6b1b5d5cdada064d0ae078e441
parent5871cef7932248ccee007afef9c150ceb274db19 (diff)
downloadedoors-ruby-3ded6f94e1c0f8a16087d0fadec80f4e9b2d85a6.zip
edoors-ruby-3ded6f94e1c0f8a16087d0fadec80f4e9b2d85a6.tar.gz
add lib/version.rb
-rw-r--r--iotas.gemspec2
-rw-r--r--lib/iotas.rb3
-rw-r--r--lib/version.rb28
3 files changed, 30 insertions, 3 deletions
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