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
5991d6f9
Commit
5991d6f9
authored
May 31, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some 'informative' messages should just be plain simple.
parent
0cbb1568
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
cocoapods.rb
lib/cocoapods.rb
+4
-1
command.rb
lib/cocoapods/command.rb
+2
-2
No files found.
lib/cocoapods.rb
View file @
5991d6f9
...
...
@@ -3,7 +3,10 @@ Encoding.default_external = Encoding::UTF_8 if RUBY_VERSION > '1.8.7'
module
Pod
VERSION
=
'0.6.0.rc1'
class
Informative
<
StandardError
class
PlainInformative
<
StandardError
end
class
Informative
<
PlainInformative
def
message
#TODO: remove formatting from raise calls and remove conditional
super
!~
/\[!\]/
?
"[!]
#{
super
}
\n
"
.
red
:
super
...
...
lib/cocoapods/command.rb
View file @
5991d6f9
...
...
@@ -73,7 +73,7 @@ module Pod
Config
.
instance
.
verbose?
?
raise
:
exit
(
1
)
rescue
Exception
=>
e
if
e
.
is_a?
(
Informative
)
if
e
.
is_a?
(
PlainInformative
)
# also catches Informative
puts
e
.
message
puts
*
e
.
backtrace
if
Config
.
instance
.
verbose?
else
...
...
@@ -84,7 +84,7 @@ module Pod
def
self
.
parse
(
*
argv
)
argv
=
ARGV
.
new
(
argv
)
raise
Informative
,
VERSION
if
argv
.
option
(
'--version'
)
raise
Plain
Informative
,
VERSION
if
argv
.
option
(
'--version'
)
show_help
=
argv
.
option
(
'--help'
)
Config
.
instance
.
silent
=
argv
.
option
(
'--silent'
)
...
...
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