File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ require 'date'
4
4
5
5
# Defines gem name.
6
6
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
7
8
def version_file ; "lib/#{ repo_name } /version.rb" ; end
8
9
def version_rgx ; /VERSION = '([^']+)'/m ; end
9
10
80
81
81
82
desc 'Install gem'
82
83
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"
85
86
end
86
87
87
88
desc 'Update release notes'
@@ -113,7 +114,7 @@ task :notes do
113
114
data . split ( "\n " ) . each do |line |
114
115
hex = line . match ( /[a-zA-Z0-9]+/ ) [ 0 ] ;
115
116
# 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 "
117
118
end
118
119
data = new_data + "\n "
119
120
You can’t perform that action at this time.
0 commit comments