Skip to content

Commit b7b6caa

Browse files
Use gh_name
1 parent 6562cd6 commit b7b6caa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Rakefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ require 'date'
44

55
# Defines gem name.
66
def repo_name; 'appium_lib'; end # ruby_lib published as appium_lib
7+
def gh_name; 'ruby_lib'; end # the name as used on github.com
78
def version_file; "lib/#{repo_name}/version.rb"; end
89
def version_rgx; /VERSION = '([^']+)'/m; end
910

@@ -80,8 +81,8 @@ end
8081

8182
desc 'Install gem'
8283
task :install => :gem do
83-
`gem uninstall -aIx #{repo_name}`
84-
sh "gem install --no-rdoc --no-ri #{repo_name}-#{version}.gem"
84+
`gem uninstall -aIx #{repo_name}`
85+
sh "gem install --no-rdoc --no-ri #{repo_name}-#{version}.gem"
8586
end
8687

8788
desc 'Update release notes'
@@ -113,7 +114,7 @@ task :notes do
113114
data.split("\n").each do |line|
114115
hex = line.match(/[a-zA-Z0-9]+/)[0];
115116
# use first 7 chars to match GitHub
116-
new_data += "- [#{hex[0...7]}](https://github.com/appium/ruby_lib/commit/#{hex}) #{line.gsub(hex, '').strip}\n"
117+
new_data += "- [#{hex[0...7]}](https://github.com/appium/#{gh_name}/commit/#{hex}) #{line.gsub(hex, '').strip}\n"
117118
end
118119
data = new_data + "\n"
119120

0 commit comments

Comments
 (0)