Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3.5
-
None
Description
If two packages are created with only the type specified as parameter is possible for only a single package to be created. For instance, when creating a :javadoc and a :zip package in a single project; only the first package will be created. The bug is in package(*args) and relates to the no_options flag. When this flag is true, the package is checked for incorrectly. The attached patch adds a spec for this case and fixes a bug that was required to get the spec to run.
It is not clear to me why that no_options variant is needed in the first place. When using
package(:type => :javadoc) and package(:type => :zip) instead of package(:javadoc) and package(:zip) everything works correctly. In my understanding the two are semantically equivalent, yet due to this no_options flag they are treated differently.