Skip to content

Commit

Permalink
Merge pull request #16 from sylus/master
Browse files Browse the repository at this point in the history
Fix for using the sass @import declaration which was not working
  • Loading branch information
Paul Jackson authored and Paul Jackson committed May 29, 2012
2 parents f8d9a77 + 325c962 commit 45320e0
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,4 +1,5 @@
nbproject/*
.sass-cache/
.DS_Store
jruby.jar
jruby.jar
build/lib/vendors
2 changes: 1 addition & 1 deletion src/base/build.properties
Expand Up @@ -16,7 +16,7 @@ antcontribs.jar=${lib.dir}/ant-contrib-1.0b3.jar
cssurlembed.jar=${lib.dir}/cssembed-0.4.5.jar

#jRuby Properties
jruby.jar=${lib.dir}/jruby-complete-1.6.7.2.jar
jruby.jar=${lib.dir}/jruby.jar

#jLESS Properties
#jless.jar=test.jar
Expand Down
7 changes: 3 additions & 4 deletions src/base/build.xml
Expand Up @@ -10,7 +10,7 @@
<!-- Include jruby + gems (compass + sass + zengrids) -->
<target name="build-jar" depends="jar.check" unless="jar.exists">
<mkdir dir="${lib.dir}/jruby-compiled" />
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.6.7.2/jruby-complete-1.6.7.2.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview1/jruby-complete-1.7.0.preview1.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://production.cf.rubygems.org/gems/compass-0.12.1.gem" dest="${lib.dir}/jruby-compiled/compass.gem"/>
<get src="http://production.cf.rubygems.org/gems/sass-3.1.19.gem" dest="${lib.dir}/jruby-compiled/sass.gem"/>
<get src="http://production.cf.rubygems.org/gems/zen-grids-1.2.gem" dest="${lib.dir}/jruby-compiled/zen-grids.gem"/>
Expand All @@ -21,7 +21,6 @@
<arg line="-uf jruby.jar -C vendors ." />
</exec>
<delete dir="${lib.dir}/jruby-compiled" />
<delete dir="${lib.dir}/vendors" />
</target>
<target name="jar.check">
<condition property="jar.exists">
Expand All @@ -32,7 +31,7 @@
<!-- Compile all of the SCSS files into their CSS counterparts "ant compile.sass" -->
<target name="compile.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ compile ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ compile ${src.dir}"/>
</java>
<echo level="info">
---Converted CSS SCSS Files into CSS---
Expand All @@ -41,7 +40,7 @@
<!-- Watch for any polling changes in the SCSS directory "ant watch.sass" -->
<target name="watch.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ watch ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ watch ${src.dir}"/>
</java>
<echo level="info">
---Watching for SCSS Changes in CSS Directory---
Expand Down
4 changes: 3 additions & 1 deletion src/base/compile.rb
@@ -1,5 +1,7 @@
# Load All of the Gems inside the jRuby jar passed in by first argument
$LOAD_PATH.unshift "#{ARGV[0]}"
Dir.entries(ARGV[0]).each do |lib|
$LOAD_PATH.unshift "#{ARGV[0]}/#{lib}/lib"
end

# Require the following Gems
require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion src/grids/build.properties
Expand Up @@ -16,7 +16,7 @@ antcontribs.jar=${lib.dir}/ant-contrib-1.0b3.jar
cssurlembed.jar=${lib.dir}/cssembed-0.4.5.jar

#jRuby Properties
jruby.jar=${lib.dir}/jruby-complete-1.6.7.2.jar
jruby.jar=${lib.dir}/jruby.jar

#jLESS Properties
#jless.jar=test.jar
Expand Down
5 changes: 2 additions & 3 deletions src/grids/build.xml
Expand Up @@ -10,7 +10,7 @@
<!-- Include jruby + gems (compass + sass + zengrids) -->
<target name="build-jar" depends="jar.check" unless="jar.exists">
<mkdir dir="${lib.dir}/jruby-compiled" />
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.6.7.2/jruby-complete-1.6.7.2.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview1/jruby-complete-1.7.0.preview1.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://production.cf.rubygems.org/gems/compass-0.12.1.gem" dest="${lib.dir}/jruby-compiled/compass.gem"/>
<get src="http://production.cf.rubygems.org/gems/sass-3.1.19.gem" dest="${lib.dir}/jruby-compiled/sass.gem"/>
<get src="http://production.cf.rubygems.org/gems/zen-grids-1.2.gem" dest="${lib.dir}/jruby-compiled/zen-grids.gem"/>
Expand All @@ -21,7 +21,6 @@
<arg line="-uf jruby.jar -C vendors ." />
</exec>
<delete dir="${lib.dir}/jruby-compiled" />
<delete dir="${lib.dir}/vendors" />
</target>
<target name="jar.check">
<condition property="jar.exists">
Expand Down Expand Up @@ -56,7 +55,7 @@
<!-- Watch for any polling changes in the SCSS directory "ant watch.sass" -->
<target name="watch.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ watch ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ watch ${src.dir}"/>
</java>
<echo level="info">
---Watching for SCSS Changes in Grids Directory---
Expand Down
4 changes: 3 additions & 1 deletion src/grids/compile.rb
@@ -1,5 +1,7 @@
# Load All of the Gems inside the jRuby jar passed in by first argument
$LOAD_PATH.unshift "#{ARGV[0]}"
Dir.entries(ARGV[0]).each do |lib|
$LOAD_PATH.unshift "#{ARGV[0]}/#{lib}/lib"
end

# Require the following Gems
require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion src/js/build.properties
Expand Up @@ -23,7 +23,7 @@ cssurlembed.jar=${lib.dir}/cssembed-0.4.5.jar
#nodecoffeescript.command=-cb

#jRuby Properties
jruby.jar=${lib.dir}/jruby-complete-1.6.7.2.jar
jruby.jar=${lib.dir}/jruby.jar

#jLESS Properties
#jless.jar=test.jar
Expand Down
7 changes: 3 additions & 4 deletions src/js/build.xml
Expand Up @@ -10,7 +10,7 @@
<!-- Include jruby + gems (compass + sass + zengrids) -->
<target name="build-jar" depends="jar.check" unless="jar.exists">
<mkdir dir="${lib.dir}/jruby-compiled" />
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.6.7.2/jruby-complete-1.6.7.2.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview1/jruby-complete-1.7.0.preview1.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://production.cf.rubygems.org/gems/compass-0.12.1.gem" dest="${lib.dir}/jruby-compiled/compass.gem"/>
<get src="http://production.cf.rubygems.org/gems/sass-3.1.19.gem" dest="${lib.dir}/jruby-compiled/sass.gem"/>
<get src="http://production.cf.rubygems.org/gems/zen-grids-1.2.gem" dest="${lib.dir}/jruby-compiled/zen-grids.gem"/>
Expand All @@ -21,7 +21,6 @@
<arg line="-uf jruby.jar -C vendors ." />
</exec>
<delete dir="${lib.dir}/jruby-compiled" />
<delete dir="${lib.dir}/vendors" />
</target>
<target name="jar.check">
<condition property="jar.exists">
Expand All @@ -47,7 +46,7 @@
<!-- Compile all of the SCSS files into their CSS counterparts "ant compile.sass" -->
<target name="compile.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ compile ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ compile ${src.dir}"/>
</java>
<echo level="info">
---Converted JS SCSS Files into CSS---
Expand All @@ -56,7 +55,7 @@
<!-- Watch for any polling changes in the SCSS directory "ant watch.sass" -->
<target name="watch.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ watch ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ watch ${src.dir}"/>
</java>
<echo level="info">
---Watching for SCSS Changes in JS Directory---
Expand Down
4 changes: 3 additions & 1 deletion src/js/compile.rb
@@ -1,5 +1,7 @@
# Load All of the Gems inside the jRuby jar passed in by first argument
$LOAD_PATH.unshift "#{ARGV[0]}"
Dir.entries(ARGV[0]).each do |lib|
$LOAD_PATH.unshift "#{ARGV[0]}/#{lib}/lib"
end

# Require the following Gems
require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion src/theme-gcwu-fegc/build.properties
Expand Up @@ -16,4 +16,4 @@ antcontribs.jar=${lib.dir}/ant-contrib-1.0b3.jar
cssurlembed.jar=${lib.dir}/cssembed-0.4.5.jar

#jRuby Properties
jruby.jar=${lib.dir}/jruby-complete-1.6.7.2.jar
jruby.jar=${lib.dir}/jruby.jar
7 changes: 3 additions & 4 deletions src/theme-gcwu-fegc/build.xml
Expand Up @@ -10,7 +10,7 @@
<!-- Include jruby + gems (compass + sass + zengrids) -->
<target name="build-jar" depends="jar.check" unless="jar.exists">
<mkdir dir="${lib.dir}/jruby-compiled" />
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.6.7.2/jruby-complete-1.6.7.2.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview1/jruby-complete-1.7.0.preview1.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://production.cf.rubygems.org/gems/compass-0.12.1.gem" dest="${lib.dir}/jruby-compiled/compass.gem"/>
<get src="http://production.cf.rubygems.org/gems/sass-3.1.19.gem" dest="${lib.dir}/jruby-compiled/sass.gem"/>
<get src="http://production.cf.rubygems.org/gems/zen-grids-1.2.gem" dest="${lib.dir}/jruby-compiled/zen-grids.gem"/>
Expand All @@ -21,7 +21,6 @@
<arg line="-uf jruby.jar -C vendors ." />
</exec>
<delete dir="${lib.dir}/jruby-compiled" />
<delete dir="${lib.dir}/vendors" />
</target>
<target name="jar.check">
<condition property="jar.exists">
Expand All @@ -48,7 +47,7 @@
<!-- Compile all of the SCSS files into their CSS counterparts "ant compile.sass" -->
<target name="compile.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ compile ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ compile ${src.dir}"/>
</java>
<echo level="info">
---Converted GCWU SCSS Files into CSS---
Expand All @@ -57,7 +56,7 @@
<!-- Watch for any polling changes in the SCSS directory "ant watch.sass" -->
<target name="watch.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ watch ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ watch ${src.dir}"/>
</java>
<echo level="info">
---Watching for SCSS Changes in GCWU Directory---
Expand Down
4 changes: 3 additions & 1 deletion src/theme-gcwu-fegc/compile.rb
@@ -1,5 +1,7 @@
# Load All of the Gems inside the jRuby jar passed in by first argument
$LOAD_PATH.unshift "#{ARGV[0]}"
Dir.entries(ARGV[0]).each do |lib|
$LOAD_PATH.unshift "#{ARGV[0]}/#{lib}/lib"
end

# Require the following Gems
require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion src/theme-gcwu-intranet/build.properties
Expand Up @@ -16,7 +16,7 @@ antcontribs.jar=${lib.dir}/ant-contrib-1.0b3.jar
cssurlembed.jar=${lib.dir}/cssembed-0.4.5.jar

#jRuby Properties
jruby.jar=${lib.dir}/jruby-complete-1.6.7.2.jar
jruby.jar=${lib.dir}/jruby.jar

#jLESS Properties
#jless.jar=test.jar
Expand Down
7 changes: 3 additions & 4 deletions src/theme-gcwu-intranet/build.xml
Expand Up @@ -10,7 +10,7 @@
<!-- Include jruby + gems (compass + sass + zengrids) -->
<target name="build-jar" depends="jar.check" unless="jar.exists">
<mkdir dir="${lib.dir}/jruby-compiled" />
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.6.7.2/jruby-complete-1.6.7.2.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview1/jruby-complete-1.7.0.preview1.jar" dest="${lib.dir}/jruby.jar"/>
<get src="http://production.cf.rubygems.org/gems/compass-0.12.1.gem" dest="${lib.dir}/jruby-compiled/compass.gem"/>
<get src="http://production.cf.rubygems.org/gems/sass-3.1.19.gem" dest="${lib.dir}/jruby-compiled/sass.gem"/>
<get src="http://production.cf.rubygems.org/gems/zen-grids-1.2.gem" dest="${lib.dir}/jruby-compiled/zen-grids.gem"/>
Expand All @@ -21,7 +21,6 @@
<arg line="-uf jruby.jar -C vendors ." />
</exec>
<delete dir="${lib.dir}/jruby-compiled" />
<delete dir="${lib.dir}/vendors" />
</target>
<target name="jar.check">
<condition property="jar.exists">
Expand All @@ -32,7 +31,7 @@
<!-- Compile all of the SCSS files into their CSS counterparts "ant compile.sass" -->
<target name="compile.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ compile ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ compile ${src.dir}"/>
</java>
<echo level="info">
---Converted Intranet SCSS Files into CSS---
Expand All @@ -41,7 +40,7 @@
<!-- Watch for any polling changes in the SCSS directory "ant watch.sass" -->
<target name="watch.sass">
<java classname="org.jruby.Main" fork="true" failonerror="true" classpathref="jruby.classpath">
<arg line="${src.dir}/compile.rb ${lib.dir}/gems/ watch ${src.dir}"/>
<arg line="${src.dir}/compile.rb ${lib.dir}/vendors/gems/ watch ${src.dir}"/>
</java>
<echo level="info">
---Watching for SCSS Changes in Intranet Directory---
Expand Down
4 changes: 3 additions & 1 deletion src/theme-gcwu-intranet/compile.rb
@@ -1,5 +1,7 @@
# Load All of the Gems inside the jRuby jar passed in by first argument
$LOAD_PATH.unshift "#{ARGV[0]}"
Dir.entries(ARGV[0]).each do |lib|
$LOAD_PATH.unshift "#{ARGV[0]}/#{lib}/lib"
end

# Require the following Gems
require 'rubygems'
Expand Down

0 comments on commit 45320e0

Please sign in to comment.