Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some basic ruby building now

  • Loading branch information...
commit 81270ce2ed47393cf642e3b9df4018d4f3b7e71d 1 parent c26e95e
Hampton Catlin authored
Showing with 19 additions and 4 deletions.
  1. +2 −1  .gitignore
  2. +9 −0 Rakefile
  3. +2 −0  lib/sassc.rb
  4. +6 −3 sassc.gemspec
3  .gitignore
View
@@ -1,5 +1,6 @@
src/Makefile
.DS_Store
+tmp/
.sass-cache
sassc
build/*
@@ -7,4 +8,4 @@ build/*
*.a
a.out
bin/*
-*.gem
+*.gem
9 Rakefile
View
@@ -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  lib/sassc.rb
View
@@ -1,3 +1,5 @@
module SassC
VERSION = "0.0.1"
end
+
+require File.join(File.dirname(__FILE__), 'sassc/lib')
9 sassc.gemspec
View
@@ -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}
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.