cocoapods-testing 0.0.1 → 0.0.2

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: 719cfa06507004c821138b8b791f3898019abd7b
4
- data.tar.gz: 45a398bc4932365fddb16be9b945b8408d899cc5
3
+ metadata.gz: 6952e7dc0337e1a1d2d52a3839c49757e79c7fba
4
+ data.tar.gz: 19566e4c82f934510498e67ef285aec848e016dd
5
5
  SHA512:
6
- metadata.gz: 4d5a73cfa8c43560c151367e929500189161859ba6ec7e3f5e143dfa19707ec4e8dddd3e50c52626c8fe8d0b330098f679cd3d156b5d540d3f2f2e492f11a682
7
- data.tar.gz: 7e09a626f624b3beac2bd26ae3a45f1bd8da4ab70b71390050c7db8c97902c524c5f832a0cc3582ac457b11ce7c8d6771005a4b4cc5c19b365f6bf85399a79eb
6
+ metadata.gz: 140c6016624c64ea51620eb3c55ff96e1d2605314f2b6cda274392d2f284f1d3076f8e63c084352ea7c0e015fa86f6b9e01a1a8d8b6ea7695c9a299b8392feda
7
+ data.tar.gz: 2cf23f360f13ad59962f74c8ab7432bc4e81dfb87b44f40d918b8e24ba93bc96b71d3f07a321e323f1b1dcf91bc6d2ffefae8f4a505f4bca759f30ceabe43777
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTesting
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -14,6 +14,9 @@ module Pod
14
14
  def handle_workspace(workspace, workspace_location)
15
15
  workspace.file_references.each do |ref|
16
16
  if ref.path.end_with?('.xcodeproj')
17
+ if not File.exists? ref.path
18
+ next
19
+ end
17
20
  project = Xcodeproj::Project.open(ref.path)
18
21
 
19
22
  schemes = Dir[Xcodeproj::XCScheme.shared_data_dir(ref.path).to_s + '/*']
@@ -43,6 +46,8 @@ module Pod
43
46
  puts scheme_map
44
47
 
45
48
  scheme = scheme_map[target.name]
49
+ # Fallback to first scheme if none is found for this target
50
+ scheme = scheme_map.first[1] unless scheme && scheme.length > 0
46
51
  run_tests(workspace_location, target.name, scheme)
47
52
  end
48
53
  end
@@ -87,16 +92,30 @@ module Pod
87
92
  end
88
93
  end
89
94
 
95
+ def handle_workspaces_in_dir(dir)
96
+ workspaces_in_dir(dir).each do |workspace|
97
+ next if workspace.end_with?('.xcodeproj')
98
+
99
+ wrkspace = Xcodeproj::Workspace.new_from_xcworkspace(workspace)
100
+ handle_workspace(wrkspace, workspace)
101
+ end
102
+ end
103
+
90
104
  def run
91
105
  podspecs_to_check.each do # |path|
92
106
  # TODO: How to link specs to projects/workspaces?
93
107
  # spec = Specification.from_file(path)
94
108
 
95
- workspaces_in_dir(Pathname.pwd).each do |workspace|
96
- next if workspace.end_with?('.xcodeproj')
109
+ handle_workspaces_in_dir(Pathname.pwd)
97
110
 
98
- wrkspace = Xcodeproj::Workspace.new_from_xcworkspace(workspace)
99
- handle_workspace(wrkspace, workspace)
111
+ Dir['*'].each do |dir|
112
+ next if !File.directory?(dir)
113
+ original_dir = Pathname.pwd
114
+ Dir.chdir(dir)
115
+
116
+ handle_workspaces_in_dir(Pathname.pwd)
117
+
118
+ Dir.chdir(original_dir)
100
119
  end
101
120
  end
102
121
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Bügling
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctasks
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Run tests for any pod from the command line without any prior knowledge.
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE.txt
65
65
  - README.md
@@ -79,12 +79,12 @@ require_paths:
79
79
  - lib
80
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
@@ -94,3 +94,4 @@ signing_key:
94
94
  specification_version: 4
95
95
  summary: Run tests for any pod from the command line without any prior knowledge.
96
96
  test_files: []
97
+ has_rdoc: