rjs-rails 0.0.1 → 0.0.2

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: b059627e7c4b6f1e515338d289b4ec37dff7b865
4
- data.tar.gz: ed3121cd6a6ffb02c1f3329e714645d695df1909
3
+ metadata.gz: dff38938652a0701fef1f2104811298da7d5060a
4
+ data.tar.gz: bc0792ad64df754893be31ebfd62e7a769350aa9
5
5
  SHA512:
6
- metadata.gz: 52f5e01eda1731d3118a3c2e14b4ec47c3790dc1281aca3ccf24afd5eff1199ed668a21a41b0d8def059fb803fcaa2e0da27fee98fad3da704f94b657a59bcf8
7
- data.tar.gz: c2c39222397c61709591c9a81bc0764659b18ac122cf0902e0371d0404ee2e7bb80ec367d00a1ce00daaead9a7685fbd0259e12f57ade2131d03ceaf0e7b5001
6
+ metadata.gz: 7a7d56035c5930620b2e96dd3057f9ceedef9c188ce605fe5717e7a28a7d774fcffb77d9f8ad98f1466e0ee21433233f62ff02937d85ad7e1573c724ee657f10
7
+ data.tar.gz: a5c343914c6528fa5cceb2f2b893c9f262ea9f5d8c967068b9495cc56b349228201c7a22deee15f9d87df744adf414175744185b6ea4b31498bcdc09766df61d
@@ -44,6 +44,10 @@ module RjsRails
44
44
  config["shim"] || {}
45
45
  end
46
46
 
47
+ def paths
48
+ config["paths"] || {}
49
+ end
50
+
47
51
  def assets_for_precompile
48
52
  js = []
49
53
  js << 'require.js'
@@ -12,7 +12,7 @@ module RjsRails
12
12
  return @base_config if @base_config
13
13
  base_config = {
14
14
  "baseUrl" => baseurl,
15
- "paths" => module_paths,
15
+ "paths" => paths,
16
16
  "shim" => shims,
17
17
  "waitSeconds" => 0
18
18
  }
@@ -56,10 +56,14 @@ module RjsRails
56
56
  end
57
57
 
58
58
  def module_paths
59
- paths = {}
59
+ mpaths = {}
60
60
  module_names.each { |m| paths[m] = module_path(m) }
61
- paths
62
- end
61
+ mpaths
62
+ end
63
+
64
+ def paths
65
+ module_paths.merge(Rails.application.config.rjs.build_env.paths)
66
+ end
63
67
 
64
68
  def static_template
65
69
  erb_template = <<-EOF
@@ -1,3 +1,3 @@
1
1
  module RjsRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - neeraj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-24 00:00:00.000000000 Z
11
+ date: 2013-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails