This repository was archived by the owner on Sep 17, 2018. It is now read-only.
File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 9
9
code_climate :
10
10
repo_token : d814b23d478d0908ef37c1c0aa685fdb0c6d5f0b38d8db0c68e58fd86a1f0fea
11
11
12
+ before_deploy :
13
+ # publish features to https://www.relishapp.com/mysql-expectations/mysql-expectations/docs
14
+ - rake relish
15
+
12
16
deploy :
13
17
provider : rubygems
14
18
api_key :
Original file line number Diff line number Diff line change @@ -52,17 +52,20 @@ task :console do
52
52
end
53
53
54
54
RELISH_PROJECT = 'mysql-expectations/mysql-expectations'
55
- RELISH_STAGING_PROJECT = 'mysql-expectations-staging/mysql-expectations'
55
+ RELISH_STAGING_PROJECT = 'mysql-expectations/mysql-expectations-staging'
56
+
57
+ require 'mysql_expectations/version'
56
58
57
59
desc 'Push cucumber features to http://relishapp.com'
58
- task :relish , :version do |_t , args |
59
- fail 'rake relish[VERSION]' unless args [ :version ]
60
- if `relish versions #{ RELISH_PROJECT } ` . split . map ( &:strip ) . include? args [ :version ]
61
- puts "Version #{ args [ :version ] } already exists"
60
+ task :relish do
61
+ version = MySQLExpectations ::Version ::VERSION
62
+ fail 'rake relish[VERSION]' unless version
63
+ if `relish versions #{ RELISH_PROJECT } ` . split . map ( &:strip ) . include? version
64
+ puts "Version #{ version } already exists"
62
65
else
63
- sh "relish versions:add #{ RELISH_PROJECT } :#{ args [ : version] } "
66
+ sh "relish versions:add #{ RELISH_PROJECT } :#{ version } "
64
67
end
65
- sh "relish push #{ RELISH_PROJECT } :#{ args [ : version] } "
68
+ sh "relish push #{ RELISH_PROJECT } :#{ version } "
66
69
end
67
70
68
71
desc 'Push to relish staging environment of http://relishapp.com'
Original file line number Diff line number Diff line change 5
5
module MySQLExpectations
6
6
# This module holds the gem version number used in the gemspec
7
7
module Version
8
- VERSION = '1.0.0 '
8
+ VERSION = '1.0.1 '
9
9
end
10
10
end
You can’t perform that action at this time.
0 commit comments