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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 236e1de8c6a321a81375b74ec363adc9b1d286fb
4
- data.tar.gz: 2d2a38dfa389a863bfb2f2b1f0e2e2ed1345031a
2
+ SHA256:
3
+ metadata.gz: 54ea5ee92cb9903a4f26197b00582d9ff6145b7a549efdd7e56041b3f1795d61
4
+ data.tar.gz: ee696712694fa804445ba4b890dd67f4045c46390627526fc915a115c4fed6af
5
5
  SHA512:
6
- metadata.gz: 8a1c296f5005f57f41658134d5accd2467bd1d69545adbb7716a00ff7b2f21bca9bba63f9e06696c3006fb764a253fccd78066e92584f989e82dabb6e3e60efb
7
- data.tar.gz: df3a2b328865dee3c5bc6738d3f915bf87b32b90dfdee74af556141c06a75fffd005665755976f6023bb843611ac02e927e0db19bfd6c381210b6f9c86b78343
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, 'integrator'
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 prepare_frameworks(frameworks)
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
- prepared_frameworks = prepare_frameworks(frameworks)
120
- phase.setup_with_frameworks(prepared_frameworks) unless target.sdk == 'macosx'
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
@@ -1,3 +1,3 @@
1
1
  module Cint
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
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(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 = frameworks
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.7
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-09-28 00:00:00.000000000 Z
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.6.10
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