cint 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/cint +12 -4
- data/lib/cint/version.rb +1 -1
- data/lib/xcodeproj.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 54ea5ee92cb9903a4f26197b00582d9ff6145b7a549efdd7e56041b3f1795d61
|
4
|
+
data.tar.gz: ee696712694fa804445ba4b890dd67f4045c46390627526fc915a115c4fed6af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e588b623d4942b7edc74be77da755030370a460a9802832f024d0181eddaf1256b4cfcea359bab8edda4d3f2268863b09c0d11c51a56e879198bdf5a7f88e2a
|
7
|
+
data.tar.gz: 35959160dac319b86203f95e60ee33d7f162459e49beddf0cd6b706d9cef682529a54dbed4fd671e7575aeab22963070d9af3b905347630b1d92951139269caf
|
data/bin/cint
CHANGED
@@ -10,7 +10,7 @@ require 'commander/import'
|
|
10
10
|
require 'lib/xcodeproj'
|
11
11
|
require 'lib/cint'
|
12
12
|
|
13
|
-
program :name, '
|
13
|
+
program :name, 'Carthage Integrator'
|
14
14
|
program :version, Cint::VERSION
|
15
15
|
program :description, 'Integrates Carthage Frameworks'
|
16
16
|
program :help, 'Author', 'Alex Antonyuk <alex@antonyuk.me>'
|
@@ -53,12 +53,19 @@ class CarthageFiles
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
56
|
+
def prepare_inputs(frameworks)
|
57
57
|
frameworks.map do |f|
|
58
58
|
"$(SRCROOT)#{f[1..-1]}"
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
def prepare_outputs(frameworks)
|
63
|
+
frameworks.map do |f|
|
64
|
+
name = f.split("/").last
|
65
|
+
"$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/#{name}"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
62
69
|
def print_report(target, all, integrated)
|
63
70
|
all.map! { |f| File.basename(f) }
|
64
71
|
integrated.map! { |f| File.basename(f) }
|
@@ -116,8 +123,9 @@ def intergate_frameworks(target, project)
|
|
116
123
|
|
117
124
|
# Integrate Shell Script
|
118
125
|
phase = target.carthage_build_phase
|
119
|
-
|
120
|
-
|
126
|
+
prepared_inputs = prepare_inputs(frameworks)
|
127
|
+
prepared_outputs = prepare_outputs(frameworks)
|
128
|
+
phase.setup_with_frameworks(prepared_inputs, prepared_outputs) unless target.sdk == 'macosx'
|
121
129
|
|
122
130
|
# footer
|
123
131
|
say "\n"
|
data/lib/cint/version.rb
CHANGED
data/lib/xcodeproj.rb
CHANGED
@@ -28,10 +28,11 @@ module Xcodeproj
|
|
28
28
|
|
29
29
|
# Extends Build Phase
|
30
30
|
class PBXShellScriptBuildPhase
|
31
|
-
def setup_with_frameworks(
|
31
|
+
def setup_with_frameworks(input_paths, output_paths)
|
32
32
|
self.shell_script = '/usr/local/bin/carthage copy-frameworks'
|
33
33
|
self.shell_path = '/bin/sh'
|
34
|
-
self.input_paths =
|
34
|
+
self.input_paths = input_paths
|
35
|
+
self.output_paths = output_paths
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Antonyuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.7.1
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Simplifies all routines with adding Frameworks built with Carthage into a
|