Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubygems 1.7.x and compass gemspec #331

Closed
johnae opened this issue Apr 7, 2011 · 7 comments
Closed

Rubygems 1.7.x and compass gemspec #331

johnae opened this issue Apr 7, 2011 · 7 comments

Comments

@johnae
Copy link

johnae commented Apr 7, 2011

The compass gemspec is invalid and rubygems 1.7.x will tell you that and won't let you run bundle install for example. I had to downgrade to rubygems 1.6.2 to make it work. This is very annoying and should probably be fixed in the gemspec. I guess the problem is this:

gemspec.date = "#{Time.now.year}-#{Time.now.month}-#{Time.now.day}"

which is not really valid - it should probably be

gemspec.date = Time.now.strftime('%Y-%m-%d')
@scottdavis
Copy link
Member

is this change backwards compatible?

@scottdavis
Copy link
Member

according to the gem manual date should be a unix timestamp integer?

spec.date = File.utime('VERSION')

@johnae
Copy link
Author

johnae commented Apr 7, 2011

Well if that's the case both the current gemspec and my suggestion are wrong and will probably result in the same behavior (i.e in my case not being able to run bundle install).

@scottdavis
Copy link
Member

@johnae
Copy link
Author

johnae commented Apr 7, 2011

Ahh ok, then that is the solution to this. Simply removing that from the gemspec should make everything good with rubygems 1.7.x.

@scottdavis
Copy link
Member

fixed issue with gem spec in rubygems 1.7 closed by 73a01b3

@scottdavis
Copy link
Member

this will get fixed in the beta.6 push

ttilley pushed a commit to ttilley/compass that referenced this issue Apr 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants