Closed tknerr closed 10 years ago
The 0.6.0 version of the plugin should only be compatible with Vagrant 1.4+ which comes with Ruby 2.0, so I strongly recommend upgrading to 2.0 if you can.
I'm ok with bringing these changes in but we need to double check that all buckets will keep working fine. From the top of my head, I believe that the composer bucket is the only one using that, but we might not need that parameter anymore after we fix GH-89
Yep I checked that first because I was surprised whether it would work with Vagrant 1.3 (comes with Ruby 1.9.3), but then saw the mention in the CHANGELOG.
I was not sure whether it was implemented as a keyword arg intentionally, because the way it is used looked like it would be simply an optional arg with default.
Given my humble ruby skills I would say the implementation is equivalent, but I haven't explicitly tested all the buckets yet.
Btw: rake spec:unit
did not work for me (rake reported don't know how to run this task
or similar). Is this because there is no spec/unit
?
@fgrehm you are right, it will possibly break the composer bucket, which seems to be the only one using create_parent
atm:
https://github.com/fgrehm/vagrant-cachier/blob/master/lib/vagrant-cachier/bucket/composer.rb#L12
I'm closing this PR rather than breaking existing functionality, I wanted to switch to Ruby 2.0 anyway...
I was not sure whether it was implemented as a keyword arg intentionally, because the way it is used looked like it would be simply an optional arg with default.
Yes it was intentional and yes it could be an optional arg with default, I think that is some leftover from some experimenting I did on a recent irresponsible refactoring :smiley:
Btw: rake spec:unit did not work for me (rake reported don't know how to run this task or similar). Is this because there is no spec/unit?
Oh, I probably copy & pasted that Rakefile
from some other project, it's been around since the first public release :open_mouth:. Well, unfortunately there are currently no unit specs, just a set of Bats sanity checks
When using vagrant-cachier in a Ruby 1.9.3 environment I get his error:
I believe the
create_parent: true
syntax works for Ruby 2.0.0 but not for 1.9.3. Switching tocreate_parent = true
fixes the problem.P.S.: I'm getting this while developing a vagrant plugin with my 1.9.3 system ruby.