summaryrefslogtreecommitdiffstats
path: root/lib/iotas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-18 17:22:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-18 17:22:53 +0200
commitb838d426001c0dbbea1af753a49f6eaf2f4e2443 (patch)
tree6a8f5a86cd4e5392ad77f8fc98a5c00c89983416 /lib/iotas.rb
parent250bfe34771aa568d83ca1a1ce0e875e14d39ed6 (diff)
downloadedoors-ruby-b838d426001c0dbbea1af753a49f6eaf2f4e2443.zip
edoors-ruby-b838d426001c0dbbea1af753a49f6eaf2f4e2443.tar.gz
add VERSION, move some constants
Diffstat (limited to 'lib/iotas.rb')
-rw-r--r--lib/iotas.rb16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/iotas.rb b/lib/iotas.rb
index abafc7c..4ac8c26 100644
--- a/lib/iotas.rb
+++ b/lib/iotas.rb
@@ -26,30 +26,18 @@ module Iotas
ACT_SEP = '?'.freeze
#
ACT_GET = 'get'.freeze
- ACT_FOLLOW = 'follow'.freeze
ACT_ERROR = 'error'.freeze
#
SYS_ACT_HIBERNATE = 'hibernate'.freeze
SYS_ACT_ADD_LINK = 'sys_add_link'.freeze
#
- LNK_SRC = 'edoors_lnk_src'.freeze
- LNK_DSTS = 'edoors_lnk_dsts'.freeze
- LNK_FIELDS = 'edoors_lnk_fields'.freeze
- LNK_CONDF = 'edoors_lnk_condf'.freeze
- LNK_CONDV = 'edoors_lnk_condv'.freeze
- #
FIELD_ERROR_MSG = 'edoors_error'.freeze
FIELD_HIBERNATE_PATH= 'hibernate_path'.freeze
#
- ERROR_ROUTE_NS = 'routing error: no source'.freeze
- ERROR_ROUTE_RRWD = 'routing error: right room, wrong door'.freeze
- ERROR_ROUTE_DDWR = 'routing error: drill down, wrong room'.freeze
- ERROR_ROUTE_TRWR = 'routing error: top room, wrong room'.freeze
- ERROR_ROUTE_NDNL = 'routing error: no destination, no link'.freeze
- ERROR_ROUTE_SND = 'routing error: system no destination'.freeze
- #
class Exception < ::Exception; end
#
+ VERSION = "0.0.1"
+ #
end
#
require 'json'