Skip to content

Commit

Permalink
v0.0.14 -fix extend support source
Browse files Browse the repository at this point in the history
  • Loading branch information
zfben committed Sep 2, 2011
1 parent 2e36eed commit 8c9b9f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/zfben_libjs.rb
Expand Up @@ -30,9 +30,10 @@ def tip msg


class Zfben_libjs::Libjs class Zfben_libjs::Libjs
def build! def build!
tip '== Starting Build' tip '== Starting Build =='


if @opts[:config].has_key?('before') if @opts[:config].has_key?('before')
tip '== Runing Before Scripts =='
load @opts[:config]['before'] load @opts[:config]['before']
end end
tip '== [1/2] Starting Progress Source ==' tip '== [1/2] Starting Progress Source =='
Expand Down Expand Up @@ -74,7 +75,6 @@ def build!


@urls = {} @urls = {}


p @libs
@libs.each do |lib, path| @libs.each do |lib, path|
path = [path] unless path.class == Array path = [path] unless path.class == Array
path = path.map{ |url| path = path.map{ |url|
Expand Down
3 changes: 2 additions & 1 deletion lib/zfben_libjs/initialize.rb
Expand Up @@ -96,12 +96,13 @@ def merge_and_convert_options opts
opts[name] opts[name]
options[name] = options[name].merge(opts[name]) options[name] = options[name].merge(opts[name])
when 'Array' when 'Array'
opts[name] = [opts[name]] if opts[name].class.to_s != 'Array'
options[name] = (options[name] + opts[name]).uniq options[name] = (options[name] + opts[name]).uniq
end end
end end
end end


options[:support_source].each{ |f| require f } options[:support_source].each{ |f| require File.realpath(f) }


return options return options
end end
Expand Down
2 changes: 1 addition & 1 deletion zfben_libjs.gemspec
Expand Up @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'zfben_libjs' s.name = 'zfben_libjs'
s.version = '0.0.13' s.version = '0.0.14'
s.authors = ["Ben"] s.authors = ["Ben"]
s.email = ["ben@zfben.com"] s.email = ["ben@zfben.com"]
s.homepage = "https://github.com/benz303/zfben_libjs" s.homepage = "https://github.com/benz303/zfben_libjs"
Expand Down

0 comments on commit 8c9b9f7

Please sign in to comment.