Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
b4cf71f7
Commit
b4cf71f7
authored
Nov 26, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Probably a good idea to run at least the specs as well before releasing.
parent
9428428e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Rakefile
Rakefile
+3
-2
No files found.
Rakefile
View file @
b4cf71f7
...
@@ -59,7 +59,7 @@ namespace :gem do
...
@@ -59,7 +59,7 @@ namespace :gem do
#sh "sudo macgem compile cocoapods"
#sh "sudo macgem compile cocoapods"
end
end
desc
"
Build and install gem, then commit version change, tag it
, and push everything"
desc
"
Run all specs, build and install gem, commit version change, tag version change
, and push everything"
task
:release
do
task
:release
do
puts
"You are about to release `
#{
gem_version
}
', is that correct? [y/n]"
puts
"You are about to release `
#{
gem_version
}
', is that correct? [y/n]"
exit
if
STDIN
.
gets
.
strip
.
downcase
!=
'y'
exit
if
STDIN
.
gets
.
strip
.
downcase
!=
'y'
...
@@ -67,7 +67,8 @@ namespace :gem do
...
@@ -67,7 +67,8 @@ namespace :gem do
if
lines
.
size
==
0
if
lines
.
size
==
0
puts
"Change the version number yourself in lib/cocoapods.rb"
puts
"Change the version number yourself in lib/cocoapods.rb"
elsif
lines
.
size
==
1
&&
lines
.
first
.
include?
(
'lib/cocoapods.rb'
)
elsif
lines
.
size
==
1
&&
lines
.
first
.
include?
(
'lib/cocoapods.rb'
)
# First see if the gem builds and installs
# First see if the specs pass and gem builds and installs
Rake
::
Task
[
'spec:all'
].
invoke
Rake
::
Task
[
'gem:install'
].
invoke
Rake
::
Task
[
'gem:install'
].
invoke
# Then release
# Then release
sh
"git commit lib/cocoapods.rb -m 'Release
#{
gem_version
}
'"
sh
"git commit lib/cocoapods.rb -m 'Release
#{
gem_version
}
'"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment