lib/covered/policy/default.rb in covered-0.10.5 vs lib/covered/policy/default.rb in covered-0.11.0
- old
+ new
@@ -16,20 +16,22 @@
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
+require_relative '../policy'
+
$covered = Covered.policy do
cache!
# Only files in the root would be tracked:
- root Dir.pwd
+ root(Dir.pwd)
# We will ignore any files in the test or spec directory:
- skip /^.*\/(test|spec|vendor)\//
+ skip(/^.*\/(test|spec|vendor)\//)
# We will include all files under lib, even if they aren't loaded:
- include "lib/**/*.rb"
+ include("lib/**/*.rb")
persist!
source