Class: Semmy::Configuration
- Inherits:
-
Object
- Object
- Semmy::Configuration
- Defined in:
- lib/semmy/configuration.rb
Instance Attribute Summary collapse
-
#bump_commit_message ⇒ Object
Returns the value of attribute bump_commit_message.
-
#changelog_path ⇒ Object
Returns the value of attribute changelog_path.
-
#changelog_previous_changes_link ⇒ Object
Returns the value of attribute changelog_previous_changes_link.
-
#changelog_unreleased_section_blank_slate ⇒ Object
Returns the value of attribute changelog_unreleased_section_blank_slate.
-
#changelog_unreleased_section_heading ⇒ Object
Returns the value of attribute changelog_unreleased_section_heading.
-
#changelog_version_section_heading ⇒ Object
Returns the value of attribute changelog_version_section_heading.
-
#compare_url ⇒ Object
Returns the value of attribute compare_url.
-
#development_version_suffix ⇒ Object
Returns the value of attribute development_version_suffix.
-
#file_url ⇒ Object
Returns the value of attribute file_url.
-
#github_repository ⇒ Object
Returns the value of attribute github_repository.
-
#prepare_commit_message ⇒ Object
Returns the value of attribute prepare_commit_message.
-
#push_branches_after_release ⇒ Object
Returns the value of attribute push_branches_after_release.
-
#rewritten_since_doc_tag ⇒ Object
Returns the value of attribute rewritten_since_doc_tag.
-
#source_files_with_docs_tags ⇒ Object
Returns the value of attribute source_files_with_docs_tags.
-
#stable_branch_name ⇒ Object
Returns the value of attribute stable_branch_name.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/semmy/configuration.rb', line 25 def initialize @development_version_suffix = 'dev' @stable_branch_name = '%{major}-%{minor}-stable' @push_branches_after_release = ENV['SEMMY_PUSH_BRANCHES_AFTER_RELEASE'] == 'on' @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_message ⇒ Object
Returns the value of attribute bump_commit_message.
9 10 11 |
# File 'lib/semmy/configuration.rb', line 9 def @bump_commit_message end |
#changelog_path ⇒ Object
Returns the value of attribute changelog_path.
16 17 18 |
# File 'lib/semmy/configuration.rb', line 16 def changelog_path @changelog_path end |
#changelog_previous_changes_link ⇒ Object
Returns the value of attribute changelog_previous_changes_link.
20 21 22 |
# File 'lib/semmy/configuration.rb', line 20 def changelog_previous_changes_link @changelog_previous_changes_link end |
#changelog_unreleased_section_blank_slate ⇒ Object
Returns the value of attribute changelog_unreleased_section_blank_slate.
19 20 21 |
# File 'lib/semmy/configuration.rb', line 19 def changelog_unreleased_section_blank_slate @changelog_unreleased_section_blank_slate end |
#changelog_unreleased_section_heading ⇒ Object
Returns the value of attribute changelog_unreleased_section_heading.
18 19 20 |
# File 'lib/semmy/configuration.rb', line 18 def changelog_unreleased_section_heading @changelog_unreleased_section_heading end |
#changelog_version_section_heading ⇒ Object
Returns the value of attribute changelog_version_section_heading.
17 18 19 |
# File 'lib/semmy/configuration.rb', line 17 def changelog_version_section_heading @changelog_version_section_heading end |
#compare_url ⇒ Object
Returns the value of attribute compare_url.
13 14 15 |
# File 'lib/semmy/configuration.rb', line 13 def compare_url @compare_url end |
#development_version_suffix ⇒ Object
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_url ⇒ Object
Returns the value of attribute file_url.
14 15 16 |
# File 'lib/semmy/configuration.rb', line 14 def file_url @file_url end |
#github_repository ⇒ Object
Returns the value of attribute github_repository.
11 12 13 |
# File 'lib/semmy/configuration.rb', line 11 def github_repository @github_repository end |
#prepare_commit_message ⇒ Object
Returns the value of attribute prepare_commit_message.
8 9 10 |
# File 'lib/semmy/configuration.rb', line 8 def @prepare_commit_message end |
#push_branches_after_release ⇒ Object
Returns the value of attribute push_branches_after_release.
6 7 8 |
# File 'lib/semmy/configuration.rb', line 6 def push_branches_after_release @push_branches_after_release end |
#rewritten_since_doc_tag ⇒ Object
Returns the value of attribute rewritten_since_doc_tag.
23 24 25 |
# File 'lib/semmy/configuration.rb', line 23 def rewritten_since_doc_tag @rewritten_since_doc_tag end |
#source_files_with_docs_tags ⇒ Object
Returns the value of attribute source_files_with_docs_tags.
22 23 24 |
# File 'lib/semmy/configuration.rb', line 22 def @source_files_with_docs_tags end |
#stable_branch_name ⇒ Object
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 |