jsdebug-rails 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,13 +7,3 @@ module Jsdebug
7
7
  require "jsdebug/version"
8
8
  end
9
9
  end
10
-
11
- # TODO: Remove in 1.0.0 Version
12
- if defined?(Rails::VERSION::STRING) && Rails::VERSION::STRING.match(/^3\.1\.0\.beta/)
13
- message = "WARNING: Jsdebug-rails #{Jsdebug::Rails::VERSION} is incompatible with Rails #{Rails::VERSION::STRING}. Please upgrade to Rails 3.1.0.rc1 or higher."
14
- if defined?(Rails.logger) && Rails.logger
15
- Rails.logger.warn(message)
16
- else
17
- warn(message)
18
- end
19
- end
@@ -3,10 +3,10 @@ module Jsdebug
3
3
  module Rails
4
4
  class Railtie < ::Rails::Railtie
5
5
  config.after_initialize do |app|
6
- app.assets.unregister_processor 'application/javascript', Sprockets::DirectiveProcessor
7
- app.assets.register_processor 'application/javascript', Jsdebug::Rails::DirectiveProcessor
6
+ app.assets.unregister_preprocessor 'application/javascript', Sprockets::DirectiveProcessor
8
7
 
9
- app.assets.register_processor 'application/javascript', Jsdebug::Rails::Processor
8
+ app.assets.register_preprocessor 'application/javascript', Jsdebug::Rails::DirectiveProcessor
9
+ app.assets.register_preprocessor 'application/javascript', Jsdebug::Rails::Processor
10
10
  end
11
11
  end
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Jsdebug
2
2
  module Rails
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jsdebug-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeremy Peterson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-13 00:00:00 Z
13
+ date: 2011-09-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tilt
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - "="
36
36
  - !ruby/object:Gem::Version
37
- version: 2.0.0.beta.10
37
+ version: 2.0.0
38
38
  type: :runtime
39
39
  version_requirements: *id002
40
40
  - !ruby/object:Gem::Dependency