Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/solidus_dev_support/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ def install_rspec_task
def install_changelog_task
require 'github_changelog_generator/task'

user, project = gemspec.homepage.split("/")[3..5]
source_code_uri = URI.parse(gemspec.metadata['source_code_uri'] || gemspec.homepage)
user, project = source_code_uri.path.split("/", 3)[1..2]

GitHubChangelogGenerator::RakeTask.new(:changelog) do |config|
config.user = user || 'solidus-contrib'
config.user = user || 'solidusio-contrib'
config.project = project || gemspec.name
config.future_release = "v#{gemspec.version}"
end
Expand Down
6 changes: 4 additions & 2 deletions lib/solidus_dev_support/templates/extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ Your new extension version can be released using `gem-release` like this:
```shell
bundle exec gem bump -v 1.6.0
bin/rake changelog
git commit -a --amend
git push
git add CHANGELOG.md
git commit --amend --no-edit
gem tag
git push --tags
bundle exec gem release
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bump:
recurse: false
file: 'lib/<%=file_name%>/version.rb'
message: Bump <%=class_name%> to %{version}
tag: true
tag: false