Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Creating a Compass Extension Testing and Sharing the Extension Publishing our Extension as a Ruby Gem

Andrew Chappell
Andrew Chappell
12,782 Points

Invalid gemspec in [gluhu.gemspec]: argument out of range

Hi I'm trying to build the gem with gem build gluhu.gemspec for my compass extension but I get the error Invalid gemspec in [gluhu.gemspec]: argument out of range

Any ideas?

# Replace extension with the name of your extension's .rb file
require './lib/gluhu'

Gem::Specification.new do |s|
  # Release Specific Information
  #  Replace Extension with the name you used in your extension.rb
  #   in the mdodule with version and date.
  s.version = Gluhu::VERSION
  s.date = Gluhu::DATE

  # Gem Details
  # Replace "extension" with the name of your extension
  s.name = "gluhu"
  s.rubyforge_project = "gluhu"
  # Description of your extension
  s.description = %q{A front end framework built with SASS and extending Compass}
  # A summary of your Compass extension. Should be different than Description
  s.summary = %q{A front end framework for speeding up development}
  # The names of the author(s) of the extension.
  # If more than one author, comma separate inside of the brackets
  s.authors = ["Andrew Chappell"]
  # The email address(es) of the author(s)
  # If more than one author, comma separate inside of the brackets
  s.email = ["******@gmail.com"]
  # URL of the extension
  # s.homepage = "***********"

  # Gem Files
  # These are the files to be included in your Compass extension.
  # Uncomment those that you use.

  # README file
  s.files = ["README.md"]

  # CHANGELOG
  s.files += ["CHANGELOG.md"]

  # Library Files
  s.files += Dir.glob("lib/**/*.*")

  # Sass Files
  s.files += Dir.glob("stylesheets/**/*.*")

  # Template Files
  s.files += Dir.glob("templates/**/*.*")

  # Gem Bookkeeping
  # Versions of Ruby and Rubygems you require
  s.required_rubygems_version = ">= 2.0.0"
  s.rubygems_version = %q{2.0.0}

  # Gems Dependencies
  # Gem names and versions that are required for your Compass extension.
  # These are Gem dependencies, not Compass dependencies. Including gems
  #  here will make sure the relevant gem and version are installed on the
  #  user's system when installing your gem.
  s.add_dependency("sass",      [">=3.3.14"])
  s.add_dependency("compass",   [">= 1.0.1"])
end

1 Answer

Andrew Chappell
Andrew Chappell
12,782 Points

THe problem was my s.date variable. The Date I had given gluhu.rb was an invalid date.