pbind 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e46541776df172f35c194697009b8a130d35eb6e
4
- data.tar.gz: dc60fedd316a0582f032a1b7a645bcf82d7d70d6
3
+ metadata.gz: daffbf09983752ded6d29b3b64bf7d5f8d0bd776
4
+ data.tar.gz: 367f984121f3d3d13bed951a0063a5190b5e41cc
5
5
  SHA512:
6
- metadata.gz: 79a5c090c844a61f3912a107b1a4893c0ca31033947aea8733ee5f7438924d00432053cbb6cd56b17ddd49d776bb1d21e6663d92bfd589b1092c3167653addb0
7
- data.tar.gz: eb49872e73400f8b174f5d82b1f169cd0a70e01cfc465590b8a6036d354a58fe3de5e8673e756c0144216ecf3a9f4a9d7da79f3ba6645314b56bf25cde236515
6
+ metadata.gz: feef5da07a5578c78c730231a3aeb2141b8ca5055be4ad29c453b77cf98f0e1e0696b7cabfd44e34111455225820e485a4392887bb84c2e547e375b5816fbf96
7
+ data.tar.gz: be7f7468246d76ceef180c1b408222af9b5d8c755769bdb1eb02b586617ddf0a4e651fe910d27fafeebb4613acfdf04a16e29b336f769d86696c6f175a4cd1ae
@@ -2,6 +2,5 @@ require 'rubygems'
2
2
  require 'xcodeproj'
3
3
 
4
4
  module Pbind
5
- require 'cocoapods/user_interface'
6
5
  require_relative 'pbind/command'
7
6
  end
@@ -1,6 +1,9 @@
1
1
  require 'colored'
2
2
  require 'claide'
3
3
 
4
+ require 'cocoapods/config'
5
+ require 'cocoapods/user_interface'
6
+
4
7
  module Pbind
5
8
  class Command < CLAide::Command
6
9
 
@@ -13,17 +16,18 @@ module Pbind
13
16
  self.description = 'Pbind, the Pbind XcodeProject Helper.'
14
17
  self.plugin_prefixes = %w(claide pbind)
15
18
 
19
+ UI = Pod::UI
20
+
16
21
  def self.report_error(exception)
17
22
  case exception
18
23
  when Interrupt
19
24
  puts ''
20
25
  puts '[!] Cancelled'.red
21
- # Config.instance.verbose? ? raise : exit(1)
22
26
  when SystemExit
23
27
  raise
24
28
  else
25
29
  # if ENV['PBIND_ENV'] != 'development'
26
- # puts UI::ErrorReport.report(exception)
30
+ # puts UI::ErrorReport.report(exception)
27
31
  # UI::ErrorReport.search_for_exceptions(exception)
28
32
  # exit 1
29
33
  # else
@@ -44,6 +48,12 @@ module Pbind
44
48
  @project_path = argv.option('project')
45
49
  end
46
50
 
51
+ def run
52
+ if !@changed
53
+ UI.notice 'All are UP-TO-DATE.'
54
+ end
55
+ end
56
+
47
57
  def verify_project_exists
48
58
  if @project_path == nil
49
59
  projects = Dir.glob("*.xcodeproj")
@@ -35,9 +35,7 @@ module Pbind
35
35
 
36
36
  add_mock_json
37
37
 
38
- if !@changed
39
- puts 'All are UP-TO-DATE.'
40
- end
38
+ super
41
39
  end
42
40
 
43
41
  private
@@ -39,9 +39,7 @@ module Pbind
39
39
  add_plist_entries
40
40
  add_group_references
41
41
 
42
- if !@changed
43
- puts 'All are UP-TO-DATE.'
44
- end
42
+ super
45
43
  end
46
44
 
47
45
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Galen Lin