ember-handlebars-template 0.2.2 → 0.3.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: e39a997b47f446618cdf52ff5fb79b4b2c3325de
4
- data.tar.gz: 14adc3d0d762cf488e408797d2e09447c1c1fb6c
3
+ metadata.gz: 0c662ad212984651e61be86f2b031478b4bb8e5d
4
+ data.tar.gz: b46859139c45de4219333f8fae8256f442c7495d
5
5
  SHA512:
6
- metadata.gz: 1350bce8f42c61cd28ecad88fd0ab8cf5dfd8287d9d83d57c9fdfc3e0eee45c3e9afe888c52dcb84344b6a794d5db99ad7ee168c4c7369035d9599f29f90c53d
7
- data.tar.gz: 3971b1acfcf5ab62cb61421982939e82637d1ff50ee0853197cacf875a5529b2a92146bdbc0c1cbe3ce03c130c9559029b90e29d5b81a77b0d017c31d32e3307
6
+ metadata.gz: 61772751209fdc4a9bf1a9a9514081a5db6efdf0d76950941c7f093b555cecdab53c55ca82ff39694c72c658e1c65ec3148e71eceb0687abb87eedbf1ac5a339
7
+ data.tar.gz: 3d0bd2034d67abbab092f3a4962fd3a7b50d60908489ee360e2bc2f143c2a9ee6530501377c8d9d974753f36a6be30eb3b2166ea6e23b3f7bf168bc8c8d42731
@@ -36,14 +36,10 @@ module Ember
36
36
  def template_path(path, config)
37
37
  root = config.templates_root
38
38
 
39
- if root.kind_of? Array
40
- root.each do |r|
39
+ unless root.empty?
40
+ Array(root).each.each do |r|
41
41
  path.sub!(/#{Regexp.quote(r)}\//, '')
42
42
  end
43
- else
44
- unless root.empty?
45
- path.sub!(/#{Regexp.quote(root)}\/?/, '')
46
- end
47
43
  end
48
44
 
49
45
  path = path.split('/')
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module Handlebars
3
- VERSION = '0.2.2'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-handlebars-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.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: 2015-06-03 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.5
145
+ rubygems_version: 2.4.7
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: The sprockets template for Ember Handlebars.