angular-rails-templates 1.0.1 → 1.0.2

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: 8ab1b13e51cdc6b7f3e7a3f6159f0479f67c374a
4
- data.tar.gz: f8561c7c81112d0cf75446bb5a1adcfb9276cfc7
3
+ metadata.gz: b7a913ea7ff0a8d5d35385c3782b16a5bf24489a
4
+ data.tar.gz: ed14518c5d29a708678fa10039b58012907788de
5
5
  SHA512:
6
- metadata.gz: d95c383e517ebe42216c61eb19f841290f782c141600c24e35fb7d8f4cc3548c218f1591a26860fda2842ae94afd20ae6f9c966c45e799593cd8be08053d1cdb
7
- data.tar.gz: bd7f560bef3a1c9cb0aaf27111f14b2a1193ab3e608619d28a3d3428309eee0d78710a83f08343aa0c470937ff64fe0eb53c200f9879a0b12b76d953a2392264
6
+ metadata.gz: 2ac074a1b3c72332f0c544a4dbf45db2ffa18cb2130ee76350d9c3414ede70e835d24bf2c5cf1b94e55e5837a223f9603d894e61d1d88668d6b003db76005cc4
7
+ data.tar.gz: c31f791930b276544484fba8ff3ce9a9ebdf85b0d1f94df46fea1fc0389b8d4fe8ec5ac4d2ac7120e976f89fa051436fd271185b99c373abed3f7a559e95413d
@@ -58,8 +58,12 @@ module AngularRailsTemplates
58
58
  end
59
59
 
60
60
  def register(env, ext)
61
- if ::Sprockets::VERSION.to_i < 4
62
- env.register_engine ".#{ext}", ::Tilt[ext] # Legacy Sprockets
61
+ if ::Sprockets::VERSION.to_i < 4 # Legacy Sprockets
62
+ args = [".#{ext}", ::Tilt[ext]]
63
+ if ::Sprockets::VERSION.to_i == 3
64
+ args << { mime_type: "text/ng-#{ext}", silence_deprecation: true }
65
+ end
66
+ env.register_engine(*args)
63
67
  else
64
68
  instance.add_template(ext, ::Tilt[ext])
65
69
 
@@ -1,3 +1,3 @@
1
1
  module AngularRailsTemplates
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angular-rails-templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Mathieu
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-02 00:00:00.000000000 Z
13
+ date: 2016-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties