-
Notifications
You must be signed in to change notification settings - Fork 229
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
Ruby 2.0 support broken since 2.2.0: undefined method create for Tempfile:Class #148
Comments
To copy from my comment over there, the fix would be: file = Tempfile.new('Dockerfile-kitchen', Dir.pwd)
begin
file.write(dockerfile)
file.close
docker_command("#{cmd} -f #{file.path} .")
ensure
file.close unless file.closed?
file.unlink
end But OTOH 2.1 is what comes with ChefDK so that is not an unreasonable expectation. |
+1 |
2 similar comments
+1 |
+1 |
1.9.3 also exhibits this problem |
Hi, Is there a fix for this yet? or should I go back to an older version of the gem? Cheers, Matt |
I'll push a fix for this tomorrow, sorry for the delay. |
Any news on this? |
Still broken. |
#170 addresses this and also adds |
@jdrago999 Why did #170 never get merged? |
I'm assuming this is still broken? I think it's the only think keeping me from using TestKitchen at $job |
Yea, still broken. Any word on this or why #170 was closed and not merged? |
another +1 to getting this fixed - would like to have Kitchen as an option - currently using pure rspec/serverspec as an alternative with the docker-api gem |
same here it doesn't work should I use the older version? |
I just updated the ruby version to 2.2.3 (was 2.0.0) with rbenv, and now different error comes out
|
I think docker or docker toolbox isn't running for you...or maybe your env vars are unset
|
Thanks @coderanger 🍻 |
When will there be a new release with this fix, so I won't have to manually edit the docker.rb file? |
ping |
@furushchev Please don't poke long-since fixed issues. |
@coderanger I think this problem is not yet solved since this fix is not applied to the version which we can get by |
@coderanger |
I don't have permissions to create new releases, and the issue is resolved in master. I am aware there hasn't been a release in a while, I'm working on that separately. |
kitchen-docker
gem version2.2.0
broke Ruby2.0
support.Tempfile#create
does not exist in Ruby2.0.0
, you need to useTempfile.new
.This is the error (from here):
The problematic commit: 685ea60 (issue #136)
The text was updated successfully, but these errors were encountered: