Skip to content

Commit 35355c2

Browse files
committed
Fix the reference of Pod::UI
1 parent 8ce7c7d commit 35355c2

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

‎lib/pbind.rb‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
require'xcodeproj'
33

44
modulePbind
5-
require'cocoapods/user_interface'
65
require_relative'pbind/command'
76
end

‎lib/pbind/command.rb‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
require'colored'
22
require'claide'
33

4+
require'cocoapods/config'
5+
require'cocoapods/user_interface'
6+
47
modulePbind
58
classCommand < CLAide::Command
69

@@ -13,17 +16,18 @@ class Command < CLAide::Command
1316
self.description='Pbind, the Pbind XcodeProject Helper.'
1417
self.plugin_prefixes=%w(claidepbind)
1518

19+
UI=Pod::UI
20+
1621
defself.report_error(exception)
1722
caseexception
1823
whenInterrupt
1924
puts''
2025
puts'[!] Cancelled'.red
21-
# Config.instance.verbose? ? raise : exit(1)
2226
whenSystemExit
2327
raise
2428
else
2529
# if ENV['PBIND_ENV'] != 'development'
26-
# puts UI::ErrorReport.report(exception)
30+
# puts UI::ErrorReport.report(exception)
2731
# UI::ErrorReport.search_for_exceptions(exception)
2832
# exit 1
2933
# else
@@ -44,6 +48,12 @@ def initialize(argv)
4448
@project_path=argv.option('project')
4549
end
4650

51+
defrun
52+
if !@changed
53+
UI.notice'All are UP-TO-DATE.'
54+
end
55+
end
56+
4757
defverify_project_exists
4858
if@project_path == nil
4959
projects=Dir.glob("*.xcodeproj")

‎lib/pbind/command/mock.rb‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ def run
3535

3636
add_mock_json
3737

38-
if !@changed
39-
puts'All are UP-TO-DATE.'
40-
end
38+
super
4139
end
4240

4341
private

‎lib/pbind/command/watch.rb‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ def run
3939
add_plist_entries
4040
add_group_references
4141

42-
if !@changed
43-
puts'All are UP-TO-DATE.'
44-
end
42+
super
4543
end
4644

4745
private

0 commit comments

Comments
(0)