Commit 81270ce2 by Hampton Catlin

some basic ruby building now

parent c26e95ec
src/Makefile src/Makefile
.DS_Store .DS_Store
tmp/
.sass-cache .sass-cache
sassc sassc
build/* build/*
...@@ -7,4 +8,4 @@ build/* ...@@ -7,4 +8,4 @@ build/*
*.a *.a
a.out a.out
bin/* bin/*
*.gem *.gem
\ No newline at end of file
...@@ -14,4 +14,13 @@ Rake::ExtensionTask.new do |ext| ...@@ -14,4 +14,13 @@ Rake::ExtensionTask.new do |ext|
#ext.config_options << '--with-foo' # supply additional options to configure script. #ext.config_options << '--with-foo' # supply additional options to configure script.
ext.gem_spec = $gemspec # optionally indicate which gem specification ext.gem_spec = $gemspec # optionally indicate which gem specification
# will be used. # 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 end
\ No newline at end of file
module SassC module SassC
VERSION = "0.0.1" VERSION = "0.0.1"
end end
require File.join(File.dirname(__FILE__), 'sassc/lib')
\ No newline at end of file
# -*- encoding: utf-8 -*- # -*- 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.authors = ["Hampton Catlin", "Aaron Leung"]
gem.email = ["hcatlin@gmail.com"] gem.email = ["hcatlin@gmail.com"]
gem.description = %q{A native implementation of the Sass language} gem.description = %q{A native implementation of the Sass language}
...@@ -14,5 +14,8 @@ Gem::Specification.new do |gem| ...@@ -14,5 +14,8 @@ Gem::Specification.new do |gem|
gem.name = "sassc" gem.name = "sassc"
gem.extensions = ["src/extconf.rb"] gem.extensions = ["src/extconf.rb"]
gem.require_paths = ["lib", "src"] 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 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