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
8ee4b053
Commit
8ee4b053
authored
Aug 02, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rakefile] Allow to release with changes in the Gemfile.lock file
parent
f6e57088
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Rakefile
Rakefile
+2
-1
No files found.
Rakefile
View file @
8ee4b053
...
@@ -62,6 +62,7 @@ namespace :gem do
...
@@ -62,6 +62,7 @@ namespace :gem do
diff_lines
=
`git diff --name-only`
.
strip
.
split
(
"
\n
"
)
diff_lines
=
`git diff --name-only`
.
strip
.
split
(
"
\n
"
)
diff_lines
.
delete
(
'CHANGELOG.md'
)
diff_lines
.
delete
(
'CHANGELOG.md'
)
diff_lines
.
delete
(
'Gemfile.lock'
)
if
diff_lines
.
size
==
0
if
diff_lines
.
size
==
0
$stderr
.
puts
"[!] Change the version number yourself in lib/cocoapods/gem_version.rb"
$stderr
.
puts
"[!] Change the version number yourself in lib/cocoapods/gem_version.rb"
...
@@ -117,7 +118,7 @@ namespace :gem do
...
@@ -117,7 +118,7 @@ namespace :gem do
silent_sh
"gem install --install-dir='
#{
tmp_gems
}
'
#{
gem_filename
}
"
silent_sh
"gem install --install-dir='
#{
tmp_gems
}
'
#{
gem_filename
}
"
# Then release
# Then release
sh
"git commit lib/cocoapods/gem_version.rb CHANGELOG.md -m 'Release
#{
gem_version
}
'"
sh
"git commit lib/cocoapods/gem_version.rb CHANGELOG.md
Gemfile.lock
-m 'Release
#{
gem_version
}
'"
sh
"git tag -a
#{
gem_version
}
-m 'Release
#{
gem_version
}
'"
sh
"git tag -a
#{
gem_version
}
-m 'Release
#{
gem_version
}
'"
sh
"git push origin master"
sh
"git push origin master"
sh
"git push origin --tags"
sh
"git push origin --tags"
...
...
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