jekyll-coffeescript 1.2.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-coffeescript.rb +10 -10
- data/lib/jekyll-coffeescript/version.rb +7 -7
- data/lib/jekyll/converters/coffeescript.rb +28 -28
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae91bceee4ef41b2f0744b696310493418ed0d24ca286e52a857867151509258
|
4
|
+
data.tar.gz: 2cdb830ebc51b03c38dcc5fbaa945119ff09ae09a940f5806745b687966f196e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3696d95ea6ec6d4a880b51df6516070c4aec2a0cdd1c3545d1938d660cf25d24a3426f92748f2ae6af59a863bb94ec3fce3bb616524c6fb34c6518615322c85
|
7
|
+
data.tar.gz: 1c47c6b8ad1874381a56a5c8b73e041b05cfe024f7a1d9b825f28a2456ea5103c63e3c8c355705d7900b4a876a2e1b2a082d55d4ba84e6c4c648411397a5f9dd
|
data/lib/jekyll-coffeescript.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "jekyll"
|
4
|
-
require "jekyll-coffeescript/version"
|
5
|
-
require "jekyll/converters/coffeescript"
|
6
|
-
|
7
|
-
module Jekyll
|
8
|
-
module Coffeescript
|
9
|
-
end
|
10
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "jekyll"
|
4
|
+
require "jekyll-coffeescript/version"
|
5
|
+
require "jekyll/converters/coffeescript"
|
6
|
+
|
7
|
+
module Jekyll
|
8
|
+
module Coffeescript
|
9
|
+
end
|
10
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Jekyll
|
4
|
-
module Coffeescript
|
5
|
-
VERSION = "
|
6
|
-
end
|
7
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Jekyll
|
4
|
+
module Coffeescript
|
5
|
+
VERSION = "2.0.0"
|
6
|
+
end
|
7
|
+
end
|
@@ -1,28 +1,28 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Jekyll
|
4
|
-
module Converters
|
5
|
-
class CoffeeScript < Converter
|
6
|
-
safe true
|
7
|
-
priority :low
|
8
|
-
|
9
|
-
def setup
|
10
|
-
require "coffee-script"
|
11
|
-
@setup = true
|
12
|
-
end
|
13
|
-
|
14
|
-
def matches(ext)
|
15
|
-
ext.casecmp(".coffee").zero?
|
16
|
-
end
|
17
|
-
|
18
|
-
def output_ext(_ext)
|
19
|
-
".js"
|
20
|
-
end
|
21
|
-
|
22
|
-
def convert(content)
|
23
|
-
setup unless @setup
|
24
|
-
::CoffeeScript.compile(content)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Jekyll
|
4
|
+
module Converters
|
5
|
+
class CoffeeScript < Converter
|
6
|
+
safe true
|
7
|
+
priority :low
|
8
|
+
|
9
|
+
def setup
|
10
|
+
require "coffee-script"
|
11
|
+
@setup = true
|
12
|
+
end
|
13
|
+
|
14
|
+
def matches(ext)
|
15
|
+
ext.casecmp(".coffee").zero?
|
16
|
+
end
|
17
|
+
|
18
|
+
def output_ext(_ext)
|
19
|
+
".js"
|
20
|
+
end
|
21
|
+
|
22
|
+
def convert(content)
|
23
|
+
setup unless @setup
|
24
|
+
::CoffeeScript.compile(content)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-coffeescript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parker Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: jekyll
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '4.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '4.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,15 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
131
131
|
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 2.
|
133
|
+
version: 2.4.0
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
|
-
|
141
|
-
rubygems_version: 2.7.9
|
140
|
+
rubygems_version: 3.0.3
|
142
141
|
signing_key:
|
143
142
|
specification_version: 4
|
144
143
|
summary: A CoffeeScript converter for Jekyll.
|