From dfaca096a93dd5393d415a06c038125dccc4ffc8 Mon Sep 17 00:00:00 2001 From: Greg Jastrab Date: Fri, 19 Dec 2008 18:37:17 -0500 Subject: [PATCH] 0.1.2 - Fixed way directories were passed Running puremvc-gen commands in a Windows directory that had spaces somewhere in the path e.g. C:\Documents and Settings\ was causing a failure. Wrapped the directory parameters in quotes in order for the entire directory to be properly passed. --- History.txt | 5 +++++ bin/puremvc-gen | 2 +- lib/pure_m_v_c_gen/version.rb | 2 +- puremvc-gen.gemspec | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/History.txt b/History.txt index fb98b0d..ddefbe6 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,8 @@ +=== 0.1.2 / 2008-12-19 + +* Wrapped directory parameters passed to ANT in quotes + * A path on Windows like C:\Documents and Settings\... previously caused an error + === 0.1.1 / 2008-12-18 * Working on Windows! diff --git a/bin/puremvc-gen b/bin/puremvc-gen index ad70220..2e221ee 100644 --- a/bin/puremvc-gen +++ b/bin/puremvc-gen @@ -7,7 +7,7 @@ PMVC_GEN_HOME = File.join(File.dirname(__FILE__), '..', 'conf') BUILDFILE = File.join(PMVC_GEN_HOME, 'build.xml') def call_ant(args='') - system "#{ANT_BIN} -f #{File.expand_path BUILDFILE} -Dpmvcgen.dir=#{File.expand_path PMVC_GEN_HOME} -Dbasedir=#{Dir.pwd} #{args}" + system "#{ANT_BIN} -f #{File.expand_path BUILDFILE} -Dpmvcgen.dir=\"#{File.expand_path PMVC_GEN_HOME}\" -Dbasedir=\"#{Dir.pwd}\" #{args}" end cmd = CmdParse::CommandParser.new(true, true) diff --git a/lib/pure_m_v_c_gen/version.rb b/lib/pure_m_v_c_gen/version.rb index 43c0566..c2e12ce 100644 --- a/lib/pure_m_v_c_gen/version.rb +++ b/lib/pure_m_v_c_gen/version.rb @@ -12,7 +12,7 @@ module PureMVCGen MAJOR = 0 MINOR = 1 - TINY = 1 + TINY = 2 ARRAY = [MAJOR, MINOR, TINY] STRING = ARRAY.join(".") diff --git a/puremvc-gen.gemspec b/puremvc-gen.gemspec index 4d36565..3ba14f6 100644 --- a/puremvc-gen.gemspec +++ b/puremvc-gen.gemspec @@ -2,11 +2,11 @@ Gem::Specification.new do |s| s.name = %q{puremvc-gen} - s.version = "0.1.1" + s.version = "0.1.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Greg Jastrab"] - s.date = %q{2008-12-18} + s.date = %q{2008-12-19} s.default_executable = %q{puremvc-gen} s.description = %q{An ANT-based PureMVC generator.} s.email = %q{gjastrab.dev@gmail.com}