firebolt 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/firebolt/cache_worker.rb +1 -1
- data/lib/firebolt/railtie.rb +6 -4
- data/lib/firebolt/version.rb +1 -1
- data/lib/firebolt/warmer.rb +1 -1
- metadata +4 -4
data/lib/firebolt/railtie.rb
CHANGED
@@ -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
|
|
data/lib/firebolt/version.rb
CHANGED
data/lib/firebolt/warmer.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
127
|
+
hash: -2948642289275400619
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
130
|
rubygems_version: 1.8.25
|