cocoapods-stats 1.0.0.beta.1 → 1.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +35 -27
- data/lib/cocoapods_stats/gem_version.rb +1 -1
- data/lib/cocoapods_stats/target_mapper.rb +6 -15
- data/spec/target_mapper_spec.rb +12 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f83f2c32f2b11b9f98a6b33d73b1447d9c96826d
|
4
|
+
data.tar.gz: 79ba9a9b409484c8af70056b3b0b185c75bde286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1ce9b9bf7efadf1c30a6fcd685d7f9cec66235d5e894eafe3d526a7d35bd9f372e2ad50b27116793a42ec15ec191886c39536a5287a76f4e9be377f4784f4e1
|
7
|
+
data.tar.gz: 809721de765a386814dd70829445e93a60f889910b3ec73d739a9ea007d90189b378ba6e162d2670a261bbcaf76e8e18f60c7c8878fa91d37c0fca065dd4399c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# CocoaPods Stats CHANGELOG
|
2
2
|
|
3
|
+
## 1.0.0.beta.2 (2016-01-05)
|
4
|
+
|
5
|
+
##### Enhancements
|
6
|
+
|
7
|
+
* Speed up stats collection by not re-opening every user Xcode project.
|
8
|
+
[Samuel Giddins](https://github.com/segiddins)
|
9
|
+
|
10
|
+
|
3
11
|
## 1.0.0.beta.1 (2015-12-30)
|
4
12
|
|
5
13
|
This version contains no changes.
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-stats (1.0.0.beta.
|
4
|
+
cocoapods-stats (1.0.0.beta.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
activesupport (4.2.
|
9
|
+
activesupport (4.2.5)
|
10
10
|
i18n (~> 0.7)
|
11
11
|
json (~> 1.7, >= 1.7.7)
|
12
12
|
minitest (~> 5.1)
|
@@ -16,44 +16,51 @@ GEM
|
|
16
16
|
astrolabe (1.3.0)
|
17
17
|
parser (>= 2.2.0.pre.3, < 3.0)
|
18
18
|
bacon (1.2.0)
|
19
|
-
claide (0.
|
20
|
-
cocoapods (0.
|
21
|
-
activesupport (>=
|
22
|
-
claide (
|
23
|
-
cocoapods-core (= 0.
|
24
|
-
cocoapods-
|
25
|
-
cocoapods-
|
26
|
-
cocoapods-
|
27
|
-
cocoapods-
|
19
|
+
claide (1.0.0.beta.1)
|
20
|
+
cocoapods (1.0.0.beta.1)
|
21
|
+
activesupport (>= 4.0.2)
|
22
|
+
claide (>= 1.0.0.beta.1, < 2.0)
|
23
|
+
cocoapods-core (= 1.0.0.beta.1)
|
24
|
+
cocoapods-deintegrate (>= 1.0.0.beta.1, < 2.0)
|
25
|
+
cocoapods-downloader (>= 1.0.0.beta.1, < 2.0)
|
26
|
+
cocoapods-plugins (>= 1.0.0.beta.1, < 2.0)
|
27
|
+
cocoapods-search (>= 1.0.0.beta.1, < 2.0)
|
28
|
+
cocoapods-stats (>= 1.0.0.beta.1, < 2.0)
|
29
|
+
cocoapods-trunk (>= 1.0.0.beta.1, < 2.0)
|
30
|
+
cocoapods-try (>= 1.0.0.beta.1, < 2.0)
|
28
31
|
colored (~> 1.2)
|
29
32
|
escape (~> 0.0.4)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
fourflusher (~> 0.3.0)
|
34
|
+
molinillo (~> 0.4.1)
|
35
|
+
nap (~> 1.0)
|
36
|
+
xcodeproj (>= 1.0.0.beta.1, < 2.0)
|
37
|
+
cocoapods-core (1.0.0.beta.1)
|
38
|
+
activesupport (>= 4.0.2)
|
35
39
|
fuzzy_match (~> 2.0.4)
|
36
|
-
nap (~>
|
37
|
-
cocoapods-
|
38
|
-
cocoapods-
|
40
|
+
nap (~> 1.0)
|
41
|
+
cocoapods-deintegrate (1.0.0.beta.1)
|
42
|
+
cocoapods-downloader (1.0.0.beta.1)
|
43
|
+
cocoapods-plugins (1.0.0.beta.1)
|
39
44
|
nap
|
40
|
-
cocoapods-
|
41
|
-
|
45
|
+
cocoapods-search (1.0.0.beta.1)
|
46
|
+
cocoapods-trunk (1.0.0.beta.1)
|
47
|
+
nap (>= 0.8, < 2.0)
|
42
48
|
netrc (= 0.7.8)
|
43
|
-
cocoapods-try (0.
|
49
|
+
cocoapods-try (1.0.0.beta.1)
|
44
50
|
colored (1.2)
|
45
51
|
escape (0.0.4)
|
52
|
+
fourflusher (0.3.0)
|
46
53
|
fuzzy_match (2.0.4)
|
47
54
|
i18n (0.7.0)
|
48
55
|
json (1.8.3)
|
49
56
|
metaclass (0.0.4)
|
50
|
-
minitest (5.
|
57
|
+
minitest (5.8.3)
|
51
58
|
mocha (1.1.0)
|
52
59
|
metaclass (~> 0.0.1)
|
53
60
|
mocha-on-bacon (0.2.2)
|
54
61
|
mocha (>= 0.13.0)
|
55
|
-
molinillo (0.
|
56
|
-
nap (0.
|
62
|
+
molinillo (0.4.1)
|
63
|
+
nap (1.0.0)
|
57
64
|
netrc (0.7.8)
|
58
65
|
parser (2.2.2.2)
|
59
66
|
ast (>= 1.1, < 3.0)
|
@@ -72,8 +79,9 @@ GEM
|
|
72
79
|
thread_safe (0.3.5)
|
73
80
|
tzinfo (1.2.2)
|
74
81
|
thread_safe (~> 0.1)
|
75
|
-
xcodeproj (0.
|
82
|
+
xcodeproj (1.0.0.beta.2)
|
76
83
|
activesupport (>= 3)
|
84
|
+
claide (>= 1.0.0.beta.1, < 2.0)
|
77
85
|
colored (~> 1.2)
|
78
86
|
|
79
87
|
PLATFORMS
|
@@ -82,7 +90,7 @@ PLATFORMS
|
|
82
90
|
DEPENDENCIES
|
83
91
|
bacon
|
84
92
|
bundler (~> 1.3)
|
85
|
-
cocoapods
|
93
|
+
cocoapods (>= 0.a)
|
86
94
|
cocoapods-stats!
|
87
95
|
mocha-on-bacon
|
88
96
|
prettybacon
|
@@ -7,14 +7,6 @@ module CocoaPodsStats
|
|
7
7
|
# generate a collection of hashes
|
8
8
|
def pods_from_project(context, master_pods)
|
9
9
|
context.umbrella_targets.flat_map do |target|
|
10
|
-
next unless target.user_project_path
|
11
|
-
|
12
|
-
# These UUIDs come from the Xcode project
|
13
|
-
# http://danwright.info/blog/2010/10/xcode-pbxproject-files-3/
|
14
|
-
|
15
|
-
project = Xcodeproj::Project.open(target.user_project_path)
|
16
|
-
next unless project
|
17
|
-
|
18
10
|
root_specs = target.specs.map(&:root).uniq
|
19
11
|
|
20
12
|
# As it's hard to look up the source of a pod, we
|
@@ -24,19 +16,18 @@ module CocoaPodsStats
|
|
24
16
|
select { |spec| master_pods.include?(spec.name) }.
|
25
17
|
map { |spec| { :name => spec.name, :version => spec.version.to_s } }
|
26
18
|
|
27
|
-
|
28
|
-
|
29
|
-
|
19
|
+
# This will be an empty array for `integrate_targets: false` Podfiles
|
20
|
+
target.user_targets.map do |user_target|
|
30
21
|
# Send in a digested'd UUID anyway, a second layer
|
31
22
|
# of misdirection can't hurt
|
32
23
|
{
|
33
|
-
:uuid => Digest::SHA256.hexdigest(uuid),
|
34
|
-
:type =>
|
24
|
+
:uuid => Digest::SHA256.hexdigest(user_target.uuid),
|
25
|
+
:type => user_target.product_type,
|
35
26
|
:pods => pods,
|
36
|
-
:platform =>
|
27
|
+
:platform => user_target.platform_name,
|
37
28
|
}
|
38
29
|
end
|
39
|
-
end
|
30
|
+
end
|
40
31
|
end
|
41
32
|
end
|
42
33
|
end
|
data/spec/target_mapper_spec.rb
CHANGED
@@ -4,13 +4,10 @@ require 'cocoapods_stats/target_mapper'
|
|
4
4
|
describe CocoaPodsStats::TargetMapper do
|
5
5
|
describe 'pods_from_project' do
|
6
6
|
before do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
project = mock
|
12
|
-
project.stubs(:objects_by_uuid).returns('111222333' => project_target)
|
13
|
-
Xcodeproj::Project.stubs(:open).returns(project)
|
7
|
+
@user_target = mock('PBXNativeTarget')
|
8
|
+
@user_target.stubs(:product_type).returns('testing')
|
9
|
+
@user_target.stubs(:platform_name).returns('test platform')
|
10
|
+
@user_target.stubs(:uuid).returns('111222333')
|
14
11
|
end
|
15
12
|
|
16
13
|
it 'returns expected data' do
|
@@ -20,12 +17,12 @@ describe CocoaPodsStats::TargetMapper do
|
|
20
17
|
spec.name = 'ORStackView'
|
21
18
|
spec.version = '1.1.1'
|
22
19
|
|
23
|
-
target = mock
|
20
|
+
target = mock('AggregateTarget')
|
24
21
|
target.stubs(:specs).returns([spec])
|
25
|
-
target.stubs(:
|
26
|
-
target.stubs(:
|
22
|
+
target.stubs(:user_targets).returns([@user_target])
|
23
|
+
target.stubs(:user_project).returns(mock('Project'))
|
27
24
|
|
28
|
-
context = mock
|
25
|
+
context = mock('Context')
|
29
26
|
context.stubs(:umbrella_targets).returns([target])
|
30
27
|
|
31
28
|
mapper = CocoaPodsStats::TargetMapper.new
|
@@ -49,12 +46,12 @@ describe CocoaPodsStats::TargetMapper do
|
|
49
46
|
spec.name = 'ORStackView'
|
50
47
|
spec.version = '1.1.1'
|
51
48
|
|
52
|
-
target = mock
|
49
|
+
target = mock('AggregateTarget')
|
53
50
|
target.stubs(:specs).returns([spec])
|
54
|
-
target.stubs(:
|
55
|
-
target.stubs(:
|
51
|
+
target.stubs(:user_targets).returns([@user_target])
|
52
|
+
target.stubs(:user_project).returns(mock('Project'))
|
56
53
|
|
57
|
-
context = mock
|
54
|
+
context = mock('Context')
|
58
55
|
context.stubs(:umbrella_targets).returns([target])
|
59
56
|
|
60
57
|
mapper = CocoaPodsStats::TargetMapper.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-stats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|