Skip to content

Commit

Permalink
some basic ruby building now
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampton Catlin committed Apr 22, 2012
1 parent c26e95e commit 81270ce
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,10 +1,11 @@
src/Makefile
.DS_Store
tmp/
.sass-cache
sassc
build/*
*.o
*.a
a.out
bin/*
*.gem
*.gem
9 changes: 9 additions & 0 deletions Rakefile
Expand Up @@ -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
2 changes: 2 additions & 0 deletions lib/sassc.rb
@@ -1,3 +1,5 @@
module SassC
VERSION = "0.0.1"
end

require File.join(File.dirname(__FILE__), 'sassc/lib')
9 changes: 6 additions & 3 deletions sassc.gemspec
@@ -1,7 +1,7 @@
# -*- 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}
Expand All @@ -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

0 comments on commit 81270ce

Please sign in to comment.