summaryrefslogtreecommitdiffstats
path: root/lib/edoors.rb
blob: 8ef88235bd2345fac2f61b285efe38f98838d861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
# Copyright 2012 Jérémy Zurcher <jeremy@asynk.ch>
#
# This file is part of edoors-ruby.
#
# edoors-ruby 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.
#
# edoors-ruby 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 edoors-ruby.  If not, see <http://www.gnu.org/licenses/>.

require 'version'
#
module Edoors
    #
    PATH_SEP    = '/'.freeze
    ACT_SEP     = '?'.freeze
    #
    ACT_GET     = 'get'.freeze
    ACT_ERROR   = 'error'.freeze
    #
    SYS_ACT_HIBERNATE   = 'hibernate'.freeze
    SYS_ACT_ADD_LINK    = 'sys_add_link'.freeze
    SYS_ACT_ADD_ROOM    = 'sys_add_room'.freeze
    #
    FIELD_ERROR_MSG         = 'edoors_error'.freeze
    FIELD_HIBERNATE_PATH    = 'hibernate_path'.freeze
    #
    class Exception < ::Exception; end
    #
end
#
require 'json'
require 'edoors/particle'
require 'edoors/iota'
require 'edoors/room'
require 'edoors/spin'
require 'edoors/door'
require 'edoors/board'
require 'edoors/link'
#
# EOF