cocoapods-rome 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +29 -23
- data/README.md +1 -1
- data/cocoapods-rome.gemspec +2 -0
- data/lib/cocoapods-rome/gem_version.rb +1 -1
- data/lib/cocoapods-rome/post_install.rb +24 -7
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39349e3eb241f7f32fb8008ed923fb6418756b09
|
4
|
+
data.tar.gz: becffa42b45bec1b97229428dcf501a12cd7e9ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7244588f9e6ff4ddadc748283eddbeb12960305e54d68b16bfe68f7e890373ad20494ce2f5eda799c2ddf59be14018e4e5c3c7cf93b6c0aac520636250cb578
|
7
|
+
data.tar.gz: 2072032d52cbb4545cdc936b817a24303e1661dc2e5af2ee4ba1b2d08ca53c1c46eb0d7fcbd902dfa979fa19f8dad8cf033e079824ed19b853b1f31a2ed56876
|
data/Gemfile.lock
CHANGED
@@ -1,60 +1,63 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-rome (0.0
|
4
|
+
cocoapods-rome (0.1.0)
|
5
|
+
cocoapods (>= 0.38.0.beta2)
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: https://rubygems.org/
|
8
9
|
specs:
|
9
|
-
activesupport (4.2.
|
10
|
+
activesupport (4.2.3)
|
10
11
|
i18n (~> 0.7)
|
11
12
|
json (~> 1.7, >= 1.7.7)
|
12
13
|
minitest (~> 5.1)
|
13
14
|
thread_safe (~> 0.3, >= 0.3.4)
|
14
15
|
tzinfo (~> 1.1)
|
15
16
|
bacon (1.2.0)
|
16
|
-
claide (0.
|
17
|
-
cocoapods (0.
|
17
|
+
claide (0.9.1)
|
18
|
+
cocoapods (0.38.0.beta.2)
|
18
19
|
activesupport (>= 3.2.15)
|
19
|
-
claide (~> 0.
|
20
|
-
cocoapods-core (= 0.
|
21
|
-
cocoapods-downloader (~> 0.
|
22
|
-
cocoapods-plugins (~> 0.4.
|
23
|
-
cocoapods-
|
24
|
-
cocoapods-
|
20
|
+
claide (~> 0.9.1)
|
21
|
+
cocoapods-core (= 0.38.0.beta.2)
|
22
|
+
cocoapods-downloader (~> 0.9.1)
|
23
|
+
cocoapods-plugins (~> 0.4.2)
|
24
|
+
cocoapods-stats (~> 0.5.3)
|
25
|
+
cocoapods-trunk (~> 0.6.1)
|
26
|
+
cocoapods-try (~> 0.4.5)
|
25
27
|
colored (~> 1.2)
|
26
28
|
escape (~> 0.0.4)
|
27
|
-
molinillo (~> 0.
|
29
|
+
molinillo (~> 0.3.0)
|
28
30
|
nap (~> 0.8)
|
29
|
-
|
30
|
-
|
31
|
-
cocoapods-core (0.36.0)
|
31
|
+
xcodeproj (~> 0.26.1)
|
32
|
+
cocoapods-core (0.38.0.beta.2)
|
32
33
|
activesupport (>= 3.2.15)
|
33
34
|
fuzzy_match (~> 2.0.4)
|
34
35
|
nap (~> 0.8.0)
|
35
|
-
cocoapods-downloader (0.
|
36
|
-
cocoapods-plugins (0.4.
|
36
|
+
cocoapods-downloader (0.9.1)
|
37
|
+
cocoapods-plugins (0.4.2)
|
37
38
|
nap
|
38
|
-
cocoapods-
|
39
|
+
cocoapods-stats (0.5.3)
|
40
|
+
nap (~> 0.8)
|
41
|
+
cocoapods-trunk (0.6.1)
|
39
42
|
nap (>= 0.8)
|
40
43
|
netrc (= 0.7.8)
|
41
|
-
cocoapods-try (0.4.
|
44
|
+
cocoapods-try (0.4.5)
|
42
45
|
colored (1.2)
|
43
46
|
escape (0.0.4)
|
44
47
|
fuzzy_match (2.0.4)
|
45
48
|
i18n (0.7.0)
|
46
|
-
json (1.8.
|
47
|
-
minitest (5.
|
48
|
-
molinillo (0.
|
49
|
+
json (1.8.3)
|
50
|
+
minitest (5.7.0)
|
51
|
+
molinillo (0.3.0)
|
49
52
|
nap (0.8.0)
|
50
53
|
netrc (0.7.8)
|
51
|
-
open4 (1.3.4)
|
52
54
|
rake (10.4.2)
|
53
55
|
thread_safe (0.3.5)
|
54
56
|
tzinfo (1.2.2)
|
55
57
|
thread_safe (~> 0.1)
|
56
|
-
xcodeproj (0.
|
58
|
+
xcodeproj (0.26.1)
|
57
59
|
activesupport (>= 3)
|
60
|
+
claide (~> 0.9.1)
|
58
61
|
colored (~> 1.2)
|
59
62
|
|
60
63
|
PLATFORMS
|
@@ -66,3 +69,6 @@ DEPENDENCIES
|
|
66
69
|
cocoapods
|
67
70
|
cocoapods-rome!
|
68
71
|
rake
|
72
|
+
|
73
|
+
BUNDLED WITH
|
74
|
+
1.10.5
|
data/README.md
CHANGED
data/cocoapods-rome.gemspec
CHANGED
@@ -18,6 +18,8 @@ Xcode}
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
+
spec.add_dependency "cocoapods", ">= 0.38.0.beta2"
|
22
|
+
|
21
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
24
|
spec.add_development_dependency "rake"
|
23
25
|
end
|
@@ -1,3 +1,7 @@
|
|
1
|
+
def xcodebuild(sandbox, target, sdk='macosx')
|
2
|
+
Pod::Executable.execute_command 'xcodebuild', %W(-project #{sandbox.project_path.basename} -scheme #{target} -configuration Release -sdk #{sdk}), true
|
3
|
+
end
|
4
|
+
|
1
5
|
Pod::HooksManager.register('cocoapods-rome', :post_install) do |installer_context|
|
2
6
|
sandbox_root = Pathname(installer_context.sandbox_root)
|
3
7
|
sandbox = Pod::Sandbox.new(sandbox_root)
|
@@ -9,24 +13,37 @@ Pod::HooksManager.register('cocoapods-rome', :post_install) do |installer_contex
|
|
9
13
|
|
10
14
|
build_dir.rmtree if build_dir.directory?
|
11
15
|
Dir.chdir(sandbox.project_path.dirname) do
|
12
|
-
targets = installer_context.umbrella_targets.select { |t| t.specs.any? }
|
16
|
+
targets = installer_context.umbrella_targets.select { |t| t.specs.any? }
|
13
17
|
targets.each do |target|
|
14
|
-
|
18
|
+
if target.platform_name == :ios
|
19
|
+
xcodebuild(sandbox, target.cocoapods_target_label, 'iphoneos')
|
20
|
+
xcodebuild(sandbox, target.cocoapods_target_label, 'iphonesimulator')
|
21
|
+
|
22
|
+
target.specs.each do |spec|
|
23
|
+
device_lib = "#{build_dir}/Release-iphoneos/#{spec.name}.framework/#{spec.name}"
|
24
|
+
simulator_lib = "#{build_dir}/Release-iphonesimulator/#{spec.name}.framework/#{spec.name}"
|
25
|
+
`lipo -create -output "#{build_dir}/#{spec.name}" #{device_lib} #{simulator_lib}`
|
26
|
+
|
27
|
+
FileUtils.mv "#{build_dir}/#{spec.name}", device_lib
|
28
|
+
Pathname.new("#{build_dir}/Release-iphonesimulator/#{spec.name}.framework").rmtree
|
29
|
+
end
|
30
|
+
else
|
31
|
+
xcodebuild(sandbox, target.cocoapods_target_label)
|
32
|
+
end
|
15
33
|
end
|
16
34
|
end
|
17
35
|
|
18
36
|
raise Pod::Informative, 'The build directory was not found in the expected location.' unless build_dir.directory?
|
19
37
|
|
20
|
-
frameworks = Pathname.glob(build_dir + 'Release
|
21
|
-
frameworks_by_target = frameworks.group_by { |f| f.to_s =~ %r{build/Release[^/]*/Pods-?([^/]*)/} && destination + $1 }
|
38
|
+
frameworks = Pathname.glob(build_dir + 'Release*/*.framework').reject { |f| f.to_s =~ /Pods*\.framework/ }
|
22
39
|
|
23
40
|
Pod::UI.puts "Built #{frameworks.count} #{'frameworks'.pluralize(frameworks.count)}"
|
24
41
|
Pod::UI.puts "Copying frameworks to `#{destination.relative_path_from Pathname.pwd}`"
|
25
42
|
|
26
43
|
destination.rmtree if destination.directory?
|
27
|
-
|
28
|
-
FileUtils.mkdir_p
|
29
|
-
FileUtils.cp_r
|
44
|
+
frameworks.each do |framework|
|
45
|
+
FileUtils.mkdir_p destination
|
46
|
+
FileUtils.cp_r framework, destination, :remove_destination => true
|
30
47
|
end
|
31
48
|
build_dir.rmtree if build_dir.directory?
|
32
49
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-rome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
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: 2015-
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: cocoapods
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.38.0.beta2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.38.0.beta2
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|