boned 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +4 -0
- data/boned.gemspec +1 -1
- data/config.ru +2 -2
- data/lib/boned.rb +4 -2
- metadata +2 -2
data/CHANGES.txt
CHANGED
data/boned.gemspec
CHANGED
data/config.ru
CHANGED
@@ -14,7 +14,7 @@ disable :run # disable sinatra's auto-application starting
|
|
14
14
|
configure :production do
|
15
15
|
Boned.debug = false
|
16
16
|
|
17
|
-
map("/#{Boned::APIVERSION}/")
|
17
|
+
map("/bone/#{Boned::APIVERSION}/") { run Boned::API::Service }
|
18
18
|
|
19
19
|
end
|
20
20
|
|
@@ -24,7 +24,7 @@ configure :development do
|
|
24
24
|
require 'boned/api/debug'
|
25
25
|
require 'boned/api/redis'
|
26
26
|
|
27
|
-
map("/#{Boned::APIVERSION}/")
|
27
|
+
map("/bone/#{Boned::APIVERSION}/") { run Boned::API::Service }
|
28
28
|
map("/debug") { run Boned::API::Debug }
|
29
29
|
map("/redis") { run Boned::API::RedisViewer }
|
30
30
|
|
data/lib/boned.rb
CHANGED
@@ -23,7 +23,7 @@ module Boned
|
|
23
23
|
module VERSION
|
24
24
|
MAJOR = 0
|
25
25
|
MINOR = 2
|
26
|
-
TINY =
|
26
|
+
TINY = 4
|
27
27
|
PATCH = '001'
|
28
28
|
def self.inspect; [to_s, PATCH].join('.'); end
|
29
29
|
def self.to_s; [MAJOR, MINOR, TINY].join('.'); end
|
@@ -44,7 +44,6 @@ module Boned
|
|
44
44
|
class << self
|
45
45
|
attr_accessor :debug
|
46
46
|
attr_reader :conf
|
47
|
-
attr_accessor :redis
|
48
47
|
def debug?() @debug == true end
|
49
48
|
def enable_debug() @debug = true end
|
50
49
|
def disable_debug() @debug = false end
|
@@ -52,6 +51,9 @@ module Boned
|
|
52
51
|
@sysinfo = SysInfo.new.freeze if @sysinfo.nil?
|
53
52
|
@sysinfo
|
54
53
|
end
|
54
|
+
def redis()
|
55
|
+
@redis || Boned.connect
|
56
|
+
end
|
55
57
|
end
|
56
58
|
|
57
59
|
# Connect to Redis and Mongo.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boned
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-25 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|