ember-emblem-template 0.4.0 → 0.5.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
2
  SHA1:
3
- metadata.gz: fa3efbf2513af652751774004b18418a357e6b0a
4
- data.tar.gz: b1f987e1fcb1c75b17ec910b579f1b1d55da1d9a
3
+ metadata.gz: 306175bd1316e7ad8e678b99df4dd2715cf8e501
4
+ data.tar.gz: fd6f37dde558a35677fd7ed70d45e8db54e707af
5
5
  SHA512:
6
- metadata.gz: 9cc863c0c1a73a0f7a3c4c0de82c03cdf457e9edf6a84e7782e51fffe90b43d8ca8fdafbdd338c270515780358bcef3fc8fd7c267491f07224ba5a68421eaaad
7
- data.tar.gz: e0d197302a96d0b7b484daf13065fc8b8f7212c879367af6b85934be7e8ac8c2fc7c2576f4ea9059f2d772872de4b4099a14d2316d82e3b29b5c64d5ef9470d2
6
+ metadata.gz: 3c6d2175298e2a9d512ce559408d6ddb036cc7e49bf399986ac9041d3fc7bbcd4b5aa013962a6697cd14782476882a55afd4223b3e4e335d33bc9eda2be94c9a
7
+ data.tar.gz: 822ba5ba54ba0bcfeb2f7afbc6dae2e78718e0cb00feb78cb224cb3bb47e37317dec70f43431f572923f48d19d77f6cc01c9ba64b349827d1dfde3b50af1312c
@@ -2,6 +2,10 @@ language: ruby
2
2
  sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.0.0
6
- - 2.1
7
- - 2.2
5
+ - 2.2.7
6
+ - 2.3.4
7
+ - 2.4.1
8
+ env:
9
+ matrix:
10
+ - SPROCKETS_VERSION="~> 3.7.0"
11
+ - SPROCKETS_VERSION="~> 4.0.0.beta.4"
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in ember-emblem-template.gemspec
4
4
  gemspec
5
5
 
6
- gem 'sprockets'
6
+ gem 'sprockets', ENV['SPROCKETS_VERSION'] if ENV['SPROCKETS_VERSION']
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'ember-handlebars-template', '~> 0.7.0'
22
- spec.add_dependency 'sprockets-rails', '~> 2.0'
23
22
 
24
23
  spec.add_development_dependency 'bundler', '~> 1.7'
25
24
  spec.add_development_dependency 'rake', '~> 10.0'
@@ -3,7 +3,7 @@ module Ember
3
3
  module Rails
4
4
  class Engine < ::Rails::Engine
5
5
  initializer "ember_rails.setup", after: :append_assets_path, group: :all do |app|
6
- app.assets.register_engine '.emblem', Ember::Emblem::Template, mime_type: 'application/javascript'
6
+ Ember::Emblem::Template.setup app.assets
7
7
  end
8
8
  end
9
9
  end
@@ -11,7 +11,8 @@ module Ember
11
11
 
12
12
  class Template < Ember::Handlebars::Template
13
13
  def self.setup(env)
14
- env.register_engine '.emblem', self, mime_type: 'application/javascript'
14
+ env.register_mime_type 'text/x-emblem', extensions: ['.emblem']
15
+ env.register_transformer 'text/x-emblem', 'application/javascript', Ember::Emblem::Template
15
16
  end
16
17
 
17
18
  def self.config
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module Emblem
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-emblem-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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: 2016-02-22 00:00:00.000000000 Z
11
+ date: 2017-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ember-handlebars-template
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.7.0
27
- - !ruby/object:Gem::Dependency
28
- name: sprockets-rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement