sprockets-cjs 0.1.0 → 0.2.1

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: 64898acf10d5fe233bdd169808758a84fce68076
4
- data.tar.gz: 1c6fcc6b441b0f1273cbec13080b3b5042cefb8a
3
+ metadata.gz: 6fda491ba99e73dc038e758adeec5192cd244817
4
+ data.tar.gz: c59984d04be9225ba6ba8e7fcf0020168985b985
5
5
  SHA512:
6
- metadata.gz: 411b66b90a36da5426b002df41a05bd87eb6afff0c13a023a91a1c8ea8f4f72c9063c9af83bf1d39850b8c94d9d4688c4d321e156f84317041cbfe1b8726d8b7
7
- data.tar.gz: cfba1fe22f96ebc00ce6355712cbc40aba10bf10aa33bbbead9f7e37272566d4585281f122ae9fab2fbd44a53efb6432e4fdd471f1fae1e0000efe98f1608753
6
+ metadata.gz: 45ffafccbf38f889ba045b2a5e57f45c0be314f9bc7357bcf355bb999d0cd33953f2934945627ece963f60e131b01bf9890e23088d962e4935203a97f98b4a8c
7
+ data.tar.gz: 1f48905d757cdb8ec075619884f2227ed5fea0a2337fff49a9c06b1534ebf4feb57f710635217d243b54f5a18a660e698533ef31031a2a799f8a904f986b3e20
data/README.md CHANGED
@@ -37,3 +37,7 @@ One caveat to the approach this library takes, is that dependencies loaded throu
37
37
  1. Add your javascript files inside a `modules` folder
38
38
  1. Require all the modules, e.g.: `//= require_tree ./modules`
39
39
  1. Or, require individual modules, e.g.: `//= require ./modules/users`
40
+
41
+
42
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/giuliandrimba/sprockets-cjs/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
43
+
@@ -40,7 +40,7 @@ module Sprockets
40
40
  end
41
41
 
42
42
  def commonjs_module_name(scope)
43
- scope.logical_path.to_s
43
+ scope.logical_path.to_s.gsub("modules/","")
44
44
  end
45
45
 
46
46
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "sprockets-cjs"
6
- s.version = '0.1.0'
6
+ s.version = '0.2.1'
7
7
  s.authors = ["Alex MacCaw, Giulian Drimba"]
8
8
  s.email = ["info@eribium.org","giuliandrimba@gmail.com"]
9
9
  s.homepage = ""
@@ -24,7 +24,7 @@ class SprocketsCJSTest < Test::Unit::TestCase
24
24
  end
25
25
 
26
26
  def test_modularizes_modules
27
- assert_match %r[require.define\({\"modules/foo\":function], @output
27
+ assert_match %r[require.define\({"foo":function], @output
28
28
  assert_match %r["Foo!"], @output
29
29
  end
30
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-cjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacCaw, Giulian Drimba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets