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
fedfd05c
Commit
fedfd05c
authored
Aug 13, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Gemspec] Remove post install message
parent
3b6eef07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
20 deletions
+5
-20
CHANGELOG.md
CHANGELOG.md
+4
-0
cocoapods.gemspec
cocoapods.gemspec
+1
-20
No files found.
CHANGELOG.md
View file @
fedfd05c
...
...
@@ -46,6 +46,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
*
Properly quote the
`-isystem`
values in the xcconfig files.
[
Eloy Durán
](
https://github.com/alloy
)
*
The post install message with the Changelog has been removed from the
gemspec.
[
Fabio Pelosin
][
irrationalfab
]
[
Eloy Durán
](
https://github.com/alloy
)
##### Bug Fixes
...
...
cocoapods.gemspec
View file @
fedfd05c
...
...
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
"in, third party open-source libraries, by creating a more centralized "
\
"ecosystem."
s
.
files
=
Dir
[
"lib/**/*.rb"
]
+
%w{ bin/pod bin/sandbox-pod README.md LICENSE CHANGELOG.md }
s
.
files
=
Dir
[
"lib/**/*.rb"
]
+
%w{ bin/pod bin/sandbox-pod README.md LICENSE CHANGELOG.md }
s
.
executables
=
%w{ pod sandbox-pod }
s
.
require_paths
=
%w{ lib }
...
...
@@ -49,23 +49,4 @@ s.files = Dir["lib/**/*.rb"] + %w{ bin/pod bin/sandbox-pod README.md LICENSE CHA
s
.
required_rubygems_version
=
Gem
::
Requirement
.
new
(
">= 0"
)
if
s
.
respond_to?
:required_rubygems_version
=
s
.
required_ruby_version
=
'>= 1.8.7'
s
.
specification_version
=
3
if
s
.
respond_to?
:specification_version
changelog_path
=
File
.
expand_path
(
'../CHANGELOG.md'
,
__FILE__
)
if
File
.
exists?
(
changelog_path
)
title_token
=
'## '
current_verison_title
=
title_token
+
Pod
::
VERSION
.
to_s
text
=
File
.
open
(
changelog_path
,
"r:UTF-8"
)
{
|
f
|
f
.
read
}
lines
=
text
.
split
(
"
\n
"
)
current_version_index
=
lines
.
find_index
{
|
line
|
line
=~
(
/^
#{
current_verison_title
}
/
)
}
unless
current_version_index
raise
"Update the changelog for the last version"
end
previous_version_lines
=
lines
[(
current_version_index
+
1
)
...-
1
]
previous_version_index
=
current_version_index
+
previous_version_lines
.
find_index
{
|
line
|
line
=~
(
/^
#{
title_token
}
/
)
&&
!
line
.
include?
(
'rc'
)
}
relevant
=
lines
[
current_version_index
..
previous_version_index
]
s
.
post_install_message
=
"
\n
CHANGELOG:
\n\n
"
+
relevant
.
join
(
"
\n
"
)
+
"
\n
"
end
end
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