firebolt 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ module Firebolt
24
24
  end
25
25
 
26
26
  def write_results_to_cache_file?
27
- ::Firebolt.config.use_file_warmer?
27
+ ::Firebolt.config.cache_file_enabled?
28
28
  end
29
29
  end
30
30
  end
@@ -1,16 +1,18 @@
1
1
  module Firebolt
2
2
  class Railtie < Rails::Railtie
3
+ config.firebolt = ::ActiveSupport::OrderedOptions.new
4
+
3
5
  initializer "firebolt.rails.configuration" do |app|
4
6
  # Configure Firebolt
5
7
  ::Firebolt.configure do |config|
8
+ # Set defaults based on Rails
9
+ config.cache = ::Rails.cache
10
+ config.cache_file_path = ::File.join(::Rails.root, 'tmp')
11
+
6
12
  app.config.firebolt.each do |config_key, config_value|
7
13
  config_setter = "#{config_key}="
8
14
  config.__send__(config_setter, config_value) if config.respond_to?(config_setter)
9
15
  end
10
-
11
- # Set defaults based on Rails
12
- config.cache ||= ::Rails.cache
13
- config.cache_file_path ||= ::File.join(::Rails.root, 'tmp')
14
16
  end
15
17
  end
16
18
 
@@ -1,3 +1,3 @@
1
1
  module Firebolt
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -20,7 +20,7 @@ module Firebolt
20
20
  # Private instance methods
21
21
  #
22
22
  def _warmer_expires_in
23
- @_warmer_expires_in ||= ::Firebolt.config.frequency + 1.hour
23
+ @_warmer_expires_in ||= ::Firebolt.config.warming_frequency + 1.hour
24
24
  end
25
25
 
26
26
  def _warmer_raise_failed_result
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-10 00:00:00.000000000 Z
13
+ date: 2013-05-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: 553194532783204057
118
+ hash: -2948642289275400619
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: 553194532783204057
127
+ hash: -2948642289275400619
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 1.8.25