sprockets-babel 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9c4cf7a8200098de6db2ca45c9eac7164061315
4
- data.tar.gz: 67fed6d43a14b1bc5f0d6d0da6bb96924a90ff23
3
+ metadata.gz: 3fee6ce8cf87c1204ba73444c6329c2ff0b1c795
4
+ data.tar.gz: a1703e06c818aa62f2d6e40757ed0d8f4ef64571
5
5
  SHA512:
6
- metadata.gz: d04db0f75174c667651adaeb0fd1d89b41b36a7a55d3a593065a438b194a05e9092a8512382614d4e4e9b9fe8a7f73af2c5e764091d6dba0b15d6a9e8bd804ff
7
- data.tar.gz: 874515edfcde09b5839201f237e2c397a5ac103da7b56a31982de13f623baa7b8e5e3da8e9030ac8e44b69a646eee50f26309baae03775f8d1e3f40a7706e49e
6
+ metadata.gz: 0314e0ca21804effb3c7519a8fa876f1d1d8e067087160af94bc6af347657f8945380c154e472b124cf1ad285326ab8122a8cfaf4ffd8d1aeab15fc7cdccb804
7
+ data.tar.gz: 866f0d2b441f131217d6718da72322624551b7f96da0b394ea4b78859b1e0399963adfb95d94ea85171307353117ca806d3e8ea63b6db839047db63c5db90d65
@@ -100,7 +100,7 @@ module Sprockets
100
100
  "'use strict';\n" +
101
101
  stripped + "\n" +
102
102
  'return (typeof module.exports === \'undefined\') ? exports : module.exports;' +
103
- "})();\n" + trailing_text
103
+ "})();\n" + trailing_text + "\n"
104
104
  end
105
105
 
106
106
  def self.resolve_relative_module_id(source_module_id, target_module_id)
@@ -111,9 +111,9 @@ module Sprockets
111
111
  target_path_parts.shift if target_path_parts[0] == '.'
112
112
 
113
113
  source_path_parts = source_module_id.split(/\//)
114
- source_path_parts.pop
114
+ source_path_parts.pop # ignore filename part
115
115
  while target_path_parts.length > 0 && target_path_parts[0] == '..'
116
- target_path_parts.pop
116
+ target_path_parts.shift
117
117
  source_path_parts.pop if source_path_parts.length > 0
118
118
  end
119
119
  parts = source_path_parts.concat(target_path_parts)
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Babel
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-babel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets