subpod 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66f9cab3a164471b2377183d915eb01ca4ad2213
4
- data.tar.gz: 2d91ee0b265bebf1459b60bdda9e6b5ea80e8af7
3
+ metadata.gz: bced083caaf4ff5fe65a8a0e606876c825f2554f
4
+ data.tar.gz: 1835ed09f5a9779610f3b8fd6980d94c3ca903c5
5
5
  SHA512:
6
- metadata.gz: 54023de0ab0c780402f470a92f705c7c6eccbd164666ea6dcad8f9e831e6a8802bc88c165982907eb873da3e1147e211e5aac82a1d1f9c0fa552eb1391937839
7
- data.tar.gz: 8ef8c851d964442abe843a129d6e2d4aed99dde2b0e44055b98255e4828740829cffa3d8f4575294538d8dab9f2b01cdeabb3fc1e237827eecd0dc5fb2e75439
6
+ metadata.gz: a503512869bef9e803b9fe96b2813c730a6bd33a62d341803f9d1551d908f2682f6f9ec6ceedb06b96bb4301e17139dd6a57176e7a19e937fc8756d8f956f3d7
7
+ data.tar.gz: e551761a6093c76be2e2751a1f044b3cf6d736fc1390fc9f9829f662fdf24f8982004fbd0a2941a431bc8eecc712d347316bd9b98623856113e96119da590904
data/bin/subpod CHANGED
@@ -14,6 +14,10 @@ CLActive do
14
14
 
15
15
  option :version, '-v', '--version', 'Version of SubPod'
16
16
  action do |opt|
17
- puts SubPod::VERSION if version?
17
+ if version?
18
+ puts SubPod::VERSION
19
+ else
20
+ SubPod.run(:install)
21
+ end
18
22
  end
19
23
  end
@@ -3,7 +3,7 @@ module SubPod
3
3
  def integrate_user_project
4
4
  UI.section 'Integrating client project' do
5
5
  root = config.installation_root
6
- integrator = UserProjectIntegrator.new(podfile, sandbox, root, libraries)
6
+ integrator = UserProjectIntegrator.new(podfile, sandbox, root, aggregate_targets)
7
7
  integrator.integrate!
8
8
  end
9
9
  end
@@ -1,14 +1,17 @@
1
1
  module SubPod
2
2
  class TargetIntegrator < Pod::Installer::UserProjectIntegrator::TargetIntegrator
3
3
  def add_xcconfig_base_configuration
4
- xcconfig = pods_group.new_file(library.xcconfig_relative_path)
5
- targets.each do |target|
6
- check_overridden_build_settings(library.xcconfig, target)
7
- target.build_configurations.each do |config|
8
- config.base_configuration_reference = xcconfig
4
+ xcconfig = pods_group.files.select { |f|
5
+ f.path == target.xcconfig_relative_path
6
+ }.first || pods_group.new_file(target.xcconfig_relative_path)
7
+
8
+ native_targets.each do |native_target|
9
+ check_overridden_build_settings(target.xcconfig, native_target)
10
+ native_target.build_configurations.each do |config|
11
+ config.base_configuration_reference = xcconfig
12
+ end
13
+ end
9
14
  end
10
- end
11
- end
12
15
 
13
16
  def pods_group
14
17
  user_project['Pods'] || user_project.new_group('Pods')
@@ -7,8 +7,8 @@ module SubPod
7
7
  end
8
8
 
9
9
  def integrate_user_targets
10
- libraries_to_integrate.sort_by(&:name).each do |lib|
11
- TargetIntegrator.new(lib).integrate!
10
+ targets_to_integrate.sort_by(&:name).each do |target|
11
+ TargetIntegrator.new(target).integrate!
12
12
  end
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module SubPod
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subpod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tang Tianyong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-18 00:00:00.000000000 Z
11
+ date: 2013-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.21.0.rc1
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
- version: 0.18.0
26
+ version: 0.21.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: clactive
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ files:
52
52
  - lib/subpod/version.rb
53
53
  - lib/subpod.rb
54
54
  - bin/subpod
55
- homepage: http://tang3w.com
55
+ homepage: https://github.com/tang3w/SubPod
56
56
  licenses:
57
57
  - MIT
58
58
  metadata: {}