Skip to content

Commit

Permalink
Gemspec updating, added the VERSION and DATE vars and my rake tasks f…
Browse files Browse the repository at this point in the history
…or building and releasing the gem. Added a .gitignore file to not track .gem and .sass-cache
  • Loading branch information
adamstac committed Nov 12, 2011
1 parent 51348f3 commit ac70d45
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.gem
.sass-cache
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require './lib/foundation-sass'

namespace :gem do

desc "Build the gem"
task :build do
system "gem build *.gemspec"
end

desc "Build and release the gem"
task :release => :build do
system "gem push foundation-sass-#{FoundationSass::VERSION}.gem"
end

end
Binary file modified foundation-sass-2.0.3.gem
Binary file not shown.
6 changes: 4 additions & 2 deletions foundation-sass.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require './lib/foundation-sass'

Gem::Specification.new do |s|
# Release Specific Information
s.version = "2.0.3"
s.date = "2011-10-31"
s.version = FoundationSass::VERSION
s.date = FoundationSass::DATE

# Gem Details
s.name = "foundation-sass"
Expand Down
12 changes: 11 additions & 1 deletion lib/foundation-sass.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
require 'compass'
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
Compass::Frameworks.register('foundation-sass', :path => extension_path)
Compass::Frameworks.register('foundation-sass', :path => extension_path)

require 'compass'
Compass::Frameworks.register("foundation-sass", :path => "#{File.dirname(__FILE__)}/..")

module FoundationSass

VERSION = "2.0.3"
DATE = "2011-10-31"

end

2 comments on commit ac70d45

@hatefulcrawdad
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this rakefile do exactly? Will it just auto add the version number and such to my gem when i build it?

@adamstac
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Here are the rake tasks and descriptions.

adamstacoviak@as-mbp-i7 [06:54:52] [~/Code/OS/sass/foundation-sass] [master]
-> % rake -T
rake gem:build    # Build the gem
rake gem:release  # Build and release the gem

Please sign in to comment.