boned 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/CHANGES.txt +4 -0
  2. data/boned.gemspec +1 -1
  3. data/config.ru +2 -2
  4. data/lib/boned.rb +4 -2
  5. metadata +2 -2
@@ -1,5 +1,9 @@
1
1
  BONED, CHANGES
2
2
 
3
+ #### 0.2.4 (2010-01-25) ###############################
4
+
5
+ * CHANGE: URI path starts with /bone/v1 instead of just /v1
6
+
3
7
  #### 0.2.3 (2010-01-09) ###############################
4
8
 
5
9
  * CHANGE: Create server pid and log in /tmp rather than pwd
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "boned"
3
3
  s.rubyforge_project = 'boned'
4
- s.version = "0.2.3"
4
+ s.version = "0.2.4"
5
5
  s.summary = "The bone daemon"
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
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}/") { run Boned::API::Service }
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}/") { run Boned::API::Service }
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
 
@@ -23,7 +23,7 @@ module Boned
23
23
  module VERSION
24
24
  MAJOR = 0
25
25
  MINOR = 2
26
- TINY = 3
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.3
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-10 00:00:00 -05:00
12
+ date: 2010-01-25 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15