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 CHANGED
@@ -1,11 +1,6 @@
1
- begin
2
- require 'coffee_script'
3
- class CoffeeFilter < TextFilter
4
- def filter(text)
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
@@ -1,3 +1,3 @@
1
1
  module RadiantSheetsExtension
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  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
- @@javascript_filters << CoffeeFilter
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 8
10
- version: 1.0.8
9
+ - 9
10
+ version: 1.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Radiant CMS Dev Team