Permalink
Browse files

fixing require_relative and restriction reference

  • Loading branch information...
1 parent 46de054 commit ce509c37f7a40d9364861c1f2415fd6dad61c92d bglusman committed Jan 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/outlaw
  2. +1 −1 lib/outlaw/enforcement.rb
View
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require "outlaw"
+require_relative "../lib/outlaw"
if File.exists?(Dir.pwd + '/.outlawed')
File.open(Dir.pwd + "/.outlawed") {|f| Outlaw.module_eval(f.read)}
elsif File.exists?(Dir.home + '/.outlawed')
@@ -24,7 +24,7 @@ def handle(file)
rules.each do |rule|
if rule.violation?(text)
puts "Outlaw Violation in file: #{file}\nRestriction:" +
- "#{rule.restriction}\n\n#{rule.message}"
+ "#{rule.message}\n\n"
end
end
end

0 comments on commit ce509c3

Please sign in to comment.