lib/jazzy/config.rb in jazzy-0.2.2 vs lib/jazzy/config.rb in jazzy-0.2.3

- old
+ new

@@ -29,10 +29,11 @@ attr_accessor :docset_icon attr_accessor :docset_path attr_accessor :source_directory attr_accessor :excluded_files attr_accessor :template_directory + attr_accessor :swift_version def initialize PodspecDocumenter.configure(self, Dir['*.podspec{,.json}'].first) self.output = Pathname('docs') self.xcodebuild_arguments = [] @@ -45,10 +46,11 @@ self.min_acl = SourceDeclaration::AccessControlLevel.public self.skip_undocumented = false self.source_directory = Pathname.pwd self.excluded_files = [] self.template_directory = Pathname(__FILE__).parent + 'templates' + self.swift_version = '1.2' end def podspec=(podspec) @podspec = PodspecDocumenter.configure(self, podspec) end @@ -170,9 +172,13 @@ end opt.on('t', '--template-directory DIRPATH', 'The directory that ' \ 'contains the mustache templates to use') do |template_directory| config.template_directory = Pathname(template_directory) + end + + opt.on('--swift-version VERSION') do |swift_version| + config.swift_version = swift_version end opt.on('--readme FILEPATH', 'The path to a markdown README file') do |readme| config.readme_path = Pathname(readme)