Class: Semmy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/semmy/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Configuration

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/semmy/configuration.rb', line 24

def initialize
  @development_version_suffix = 'dev'

  @stable_branch_name = '%{major}-%{minor}-stable'

  @prepare_commit_message = 'Prepare %{version} release'
  @bump_commit_message = 'Bump version to %{version}'

  @compare_url = '%{repository}/compare/%{old_version_tag}...%{new_version_tag}'
  @file_url = '%{repository}/blob/%{branch}/%{path}'

  @changelog_path = 'CHANGELOG.md'
  @changelog_version_section_heading = '### Version %{version}'
  @changelog_unreleased_section_heading = '### Unreleased Changes'
  @changelog_unreleased_section_blank_slate = 'None so far.'
  @changelog_previous_changes_link = "See\n[%{branch} branch](%{url})\nfor previous changes."

  @source_files_with_docs_tags = '{app,lib}/**/*.{js,rb,scss}'
  @rewritten_since_doc_tag = 'edge'

  yield self if block_given?
end

Instance Attribute Details

#bump_commit_messageObject

Returns the value of attribute bump_commit_message.



8
9
10
# File 'lib/semmy/configuration.rb', line 8

def bump_commit_message
  @bump_commit_message
end

#changelog_pathObject

Returns the value of attribute changelog_path.



15
16
17
# File 'lib/semmy/configuration.rb', line 15

def changelog_path
  @changelog_path
end

Returns the value of attribute changelog_previous_changes_link.



19
20
21
# File 'lib/semmy/configuration.rb', line 19

def changelog_previous_changes_link
  @changelog_previous_changes_link
end

#changelog_unreleased_section_blank_slateObject

Returns the value of attribute changelog_unreleased_section_blank_slate.



18
19
20
# File 'lib/semmy/configuration.rb', line 18

def changelog_unreleased_section_blank_slate
  @changelog_unreleased_section_blank_slate
end

#changelog_unreleased_section_headingObject

Returns the value of attribute changelog_unreleased_section_heading.



17
18
19
# File 'lib/semmy/configuration.rb', line 17

def changelog_unreleased_section_heading
  @changelog_unreleased_section_heading
end

#changelog_version_section_headingObject

Returns the value of attribute changelog_version_section_heading.



16
17
18
# File 'lib/semmy/configuration.rb', line 16

def changelog_version_section_heading
  @changelog_version_section_heading
end

#compare_urlObject

Returns the value of attribute compare_url.



12
13
14
# File 'lib/semmy/configuration.rb', line 12

def compare_url
  @compare_url
end

#development_version_suffixObject

Returns the value of attribute development_version_suffix.



3
4
5
# File 'lib/semmy/configuration.rb', line 3

def development_version_suffix
  @development_version_suffix
end

#file_urlObject

Returns the value of attribute file_url.



13
14
15
# File 'lib/semmy/configuration.rb', line 13

def file_url
  @file_url
end

#github_repositoryObject

Returns the value of attribute github_repository.



10
11
12
# File 'lib/semmy/configuration.rb', line 10

def github_repository
  @github_repository
end

#prepare_commit_messageObject

Returns the value of attribute prepare_commit_message.



7
8
9
# File 'lib/semmy/configuration.rb', line 7

def prepare_commit_message
  @prepare_commit_message
end

#rewritten_since_doc_tagObject

Returns the value of attribute rewritten_since_doc_tag.



22
23
24
# File 'lib/semmy/configuration.rb', line 22

def rewritten_since_doc_tag
  @rewritten_since_doc_tag
end

#source_files_with_docs_tagsObject

Returns the value of attribute source_files_with_docs_tags.



21
22
23
# File 'lib/semmy/configuration.rb', line 21

def source_files_with_docs_tags
  @source_files_with_docs_tags
end

#stable_branch_nameObject

Returns the value of attribute stable_branch_name.



5
6
7
# File 'lib/semmy/configuration.rb', line 5

def stable_branch_name
  @stable_branch_name
end