seajs-rails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- if seajs_config.compiled?
8
- modules.map! { |m| seajs_config.family + '/' + m }
9
- else
10
- modules.map! { |m| '/assets/' + m }
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
@@ -1,6 +1,6 @@
1
1
  module Seajs
2
2
  module Rails
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  SEAJS_VERSION = "2.0.0"
5
5
  end
6
6
  end
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.5
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-05 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties