bumbleworks 0.0.45 → 0.0.46

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,7 +114,7 @@ module Bumbleworks
114
114
  end
115
115
 
116
116
  def set_up_storage_history
117
- if Bumbleworks.storage_adapter.allow_history_storage?
117
+ if Bumbleworks.store_history? && Bumbleworks.storage_adapter.allow_history_storage?
118
118
  dashboard.add_service('history', 'ruote/log/storage_history', 'Ruote::StorageHistory')
119
119
  end
120
120
  end
@@ -1,3 +1,3 @@
1
1
  module Bumbleworks
2
- VERSION = "0.0.45"
2
+ VERSION = "0.0.46"
3
3
  end
@@ -258,6 +258,15 @@ describe Bumbleworks::Ruote do
258
258
  Bumbleworks.dashboard.should_receive(:add_service).never
259
259
  described_class.set_up_storage_history
260
260
  end
261
+
262
+ it 'does not add a storage history service to the dashboard if turned off in config' do
263
+ storage_adapter = double('adapter', :allow_history_storage? => true)
264
+ Bumbleworks.storage_adapter = storage_adapter
265
+ described_class.stub(:storage => Ruote::HashStorage.new({}))
266
+ Bumbleworks.dashboard.should_receive(:add_service).never
267
+ Bumbleworks.store_history = false
268
+ described_class.set_up_storage_history
269
+ end
261
270
  end
262
271
 
263
272
  describe '.register_participants' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumbleworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.45
4
+ version: 0.0.46
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-11-26 00:00:00.000000000 Z
15
+ date: 2013-12-02 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: ruote
@@ -244,18 +244,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
244
  - - ! '>='
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
- segments:
248
- - 0
249
- hash: 2245939095029135345
250
247
  required_rubygems_version: !ruby/object:Gem::Requirement
251
248
  none: false
252
249
  requirements:
253
250
  - - ! '>='
254
251
  - !ruby/object:Gem::Version
255
252
  version: '0'
256
- segments:
257
- - 0
258
- hash: 2245939095029135345
259
253
  requirements: []
260
254
  rubyforge_project:
261
255
  rubygems_version: 1.8.23
@@ -304,3 +298,4 @@ test_files:
304
298
  - spec/spec_helper.rb
305
299
  - spec/support/path_helpers.rb
306
300
  - spec/support/tracer.rb
301
+ has_rdoc: