lib/danger/ci_source/support/commits.rb in danger-8.2.2 vs lib/danger/ci_source/support/commits.rb in danger-8.2.3
- old
+ new
@@ -1,17 +1,19 @@
-class Commits
- def initialize(base_head)
- @base_head = base_head.strip.split(" ".freeze)
- end
+module Danger
+ class Commits
+ def initialize(base_head)
+ @base_head = base_head.strip.split(" ".freeze)
+ end
- def base
- base_head.first
- end
+ def base
+ base_head.first
+ end
- def head
- base_head.last
- end
+ def head
+ base_head.last
+ end
- private
+ private
- attr_reader :base_head
+ attr_reader :base_head
+ end
end