seajs-rails 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.
- data/app/helpers/seajs_helper.rb +10 -5
- data/lib/seajs/rails/version.rb +1 -1
- metadata +2 -2
data/app/helpers/seajs_helper.rb
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
module SeajsHelper
|
|
2
2
|
# generate seajs.use()
|
|
3
|
-
# if you use a module in base dir,please add #
|
|
4
3
|
def seajs_use(*modules)
|
|
5
4
|
seajs_config = Rails.application.config.seajs
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
modules.map! do |m|
|
|
7
|
+
if m.start_with? '#'
|
|
8
|
+
m[1..-1]
|
|
9
|
+
else
|
|
10
|
+
if seajs_config.compiled?
|
|
11
|
+
seajs_config.family + '/' + m
|
|
12
|
+
else
|
|
13
|
+
'/assets/' + m
|
|
14
|
+
end
|
|
15
|
+
end
|
|
11
16
|
end
|
|
12
17
|
|
|
13
18
|
html = <<-html
|
data/lib/seajs/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seajs-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-06-
|
|
12
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: railties
|