angular-rails-templates 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/angular-rails-templates/engine.rb +11 -1
- data/lib/angular-rails-templates/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ecc69424ed5a85900c3a2f5bd80fad58a3748c1
|
4
|
+
data.tar.gz: 31ad8c9b9a222e492b06fb599c7c581066839943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c94cd4601f52c33386d3af9ad795aee21209fc55ec4c6095bf47cd0a2a7569ce16c3ff97323f5bc57b2a95b83abb32557916f97783d8a31fb944e0d5738c71bd
|
7
|
+
data.tar.gz: 7584688e9ff567b218d16e8357dcf958c4ab09f488804b85ae41502a9f9fef8cbb0f660001214aa6a9e0a54c989b8afca0b26d2a541996da1b30c18764eeaa04
|
data/README.md
CHANGED
@@ -12,7 +12,9 @@ module AngularRailsTemplates
|
|
12
12
|
%w(erb haml liquid md radius slim str textile wiki).
|
13
13
|
each do |ext|
|
14
14
|
begin
|
15
|
-
|
15
|
+
silence_warnings do
|
16
|
+
config.angular_templates.markups << ext if Tilt[ext]
|
17
|
+
end
|
16
18
|
rescue LoadError
|
17
19
|
# They don't have the required library required. Oh well.
|
18
20
|
end
|
@@ -48,6 +50,14 @@ module AngularRailsTemplates
|
|
48
50
|
# This engine wraps the HTML into JS
|
49
51
|
Sprockets.register_engine '.html', AngularRailsTemplates::Template
|
50
52
|
end
|
53
|
+
|
54
|
+
# Sprockets Cache Busting
|
55
|
+
# If ART's version or settings change, expire and recompile all assets
|
56
|
+
app.config.assets.version = [
|
57
|
+
app.config.assets.version,
|
58
|
+
'ART',
|
59
|
+
Digest::MD5.hexdigest("#{VERSION}-#{app.config.angular_templates}")
|
60
|
+
].join '-'
|
51
61
|
end
|
52
62
|
end
|
53
63
|
end
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angular-rails-templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damien Mathieu
|
8
8
|
- pitr
|
9
|
+
- whitehat101
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
13
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: railties
|