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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24c37140cf93f2763edaaede689472c9da41f032
4
- data.tar.gz: 73d1b78bad8d66866d4d624e24c5c8606dd1d3b2
3
+ metadata.gz: 5ecc69424ed5a85900c3a2f5bd80fad58a3748c1
4
+ data.tar.gz: 31ad8c9b9a222e492b06fb599c7c581066839943
5
5
  SHA512:
6
- metadata.gz: 0750667db7c8058119939fec8a51f4ee3f96c88eba23696fa44059299b2a21066579ceafdbefc668cadcda6997e4f147886133f43ffb8c861352a7d652f019a4
7
- data.tar.gz: 314ebbdc4c9e271dfd6933015b2192a84b857184a8054cc54c6a61aec25785afe35d552ee1088b5b6898baa55bd609a683634ed1357ce842da66cde2bf942a04
6
+ metadata.gz: c94cd4601f52c33386d3af9ad795aee21209fc55ec4c6095bf47cd0a2a7569ce16c3ff97323f5bc57b2a95b83abb32557916f97783d8a31fb944e0d5738c71bd
7
+ data.tar.gz: 7584688e9ff567b218d16e8357dcf958c4ab09f488804b85ae41502a9f9fef8cbb0f660001214aa6a9e0a54c989b8afca0b26d2a541996da1b30c18764eeaa04
data/README.md CHANGED
@@ -205,3 +205,4 @@ MIT License. Copyright 2014 Pitr
205
205
 
206
206
  * Damien Mathieu <42@dmathieu.com>
207
207
  * pitr <pitr.vern@gmail.com>
208
+ * Jeremy Ebler <jebler@gmail.com>
@@ -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
- config.angular_templates.markups << ext if Tilt[ext]
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
@@ -1,3 +1,3 @@
1
1
  module AngularRailsTemplates
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  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.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-01 00:00:00.000000000 Z
13
+ date: 2014-05-20 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: railties