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.
- data/lib/jsdebug-rails.rb +0 -10
- data/lib/jsdebug/railtie.rb +3 -3
- data/lib/jsdebug/version.rb +1 -1
- metadata +3 -3
data/lib/jsdebug-rails.rb
CHANGED
@@ -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
|
data/lib/jsdebug/railtie.rb
CHANGED
@@ -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.
|
7
|
-
app.assets.register_processor 'application/javascript', Jsdebug::Rails::DirectiveProcessor
|
6
|
+
app.assets.unregister_preprocessor 'application/javascript', Sprockets::DirectiveProcessor
|
8
7
|
|
9
|
-
app.assets.
|
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
|
data/lib/jsdebug/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: jsdebug-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
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
|
+
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
|
37
|
+
version: 2.0.0
|
38
38
|
type: :runtime
|
39
39
|
version_requirements: *id002
|
40
40
|
- !ruby/object:Gem::Dependency
|