lib/xcake/target.rb in xcake-0.3.0 vs lib/xcake/target.rb in xcake-0.3.1

- old
+ new

@@ -107,26 +107,26 @@ # "*.{h,m}" #=> ["JSONKit.h", "JSONKit.m"] # "*" #=> ["CHANGELOG.md", "JSONKit.h"] #-----------------------------------------------------------------------# - # @return [String] files to include for the target. - # Supports regular expressions, - # Defaults to: "./<Target Name>/*\*/\*.*" + # @return [Array or String] files to include for the target. + # Supports regular expressions, + # Defaults to: ["./<Target Name>/*\*/\*.*"] # # @example # # spec.include_files = "Classes/**/*.{h,m}" # attr_accessor :include_files - # @return [String] files to exclude for the target. - # Supports regular expressions + # @return [Array or String] files to exclude for the target. + # Supports regular expressions # # @example # - # spec.exclude_files = "Classes/**/unused.{h,m}" + # spec.exclude_files = ["Classes/**/unused.{h,m}"] # attr_accessor :exclude_files # @!group Frameworks @@ -153,10 +153,14 @@ def initialize(&block) block.call(self) if block_given? end def include_files - @include_files ||= "./#{self.name}/**/*.*" + @include_files ||= ["./#{@name}/**/*.*"] + end + + def exclude_files + @exclude_files ||= [] end def system_frameworks @system_frameworks ||= default_system_frameworks_for self.platform end