lib/buildr/packaging/artifact_namespace.rb in vic-buildr-1.3.3 vs lib/buildr/packaging/artifact_namespace.rb in vic-buildr-1.3.4

- old
+ new

@@ -12,11 +12,11 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. -require 'buildr/java/version_requirement' +require 'buildr/packaging/version_requirement' module Buildr # An ArtifactNamespace is a hierarchical dictionary used to manage ArtifactRequirements. @@ -881,10 +881,10 @@ # def method_missing(name, *args, &block) case name.to_s when /!$/ then name = $`.intern - if args.size < 1 && args.size > 2 + if args.size < 1 || args.size > 2 raise ArgumentError.new("wrong number of arguments for #{name}!(spec, version_requirement?)") end need name => args.first get(name).tap { |r| r.requirement = args.last if args.size == 2 } when /=$/ then use $` => args.first