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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: '063780611c1b55c443aca76c12d385e18f7387e5'
4
- data.tar.gz: 7c3b8b2cf94a4604d2363e0e424dd588da9b38d9
2
+ SHA256:
3
+ metadata.gz: cdec05ac2b5388e5cb8e0b436f3c193b5f5c958f59b64fc32604979e12c7c048
4
+ data.tar.gz: e7ce8d042b5de55a6a6dbad0510eb72e915118f7108708a81ca34ce3aa239641
5
5
  SHA512:
6
- metadata.gz: 3a48b7e76219c06e74e70947c0d9c04fd65d108eab4bf1f9c76aa28ad5e0cbe1e2e7fe8b5d00934d595b735273905674841791f4283d4856ba0b42eede3171fe
7
- data.tar.gz: 3b4421fd52380ba976ff275b66be146481f46a6074c559bebde036424553c36d977cf2fee1a44e5c273e8f512482038e1177cbcf1243c91485170388c1981376
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
@@ -3,4 +3,3 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'sprockets', ENV['SPROCKETS_VERSION'] if ENV['SPROCKETS_VERSION']
6
- gem 'rack', '~> 1.6' if RUBY_VERSION < '2.2'
@@ -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', '~> 1.7'
25
- spec.add_development_dependency 'rake', '~> 10.0'
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?(input[:filename])
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
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module ES6Template
3
- VERSION = '0.6.0'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
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.6.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: 2017-03-24 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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
- rubyforge_project:
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.
@@ -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"