ember-es6_template 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/build.yml +51 -0
- data/Gemfile +0 -1
- data/ember-es6_template.gemspec +2 -2
- data/lib/ember/es6_template/sprockets/coffee_script_helper.rb +3 -2
- data/lib/ember/es6_template/version.rb +1 -1
- metadata +14 -9
- data/.travis.yml +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cdec05ac2b5388e5cb8e0b436f3c193b5f5c958f59b64fc32604979e12c7c048
|
4
|
+
data.tar.gz: e7ce8d042b5de55a6a6dbad0510eb72e915118f7108708a81ca34ce3aa239641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6f53d784ba5da3d31eab09ffc82de35b184366788826653a94d08961149ca3a1d7877e1440e43300cf930ba8e5fc6b053133781e6579dfaa7bd8f5e6cfcdec1
|
7
|
+
data.tar.gz: e4d5a1e8d781ced0df0d58fefa9907621dd3154dab76c11e3f3b54bf3864a6deb950bfb208eec332fbe23f8a3678da04d261ba8013c09d81fd31db938aa68efa
|
@@ -0,0 +1,51 @@
|
|
1
|
+
name: Build
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
ruby-version:
|
12
|
+
- 2.5.8
|
13
|
+
- 2.6.6
|
14
|
+
- 2.7.1
|
15
|
+
sprockets-version:
|
16
|
+
- "~> 2.2.0"
|
17
|
+
- "~> 2.12.0"
|
18
|
+
- "~> 3.0.0"
|
19
|
+
- "~> 3.1.0"
|
20
|
+
- "~> 3.2.0"
|
21
|
+
- "~> 3.3.0"
|
22
|
+
- "~> 3.4.0"
|
23
|
+
- "~> 3.5.0"
|
24
|
+
- "~> 3.6.0"
|
25
|
+
- "~> 3.7.0"
|
26
|
+
- "~> 4.0.0"
|
27
|
+
|
28
|
+
container:
|
29
|
+
image: ruby:${{ matrix.ruby-version }}
|
30
|
+
|
31
|
+
steps:
|
32
|
+
- uses: actions/checkout@v2
|
33
|
+
- name: Setup Node.js
|
34
|
+
uses: actions/setup-node@v1
|
35
|
+
- uses: actions/cache@v2
|
36
|
+
with:
|
37
|
+
path: vendor/bundle
|
38
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
39
|
+
restore-keys: |
|
40
|
+
${{ runner.os }}-gems-
|
41
|
+
- name: Install dependencies
|
42
|
+
run: |
|
43
|
+
gem update --system
|
44
|
+
gem install bundler
|
45
|
+
bundle config set path vendor/bundle
|
46
|
+
bundle install --jobs 4 --retry 3
|
47
|
+
env:
|
48
|
+
SPROCKETS_VERSION: ${{ matrix.sprockets-version }}
|
49
|
+
- name: Run tests
|
50
|
+
run: |
|
51
|
+
bundle exec rake test
|
data/Gemfile
CHANGED
data/ember-es6_template.gemspec
CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency 'babel-transpiler', '>= 0.6.0', '< 0.8'
|
22
22
|
spec.add_dependency 'sprockets', '>= 2.2', '< 4.1'
|
23
23
|
|
24
|
-
spec.add_development_dependency 'bundler', '
|
25
|
-
spec.add_development_dependency 'rake', '~>
|
24
|
+
spec.add_development_dependency 'bundler', '>= 1.7', '< 3'
|
25
|
+
spec.add_development_dependency 'rake', '~> 12'
|
26
26
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
27
27
|
spec.add_development_dependency 'minitest-power_assert'
|
28
28
|
spec.add_development_dependency 'coffee-script', '~> 2.3'
|
@@ -3,9 +3,10 @@ module Ember
|
|
3
3
|
module CoffeeScriptHelper
|
4
4
|
def call(input)
|
5
5
|
data = input[:data]
|
6
|
+
filename = input[:filename]
|
6
7
|
|
7
|
-
result = input[:cache].fetch(_cache_key + [data]) do
|
8
|
-
if es6?(
|
8
|
+
result = input[:cache].fetch(_cache_key + [filename, data]) do
|
9
|
+
if es6?(filename)
|
9
10
|
transform(
|
10
11
|
Sprockets::Autoload::CoffeeScript.compile(data, bare: true),
|
11
12
|
input
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-es6_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryunosuke SATO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: babel-transpiler
|
@@ -54,30 +54,36 @@ dependencies:
|
|
54
54
|
name: bundler
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "
|
57
|
+
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '1.7'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3'
|
60
63
|
type: :development
|
61
64
|
prerelease: false
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
|
-
- - "
|
67
|
+
- - ">="
|
65
68
|
- !ruby/object:Gem::Version
|
66
69
|
version: '1.7'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '3'
|
67
73
|
- !ruby/object:Gem::Dependency
|
68
74
|
name: rake
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
70
76
|
requirements:
|
71
77
|
- - "~>"
|
72
78
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
79
|
+
version: '12'
|
74
80
|
type: :development
|
75
81
|
prerelease: false
|
76
82
|
version_requirements: !ruby/object:Gem::Requirement
|
77
83
|
requirements:
|
78
84
|
- - "~>"
|
79
85
|
- !ruby/object:Gem::Version
|
80
|
-
version: '
|
86
|
+
version: '12'
|
81
87
|
- !ruby/object:Gem::Dependency
|
82
88
|
name: minitest
|
83
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,8 +133,8 @@ executables: []
|
|
127
133
|
extensions: []
|
128
134
|
extra_rdoc_files: []
|
129
135
|
files:
|
136
|
+
- ".github/workflows/build.yml"
|
130
137
|
- ".gitignore"
|
131
|
-
- ".travis.yml"
|
132
138
|
- Gemfile
|
133
139
|
- LICENSE.txt
|
134
140
|
- README.md
|
@@ -168,8 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
174
|
- !ruby/object:Gem::Version
|
169
175
|
version: '0'
|
170
176
|
requirements: []
|
171
|
-
|
172
|
-
rubygems_version: 2.6.10
|
177
|
+
rubygems_version: 3.0.3
|
173
178
|
signing_key:
|
174
179
|
specification_version: 4
|
175
180
|
summary: The tilt template for Ember specified ES6.
|
data/.travis.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
sudo: false
|
4
|
-
|
5
|
-
rvm:
|
6
|
-
- 2.1.10
|
7
|
-
- 2.2.6
|
8
|
-
- 2.3.3
|
9
|
-
- 2.4.1
|
10
|
-
|
11
|
-
before_install:
|
12
|
-
- gem update bundler
|
13
|
-
|
14
|
-
env:
|
15
|
-
matrix:
|
16
|
-
- SPROCKETS_VERSION="~> 2.2.0"
|
17
|
-
- SPROCKETS_VERSION="~> 2.12.0"
|
18
|
-
- SPROCKETS_VERSION="~> 3.0.0"
|
19
|
-
- SPROCKETS_VERSION="~> 3.1.0"
|
20
|
-
- SPROCKETS_VERSION="~> 3.2.0"
|
21
|
-
- SPROCKETS_VERSION="~> 3.3.0"
|
22
|
-
- SPROCKETS_VERSION="~> 3.4.0"
|
23
|
-
- SPROCKETS_VERSION="~> 3.5.0"
|
24
|
-
- SPROCKETS_VERSION="~> 3.6.0"
|
25
|
-
- SPROCKETS_VERSION="~> 3.7.0"
|
26
|
-
- SPROCKETS_VERSION="~> 4.0.0.beta4"
|