radiant-sheets-extension 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/coffee_filter.rb +4 -9
- data/lib/radiant-sheets-extension/version.rb +1 -1
- data/sheets_extension.rb +6 -1
- metadata +3 -3
data/lib/coffee_filter.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
CoffeeScript.compile text
|
6
|
-
end
|
1
|
+
require 'coffee_script'
|
2
|
+
class CoffeeFilter < TextFilter
|
3
|
+
def filter(text)
|
4
|
+
CoffeeScript.compile text
|
7
5
|
end
|
8
|
-
rescue ExecJS::RuntimeUnavailable
|
9
|
-
Rails.logger.warn "There is no support for CoffeeScript"
|
10
|
-
class CoffeeFilter;end
|
11
6
|
end
|
data/sheets_extension.rb
CHANGED
@@ -14,7 +14,12 @@ class SheetsExtension < Radiant::Extension
|
|
14
14
|
@@stylesheet_filters ||= []
|
15
15
|
@@stylesheet_filters += [SassFilter, ScssFilter]
|
16
16
|
@@javascript_filters ||= []
|
17
|
-
|
17
|
+
|
18
|
+
begin
|
19
|
+
@@javascript_filters << CoffeeFilter
|
20
|
+
rescue ExecJS::RuntimeUnavailable
|
21
|
+
Rails.logger.warn "There is no support for CoffeeScript"
|
22
|
+
end
|
18
23
|
|
19
24
|
def activate
|
20
25
|
SassFilter
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-sheets-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 9
|
10
|
+
version: 1.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Radiant CMS Dev Team
|