angular-rails-templates 1.0.1 → 1.2.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: 8ab1b13e51cdc6b7f3e7a3f6159f0479f67c374a
4
- data.tar.gz: f8561c7c81112d0cf75446bb5a1adcfb9276cfc7
2
+ SHA256:
3
+ metadata.gz: 1187657170a520e6acf9b11b10441707ba2488d63b036a5aa969e4359aefbc9a
4
+ data.tar.gz: 8eb00bb6b0dee574e7a97eb59db301d7276e4b7f95b6c8a3910cec02bb1bab0a
5
5
  SHA512:
6
- metadata.gz: d95c383e517ebe42216c61eb19f841290f782c141600c24e35fb7d8f4cc3548c218f1591a26860fda2842ae94afd20ae6f9c966c45e799593cd8be08053d1cdb
7
- data.tar.gz: bd7f560bef3a1c9cb0aaf27111f14b2a1193ab3e608619d28a3d3428309eee0d78710a83f08343aa0c470937ff64fe0eb53c200f9879a0b12b76d953a2392264
6
+ metadata.gz: 41988403047779702863b3e765d3eb85c4a731667c2b9ac44028e4aeb3501bd261150800ee968a160d6cdb721e1682d7d7f5937a00acc0e70164f97b961d3297
7
+ data.tar.gz: '094afc3eed0aed70729dc45de370e3e9f778c039290dbe757b2284d74c588859d9d95aa714f921880501c2cf67d59bfa96ffbf9d37a4ccaffd7cdfb4b89707be'
data/README.md CHANGED
@@ -13,7 +13,7 @@ Adds your HTML templates into Angular's `$templateCache` using Rails asset pipel
13
13
 
14
14
  Branch | Build Status
15
15
  ------------|---------
16
- master | [![Build Status](https://travis-ci.org/pitr/angular-rails-templates.png?branch=master)](https://travis-ci.org/pitr/angular-rails-templates)
16
+ master | [![Build Status](https://github.com/pitr/angular-rails-templates/workflows/build/badge.svg)](https://github.com/pitr/angular-rails-templates)
17
17
  0-x-stable | [![Build Status](https://travis-ci.org/pitr/angular-rails-templates.png?branch=0-x-stable)](https://travis-ci.org/pitr/angular-rails-templates)
18
18
 
19
19
  It removes the need for AJAX calls to retrieve the templates (or for you to manually set them into the DOM).
@@ -204,7 +204,7 @@ By default this gem looks only at templates with `.html` suffix, eg. `foo.html`
204
204
 
205
205
  ## License
206
206
 
207
- MIT License. Copyright 2016 pitr
207
+ MIT License. Copyright 2017 pitr
208
208
 
209
209
  ## Authors & contributors
210
210
 
@@ -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.2.0'
3
3
  end
@@ -1,8 +1,8 @@
1
1
  // Angular Rails Templates <%= AngularRailsTemplates::VERSION %>
2
2
  //
3
- // angular_templates.ignore_prefix: <%= Rails.configuration.angular_templates.ignore_prefix %>
4
- // angular_templates.markups: <%= Rails.configuration.angular_templates.markups %>
5
- // angular_templates.htmlcompressor: <%= Rails.configuration.angular_templates.htmlcompressor %>
3
+ // angular_templates.ignore_prefix: <%= ::Rails.configuration.angular_templates.ignore_prefix %>
4
+ // angular_templates.markups: <%= ::Rails.configuration.angular_templates.markups %>
5
+ // angular_templates.htmlcompressor: <%= ::Rails.configuration.angular_templates.htmlcompressor %>
6
6
 
7
- angular.module("<%= Rails.configuration.angular_templates.module_name %>", []);
7
+ angular.module("<%= ::Rails.configuration.angular_templates.module_name %>", []);
8
8
 
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.2.0
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: 2022-08-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -18,20 +18,20 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '4.2'
21
+ version: '5.0'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '6'
24
+ version: '7.1'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: '4.2'
31
+ version: '5.0'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '6'
34
+ version: '7.1'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sprockets
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5'
55
55
  - !ruby/object:Gem::Dependency
56
- name: tilt
56
+ name: sprockets-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,19 +67,33 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: minitest
70
+ name: tilt
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
- type: :development
76
+ type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "<"
88
+ - !ruby/object:Gem::Version
89
+ version: '6'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "<"
95
+ - !ruby/object:Gem::Version
96
+ version: '6'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: capybara
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -144,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
158
  - !ruby/object:Gem::Version
145
159
  version: '0'
146
160
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.5.1
161
+ rubygems_version: 3.1.6
149
162
  signing_key:
150
163
  specification_version: 4
151
164
  summary: Use your angular templates with rails' asset pipeline