cocoapods-prune-localizations 0.3.0 → 0.3.1

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: b55b113b9b8c4733b88d061a22c3eb2527ead263
4
- data.tar.gz: 35788ce4159961349c5fd02cbb98edc19edbfce4
3
+ metadata.gz: 856b0919eb50a1527b20a04874e5db5f4cfb6b07
4
+ data.tar.gz: 4e870a329525fbf2dc6445a5ee13b2a0e8dfc5f0
5
5
  SHA512:
6
- metadata.gz: c571fa37add233e8894eaca1d42795caff14d2a26f838942158aaf18a25f8ca04c6e27c6359cce94b688922519adb9adc59c925498c407578529ff38510eb7b1
7
- data.tar.gz: 16d546570dc78f2f2e443c75a1e3cd4c4d9ca04d0859c5c2b2089b871b7038bd170336d9261263faa54e51b4d05d5bb3e531a0d7a7a724b4a7d6c93970b8915f
6
+ metadata.gz: 6d73606234ad4a42abba82dd314487382deaa584a99325e135588f3440ea1a5b4371e09ddccb5215a590e91db57ec16798949faef8aeb19d71c74efa407f8056
7
+ data.tar.gz: 651b0b81aaae0b73e5afef5f659fce4f7e4abbdb6b679616d5ba6712850f05ef494f91d84c2d132f7007129385e8ec34510af92e360baabb710953879f0cf8f9
data/.bundle/config CHANGED
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  BUNDLE_PATH: .gems
3
- BUNDLE_DISABLE_SHARED_GEMS: '1'
3
+ BUNDLE_DISABLE_SHARED_GEMS: true
data/Gemfile CHANGED
@@ -4,7 +4,8 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  group :development do
7
- gem 'cocoapods'
7
+ gem 'activesupport', '~> 4'
8
+ gem 'cocoapods', '~> 1.1.0.rc'
8
9
  gem 'cocoapods-deintegrate'
9
10
  gem 'rspec', '~> 3.1.0'
10
11
  end
data/Gemfile.lock CHANGED
@@ -1,58 +1,60 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-prune-localizations (0.2.1)
4
+ cocoapods-prune-localizations (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activesupport (4.2.6)
9
+ activesupport (4.2.7.1)
10
10
  i18n (~> 0.7)
11
11
  json (~> 1.7, >= 1.7.7)
12
12
  minitest (~> 5.1)
13
13
  thread_safe (~> 0.3, >= 0.3.4)
14
14
  tzinfo (~> 1.1)
15
- claide (1.0.0)
16
- cocoapods (1.0.0)
17
- activesupport (>= 4.0.2)
18
- claide (>= 1.0.0, < 2.0)
19
- cocoapods-core (= 1.0.0)
20
- cocoapods-deintegrate (>= 1.0.0, < 2.0)
21
- cocoapods-downloader (>= 1.0.0, < 2.0)
15
+ claide (1.0.1)
16
+ cocoapods (1.1.0.rc.3)
17
+ activesupport (>= 4.0.2, < 5)
18
+ claide (>= 1.0.1, < 2.0)
19
+ cocoapods-core (= 1.1.0.rc.3)
20
+ cocoapods-deintegrate (>= 1.0.1, < 2.0)
21
+ cocoapods-downloader (>= 1.1.1, < 2.0)
22
22
  cocoapods-plugins (>= 1.0.0, < 2.0)
23
23
  cocoapods-search (>= 1.0.0, < 2.0)
24
24
  cocoapods-stats (>= 1.0.0, < 2.0)
25
- cocoapods-trunk (>= 1.0.0, < 2.0)
26
- cocoapods-try (>= 1.0.0, < 2.0)
25
+ cocoapods-trunk (= 1.1.0.beta.1)
26
+ cocoapods-try (>= 1.1.0, < 2.0)
27
27
  colored (~> 1.2)
28
28
  escape (~> 0.0.4)
29
- fourflusher (~> 0.3.0)
30
- molinillo (~> 0.4.5)
29
+ fourflusher (~> 2.0)
30
+ gh_inspector (~> 1.0)
31
+ molinillo (~> 0.5.1)
31
32
  nap (~> 1.0)
32
- xcodeproj (>= 1.0.0, < 2.0)
33
- cocoapods-core (1.0.0)
34
- activesupport (>= 4.0.2)
33
+ xcodeproj (>= 1.3.2, < 2.0)
34
+ cocoapods-core (1.1.0.rc.3)
35
+ activesupport (>= 4.0.2, < 5)
35
36
  fuzzy_match (~> 2.0.4)
36
37
  nap (~> 1.0)
37
- cocoapods-deintegrate (1.0.0)
38
- cocoapods-downloader (1.0.0)
38
+ cocoapods-deintegrate (1.0.1)
39
+ cocoapods-downloader (1.1.2)
39
40
  cocoapods-plugins (1.0.0)
40
41
  nap
41
42
  cocoapods-search (1.0.0)
42
43
  cocoapods-stats (1.0.0)
43
- cocoapods-trunk (1.0.0)
44
+ cocoapods-trunk (1.1.0.beta.1)
44
45
  nap (>= 0.8, < 2.0)
45
46
  netrc (= 0.7.8)
46
- cocoapods-try (1.0.0)
47
+ cocoapods-try (1.1.0)
47
48
  colored (1.2)
48
49
  diff-lcs (1.2.5)
49
50
  escape (0.0.4)
50
- fourflusher (0.3.0)
51
+ fourflusher (2.0.1)
51
52
  fuzzy_match (2.0.4)
53
+ gh_inspector (1.0.2)
52
54
  i18n (0.7.0)
53
55
  json (1.8.3)
54
- minitest (5.9.0)
55
- molinillo (0.4.5)
56
+ minitest (5.9.1)
57
+ molinillo (0.5.1)
56
58
  nap (1.1.0)
57
59
  netrc (0.7.8)
58
60
  rake (11.1.2)
@@ -71,21 +73,22 @@ GEM
71
73
  thread_safe (0.3.5)
72
74
  tzinfo (1.2.2)
73
75
  thread_safe (~> 0.1)
74
- xcodeproj (1.0.0)
76
+ xcodeproj (1.3.2)
75
77
  activesupport (>= 3)
76
- claide (>= 1.0.0, < 2.0)
78
+ claide (>= 1.0.1, < 2.0)
77
79
  colored (~> 1.2)
78
80
 
79
81
  PLATFORMS
80
82
  ruby
81
83
 
82
84
  DEPENDENCIES
85
+ activesupport (~> 4)
83
86
  bundler (~> 1.3)
84
- cocoapods
87
+ cocoapods (~> 1.1.0.rc)
85
88
  cocoapods-deintegrate
86
89
  cocoapods-prune-localizations!
87
90
  rake
88
91
  rspec (~> 3.1.0)
89
92
 
90
93
  BUNDLED WITH
91
- 1.10.6
94
+ 1.12.5
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPruneLocalizations
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/pruner.rb CHANGED
@@ -30,13 +30,20 @@ module CocoapodsPruneLocalizations
30
30
  podfile = context.podfile
31
31
  previous_block = podfile.instance_variable_get(:@post_install_callback)
32
32
 
33
- podfile.post_install do |installer|
34
-
33
+ new_callback = lambda do |installer|
35
34
  @pod_project = installer.pods_project
36
35
  @sandbox_root = installer.sandbox.root
37
36
  prune!
38
37
  previous_block.call(installer) if previous_block
39
38
  end
39
+
40
+ if previous_block
41
+ podfile.instance_variable_set(:@post_install_callback, new_callback)
42
+ else
43
+ podfile.post_install do |installer|
44
+ new_callback.call(installer)
45
+ end
46
+ end
40
47
  end
41
48
 
42
49
  def resources_scripts(group)
@@ -192,4 +199,4 @@ module CocoapodsPruneLocalizations
192
199
  tmp_dir if changed_bundle
193
200
  end
194
201
  end
195
- end
202
+ end
@@ -48,10 +48,15 @@ def resource_files(group)
48
48
  end
49
49
 
50
50
  describe 'Podfile integration' do
51
- before(:each) do
51
+
52
+ before(:all) do
53
+ @original_dir = Dir.pwd
52
54
  @test_dir = Dir.mktmpdir("prune-loc")
55
+ end
56
+
57
+ before(:each) do
53
58
  @sandbox = Pod::Sandbox.new File.join(@test_dir, "/Pods");
54
- FileUtils.cp_r 'spec/fixtures/Dummy Targets', @test_dir
59
+ FileUtils.cp_r File.join(@original_dir, 'spec/fixtures/Dummy Targets'), @test_dir
55
60
  end
56
61
 
57
62
  after(:each) do
@@ -150,4 +155,4 @@ describe 'Podfile integration' do
150
155
  end
151
156
  end
152
157
 
153
- end
158
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-prune-localizations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Torres
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.4.8
94
+ rubygems_version: 2.6.4
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Upon running pod install, this plugin will remove unused localizations by