C:\>gem install staticmatic --version 0.10.4
ERROR: While executing gem ... (Errno::EEXIST)
File exists -
C:/Users/charlesr/Tools/Ruby/Ruby186/lib/ruby/gems/1.8/gems/staticmatic-0.10.4/spec/sandbox/test_site/site/sub_folder/another_sub_folder
gem install staticmatic --version 0.10.1 works fine. I am in contact
with the author, but I thought it prudent to check with you guys here
to see if you had any thoughts.
Cheers,
Charles
Seems to me that the gem spec is broken or empty:
No files, test files or executables...
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
I did a bit more digging and it seems something weird going on at line
79 of the following:
Contained within
staticmatic-0.10.4.gem\data.tar.gz\data.tar\spec\sandbox\test_site\site\sub_folder\
there are the following:
another_sub_folder <<-- folder
another_sub_folder. <<-- file
index.html
Seems that Windows creates the file but doesn't create it with a dot on
the end; therefore, the folder cannot subsequently be created because it
has exactly the same name as the file. I can't manually extract the gem
archive on Windows either - I get a similar 'file already exists' error.
Is there a standard cross-platform way of doing what is being attempted
here?
Cheers,
Charles
A dot is not part of a filename, neither from a extension. The
free-form filename convention of *nix is not cross-platform friendly.
> Seems that Windows creates the file but doesn't create it with a dot on the
> end; therefore, the folder cannot subsequently be created because it has
> exactly the same name as the file. I can't manually extract the gem archive
> on Windows either - I get a similar 'file already exists' error.
>
> Is there a standard cross-platform way of doing what is being attempted
> here?
Don't use a dot as part of the testing?
And if is a testing sandbox, why don't generate it instead?
I know is that my answer do not provide a solution since I don't know
the purpose of those files and folders, perhaps a specific test?