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 +4 -4
- data/lib/rjs-rails/build_env.rb +4 -0
- data/lib/rjs-rails/runtime_env.rb +8 -4
- data/lib/rjs-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff38938652a0701fef1f2104811298da7d5060a
|
4
|
+
data.tar.gz: bc0792ad64df754893be31ebfd62e7a769350aa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a7d56035c5930620b2e96dd3057f9ceedef9c188ce605fe5717e7a28a7d774fcffb77d9f8ad98f1466e0ee21433233f62ff02937d85ad7e1573c724ee657f10
|
7
|
+
data.tar.gz: a5c343914c6528fa5cceb2f2b893c9f262ea9f5d8c967068b9495cc56b349228201c7a22deee15f9d87df744adf414175744185b6ea4b31498bcdc09766df61d
|
data/lib/rjs-rails/build_env.rb
CHANGED
@@ -12,7 +12,7 @@ module RjsRails
|
|
12
12
|
return @base_config if @base_config
|
13
13
|
base_config = {
|
14
14
|
"baseUrl" => baseurl,
|
15
|
-
"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
|
-
|
59
|
+
mpaths = {}
|
60
60
|
module_names.each { |m| paths[m] = module_path(m) }
|
61
|
-
|
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
|
data/lib/rjs-rails/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|