Commit 81270ce2 by Hampton Catlin

some basic ruby building now

parent c26e95ec
src/Makefile
.DS_Store
tmp/
.sass-cache
sassc
build/*
......@@ -7,4 +8,4 @@ build/*
*.a
a.out
bin/*
*.gem
\ No newline at end of file
*.gem
......@@ -14,4 +14,13 @@ Rake::ExtensionTask.new do |ext|
#ext.config_options << '--with-foo' # supply additional options to configure script.
ext.gem_spec = $gemspec # optionally indicate which gem specification
# will be used.
end
task :run do
require File.expand_path('../lib/sassc', __FILE__)
ptr = SassC::Lib.sass_new_context()
ctx = SassC::Lib::Context.new(ptr)
ctx[:input_string] = SassC::Lib.to_char("hi { width: 30px; }")
SassC::Lib.sass_compile(ctx)
#puts ctx[:output_string]
end
\ No newline at end of file
module SassC
VERSION = "0.0.1"
end
require File.join(File.dirname(__FILE__), 'sassc/lib')
\ No newline at end of file
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/sassc', __FILE__)
#require File.expand_path('../lib/sassc', __FILE__)
Gem::Specification.new do |gem|
$gemspec = Gem::Specification.new do |gem|
gem.authors = ["Hampton Catlin", "Aaron Leung"]
gem.email = ["hcatlin@gmail.com"]
gem.description = %q{A native implementation of the Sass language}
......@@ -14,5 +14,8 @@ Gem::Specification.new do |gem|
gem.name = "sassc"
gem.extensions = ["src/extconf.rb"]
gem.require_paths = ["lib", "src"]
gem.version = SassC::VERSION
gem.version = "0.1"#SassC::VERSION
gem.add_dependency('ffi')
gem.add_dependency('rake-compiler')
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment