Skip to content

Commit

Permalink
fixed dijit generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ivalkeen committed May 27, 2010
1 parent d98edb5 commit 2bc1097
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/depo.rb
Expand Up @@ -4,7 +4,7 @@
require 'active_support'

module Depo
VERSION = '0.0.5'
VERSION = '0.0.6'
autoload :Config, 'depo/config'
autoload :Build, 'depo/build'
autoload :DijitConventions, 'depo/dijit_conventions'
Expand Down
2 changes: 1 addition & 1 deletion lib/depo/dijit_conventions.rb
Expand Up @@ -52,7 +52,7 @@ def from_full_name(dijit_full_name)
end

def from_src(*args)
File.join(*args.flatten.unshift(Depo.config.src_path))
File.join(*args.flatten.unshift(Depo.config.src_path).delete_if { |x| x.nil? || x.empty? })
end

def j(*args)
Expand Down
5 changes: 5 additions & 0 deletions test/path_utils_test.rb
Expand Up @@ -15,4 +15,9 @@ def test_basics

assert_not_nil(dijit.to_hash)
end

def test_conventions
dijit=Depo::DijitConventions.new('app.Dijit')
assert_equal('public/ria/src/app', dijit.package_path)
end
end

0 comments on commit 2bc1097

Please sign in to comment.