jekyll-coffeescript 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jekyll-coffeescript.rb +1 -1
- data/lib/jekyll-coffeescript/version.rb +5 -0
- data/lib/jekyll/converters/coffeescript.rb +1 -1
- metadata +19 -33
- data/.gitignore +0 -17
- data/.rspec +0 -2
- data/Gemfile +0 -2
- data/History.markdown +0 -13
- data/LICENSE.txt +0 -22
- data/README.md +0 -39
- data/Rakefile +0 -1
- data/jekyll-coffeescript.gemspec +0 -26
- data/script/bootstrap +0 -3
- data/script/cibuild +0 -3
- data/script/release +0 -3
- data/spec/coffeescript_spec.rb +0 -64
- data/spec/spec_helper.rb +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 70cc8a11f8084840edcdea696216486979383f42
|
|
4
|
+
data.tar.gz: ccc08cef80ba15035a0da491762f740a30e0a59b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d089066a032a0adc01c3f68affe723bc22cde460e7eae2b8504c03d8d7da37365d13e4d0de2686a27e17a1338adc5798a7aa156720dead7b118fb9e4a10ffdc8
|
|
7
|
+
data.tar.gz: d630766e7b1cf767930479618eda430b5db31d92e5444472c379ddea0a9e9c88611045bc4cdd52c42a613fe4097d10f9b141d0a3954ba25cf05308645e035637
|
data/lib/jekyll-coffeescript.rb
CHANGED
metadata
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-coffeescript
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Parker Moore
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: coffee-script
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '2.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '2.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: jekyll
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - ~>
|
|
31
|
+
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '2.0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - ~>
|
|
38
|
+
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '2.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - ~>
|
|
45
|
+
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '1.5'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - ~>
|
|
52
|
+
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '1.5'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rake
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '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
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rspec
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
description:
|
|
@@ -87,21 +87,9 @@ executables: []
|
|
|
87
87
|
extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
|
89
89
|
files:
|
|
90
|
-
- .gitignore
|
|
91
|
-
- .rspec
|
|
92
|
-
- Gemfile
|
|
93
|
-
- History.markdown
|
|
94
|
-
- LICENSE.txt
|
|
95
|
-
- README.md
|
|
96
|
-
- Rakefile
|
|
97
|
-
- jekyll-coffeescript.gemspec
|
|
98
90
|
- lib/jekyll-coffeescript.rb
|
|
91
|
+
- lib/jekyll-coffeescript/version.rb
|
|
99
92
|
- lib/jekyll/converters/coffeescript.rb
|
|
100
|
-
- script/bootstrap
|
|
101
|
-
- script/cibuild
|
|
102
|
-
- script/release
|
|
103
|
-
- spec/coffeescript_spec.rb
|
|
104
|
-
- spec/spec_helper.rb
|
|
105
93
|
homepage: https://github.com/jekyll/jekyll-coffeescript
|
|
106
94
|
licenses:
|
|
107
95
|
- MIT
|
|
@@ -112,20 +100,18 @@ require_paths:
|
|
|
112
100
|
- lib
|
|
113
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
102
|
requirements:
|
|
115
|
-
- -
|
|
103
|
+
- - ">="
|
|
116
104
|
- !ruby/object:Gem::Version
|
|
117
105
|
version: '0'
|
|
118
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
107
|
requirements:
|
|
120
|
-
- -
|
|
108
|
+
- - ">="
|
|
121
109
|
- !ruby/object:Gem::Version
|
|
122
110
|
version: '0'
|
|
123
111
|
requirements: []
|
|
124
112
|
rubyforge_project:
|
|
125
|
-
rubygems_version: 2.
|
|
113
|
+
rubygems_version: 2.2.2
|
|
126
114
|
signing_key:
|
|
127
115
|
specification_version: 4
|
|
128
116
|
summary: A CoffeeScript converter for Jekyll.
|
|
129
|
-
test_files:
|
|
130
|
-
- spec/coffeescript_spec.rb
|
|
131
|
-
- spec/spec_helper.rb
|
|
117
|
+
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/Gemfile
DELETED
data/History.markdown
DELETED
data/LICENSE.txt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2014 Parker Moore
|
|
2
|
-
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Jekyll::Coffeescript
|
|
2
|
-
|
|
3
|
-
A CoffeeScript converter for Jekyll.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
Add this line to your application's Gemfile:
|
|
8
|
-
|
|
9
|
-
gem 'jekyll-coffeescript'
|
|
10
|
-
|
|
11
|
-
And then execute:
|
|
12
|
-
|
|
13
|
-
$ bundle
|
|
14
|
-
|
|
15
|
-
Or install it yourself as:
|
|
16
|
-
|
|
17
|
-
$ gem install jekyll-coffeescript
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
In your Jekyll site, create CoffeeScript files that start with the following
|
|
22
|
-
lines:
|
|
23
|
-
|
|
24
|
-
```text
|
|
25
|
-
---
|
|
26
|
-
---
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
You need those three dashes in order for Jekyll to recognize it as
|
|
30
|
-
"convertible". They won't be included in the content passed to the CoffeeScript
|
|
31
|
-
compiler.
|
|
32
|
-
|
|
33
|
-
## Contributing
|
|
34
|
-
|
|
35
|
-
1. Fork it ( `http://github.com/<my-github-username>/jekyll-coffeescript/fork` )
|
|
36
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
37
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
38
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
|
39
|
-
5. Create new Pull Request
|
data/Rakefile
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require "bundler/gem_tasks"
|
data/jekyll-coffeescript.gemspec
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require 'jekyll-coffeescript'
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = "jekyll-coffeescript"
|
|
8
|
-
spec.version = Jekyll::Coffeescript::VERSION
|
|
9
|
-
spec.authors = ["Parker Moore"]
|
|
10
|
-
spec.email = ["parkrmoore@gmail.com"]
|
|
11
|
-
spec.summary = %q{A CoffeeScript converter for Jekyll.}
|
|
12
|
-
spec.homepage = "https://github.com/jekyll/jekyll-coffeescript"
|
|
13
|
-
spec.license = "MIT"
|
|
14
|
-
|
|
15
|
-
spec.files = `git ls-files`.split($/)
|
|
16
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
18
|
-
spec.require_paths = ["lib"]
|
|
19
|
-
|
|
20
|
-
spec.add_runtime_dependency "coffee-script", "~> 2.2"
|
|
21
|
-
|
|
22
|
-
spec.add_development_dependency "jekyll", "~> 1.0"
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.5"
|
|
24
|
-
spec.add_development_dependency "rake"
|
|
25
|
-
spec.add_development_dependency "rspec"
|
|
26
|
-
end
|
data/script/bootstrap
DELETED
data/script/cibuild
DELETED
data/script/release
DELETED
data/spec/coffeescript_spec.rb
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
|
-
describe(Jekyll::Converters::CoffeeScript) do
|
|
4
|
-
let(:configuration) { Jekyll::Configuration::DEFAULTS }
|
|
5
|
-
let(:converter) do
|
|
6
|
-
Jekyll::Converters::CoffeeScript.new(configuration)
|
|
7
|
-
end
|
|
8
|
-
let(:coffeescript_content) do
|
|
9
|
-
<<-COFFEESCRIPT
|
|
10
|
-
# Functions:
|
|
11
|
-
square = (x) -> x * x
|
|
12
|
-
|
|
13
|
-
# Arrays:
|
|
14
|
-
list = [1, 2, 3, 4, 5]
|
|
15
|
-
|
|
16
|
-
# Objects:
|
|
17
|
-
math =
|
|
18
|
-
root: Math.sqrt
|
|
19
|
-
square: square
|
|
20
|
-
cube: (x) -> x * square x
|
|
21
|
-
COFFEESCRIPT
|
|
22
|
-
end
|
|
23
|
-
let(:js_content) do
|
|
24
|
-
<<-JS
|
|
25
|
-
(function() {
|
|
26
|
-
var list, math, square;
|
|
27
|
-
|
|
28
|
-
square = function(x) {
|
|
29
|
-
return x * x;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
list = [1, 2, 3, 4, 5];
|
|
33
|
-
|
|
34
|
-
math = {
|
|
35
|
-
root: Math.sqrt,
|
|
36
|
-
square: square,
|
|
37
|
-
cube: function(x) {
|
|
38
|
-
return x * square(x);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
}).call(this);
|
|
43
|
-
JS
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
context "matching file extensions" do
|
|
47
|
-
it "matches .coffee files" do
|
|
48
|
-
expect(converter.matches(".coffee")).to be_true
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
context "determining the output file extension" do
|
|
53
|
-
it "always outputs the .js file extension" do
|
|
54
|
-
expect(converter.output_ext(".always-js-dont-matter")).to eql(".js")
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
context "converting CoffeeScript" do
|
|
59
|
-
it "produces CSS" do
|
|
60
|
-
expect(converter.convert(coffeescript_content)).to eql(js_content)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
end
|
data/spec/spec_helper.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# This file was generated by the `rspec --init` command. Conventionally, all
|
|
2
|
-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
|
3
|
-
# Require this file using `require "spec_helper"` to ensure that it is only
|
|
4
|
-
# loaded once.
|
|
5
|
-
#
|
|
6
|
-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
|
7
|
-
RSpec.configure do |config|
|
|
8
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
|
9
|
-
config.run_all_when_everything_filtered = true
|
|
10
|
-
config.filter_run :focus
|
|
11
|
-
|
|
12
|
-
# Run specs in random order to surface order dependencies. If you find an
|
|
13
|
-
# order dependency and want to debug it, you can fix the order by providing
|
|
14
|
-
# the seed, which is printed after each run.
|
|
15
|
-
# --seed 1234
|
|
16
|
-
config.order = 'random'
|
|
17
|
-
end
|