Skip to content

v0.8.0

Compare
Choose a tag to compare
@jwoertink jwoertink released this 20 Dec 19:57
· 6 commits to master since this release
99e0dd5

This release includes pretty huge refactors. The config now uses Habitat, and there's a new AwsStorageConfig class for some better type-safety. Some of the config options are a little different:

- c.storage = :aws
+ c.storage = Sitemapper::AwsStorage

- c.aws_config = {"key" => "...", ...} 
+ c.aws_config = AwsStorageConfig.new(key: "...", ...)

The build block no longer works as a mini DSL. Instead, it passes the builder instance as an arg, but the add() methods are chainable.

- Sitemapper.build do
-   add("...")
-   add("...")
-   some_method(itself)
- end

+ Sitemapper.build do |builder|
+   builder.add("...").add("...")
+
+   some_method(builder)
+ end