jammit 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/jammit.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jammit'
3
- s.version = '0.1.2' # Keep version in sync with jammit.rb
3
+ s.version = '0.1.3' # Keep version in sync with jammit.rb
4
4
  s.date = '2009-11-17'
5
5
 
6
6
  s.homepage = "http://documentcloud.github.com/jammit/"
@@ -84,4 +84,8 @@ end
84
84
 
85
85
  ::JammitController = Jammit::Controller
86
86
 
87
- ApplicationController.append_before_filter { Jammit.reload! } if RAILS_ENV == 'development'
87
+ if RAILS_ENV == 'development'
88
+ ActionController::Base.class_eval do
89
+ append_before_filter { Jammit.reload! }
90
+ end
91
+ end
data/lib/jammit.rb CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path(File.dirname(__FILE__))
4
4
  # to all of the configuration options.
5
5
  module Jammit
6
6
 
7
- VERSION = "0.1.2"
7
+ VERSION = "0.1.3"
8
8
 
9
9
  ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
10
10
 
@@ -43,8 +43,7 @@ module Jammit
43
43
  end
44
44
 
45
45
  # Force a reload by resetting the Packager and reloading the configuration.
46
- # In development, this will be called before every request to the
47
- # @Jammit::Controller@.
46
+ # In development, this will be called as a before_filter before every request.
48
47
  def self.reload!
49
48
  Thread.current[:jammit_packager] = nil
50
49
  load_configuration(@config_path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jammit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas