jspreprocessor 0.0.5 → 0.0.6

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: f91d629073dd5f0532792720d24e40d5b4210038
4
- data.tar.gz: 7ebba3da9267e4e4e7e3031f6f3aadebfd39f64d
3
+ metadata.gz: 8c8dbe76fac6050fb08055538eb6b1109d0b13db
4
+ data.tar.gz: fea5ead62221f1ae02961d75ec0780288de18df8
5
5
  SHA512:
6
- metadata.gz: 880e574729072bdd60e542087a840226fac8069e1d188efbc36573fb6281991e3854ac601b1cdac28583a570afb86869939d26ebeeec5b7cb983ee55bee94d7a
7
- data.tar.gz: ea2479cc82fe13f4148354564e3292a3097ea27665aa3c8e15768cc522e44e75d783c8c532ee3779e4a015de9bf1ed295badb249b51384b7f7acb87c760cb776
6
+ metadata.gz: c5bff1e3aaa13235ec5c235298fad4bdf2b4a8f6e0a4aa503f535486ea6eddbdae21d5a44164890aeb8b7c9eb27bfb070d6ff858559ba92b64d3feea2d73a547
7
+ data.tar.gz: ecaf032d8062e2c0eb47c8bd89d17ec62ea40406d118e3a0012f907c5b5e3f2d79ba098b631aec3f55861da7f9e7cd8f13b2932358d5e1da6e8b95cff090bc9c
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jspreprocessor"
7
- spec.version = '0.0.5'
7
+ spec.version = '0.0.6'
8
8
  spec.authors = ["Caleb Albritton"]
9
9
  spec.email = ["ithinkincode@gmail.com"]
10
10
  spec.summary = %q{Like Browserify but the C way.}
@@ -4,4 +4,4 @@
4
4
  var s = new Stuff();
5
5
  s.doStuff();
6
6
 
7
- #include 'lib/other'
7
+ #include "lib/other"
@@ -66,7 +66,7 @@ class JSPreprocessor
66
66
 
67
67
  file[index] = library
68
68
  else # this is not an inclusion guard, so it's relative
69
- to_include = cwd + line[10..-2] + '.js'
69
+ to_include = cwd + line.match(/('|")(.*)('|")/)[2] + '.js'
70
70
  next_wd = Pathname.new(to_include).dirname.to_s + '/'
71
71
  next_file = File.open(to_include).read.split("\n")
72
72
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jspreprocessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Albritton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-03 00:00:00.000000000 Z
11
+ date: 2015-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler