lib/nanoc/data_sources/filesystem_verbose.rb in nanoc-3.8.0 vs lib/nanoc/data_sources/filesystem_verbose.rb in nanoc-4.0.0a1

- old
+ new

@@ -36,10 +36,12 @@ # # It is possible to set an explicit encoding that should be used when reading # files. In the data source configuration, set `encoding` to an encoding # understood by Ruby’s `Encoding`. If no encoding is set in the configuration, # one will be inferred from the environment. + # + # @api private class FilesystemVerbose < Nanoc::DataSource include Nanoc::DataSources::Filesystem private @@ -53,15 +55,15 @@ dir_path = dir_name + identifier meta_filename = dir_name + identifier + last_component + '.yaml' content_filename = dir_name + identifier + last_component + ext # Notify - Nanoc::NotificationCenter.post(:file_created, meta_filename) - Nanoc::NotificationCenter.post(:file_created, content_filename) + Nanoc::Int::NotificationCenter.post(:file_created, meta_filename) + Nanoc::Int::NotificationCenter.post(:file_created, content_filename) # Create files FileUtils.mkdir_p(dir_path) - File.open(meta_filename, 'w') { |io| io.write(YAML.dump(attributes.stringify_keys_recursively)) } + File.open(meta_filename, 'w') { |io| io.write(YAML.dump(attributes.__nanoc_stringify_keys_recursively)) } File.open(content_filename, 'w') { |io| io.write(content) } end # See {Nanoc::DataSources::Filesystem#filename_for}. def filename_for(base_filename, ext)