lib/nanoc/rule_dsl/routing_rule.rb in nanoc-4.11.0 vs lib/nanoc/rule_dsl/routing_rule.rb in nanoc-4.11.1
- old
+ new
@@ -1,21 +1,21 @@
# frozen_string_literal: true
module Nanoc::RuleDSL
class RoutingRule < Rule
- include Nanoc::Int::ContractsSupport
+ include Nanoc::Core::ContractsSupport
contract C::None => C::Maybe[Symbol]
attr_reader :snapshot_name
- contract Nanoc::Int::Pattern, Symbol, Proc, C::KeywordArgs[snapshot_name: C::Optional[Symbol]] => C::Any
+ contract Nanoc::Core::Pattern, Symbol, Proc, C::KeywordArgs[snapshot_name: C::Optional[Symbol]] => C::Any
def initialize(pattern, rep_name, block, snapshot_name: nil)
super(pattern, rep_name, block)
@snapshot_name = snapshot_name
end
- contract Nanoc::Int::ItemRep, C::KeywordArgs[
+ contract Nanoc::Core::ItemRep, C::KeywordArgs[
site: Nanoc::Int::Site,
view_context: Nanoc::ViewContextForPreCompilation,
] => C::Any
def apply_to(rep, site:, view_context:)
context = Nanoc::RuleDSL::RoutingRuleContext.new(