cocoapods-alexandria 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 78e151c7ffabfa1fbd96664cb624d48be0f71951cfaed1f9fec9e100cc89cf1d
4
- data.tar.gz: 8d587ba944d86a928421700b9a46f4aabebd1282ea44db6fc8bdc41628dd59df
3
+ metadata.gz: 517ace8b579f051031cfc0ac5fedb40928e7e0fb355cdc4cdef496fcb66d2a33
4
+ data.tar.gz: 06154bcf0cabd6a81496f298e860e1f41213dfb6a59209ac7c8e51c1a47d2d7f
5
5
  SHA512:
6
- metadata.gz: c6dc83e067aabe9c0e890f1ad579e7abcd546c234fe2dbd692e9614a238f38809181ea47d892f65e567f6cbdaf50b2eba9e93feb61749d7ad02bb83d29c3af76
7
- data.tar.gz: e035c88b38adbb67c12c42b753cdf7de4670842d342f26c7eb87e405a085ff54e8c849b35b65f469aac347fb02003610cec93f3234d28fff9a8990544e72e559
6
+ metadata.gz: 755d5f29b4ee6e8c98fdee75e5cb71835a7c9a11f57e5f6f4cce63422e32b050a1b65bf86dac7021bfaa24cbfbcd69c482aa91ce47b7304b961e4575ace4daeb
7
+ data.tar.gz: 03d8fe36a2e6053da601ce2b329a25325591cd2403c236ce1757dc5d2c56de4b18fa617d3c507ad132a99cfe1ddc2e27160ddfa2fe51ac6930ddc7ee1995661a
@@ -8,17 +8,40 @@ module PodAlexandria
8
8
  end
9
9
 
10
10
  def run
11
- Pod::UI.puts "Cocoapods Alexandria running in local mode."
11
+ Pod::UI.puts 'Cocoapods Alexandria running in local mode.'
12
12
 
13
- Pod::UI.title "Generating project using XcodeGen"
13
+ if should_predownload_dep
14
+ Pod::UI.title 'Pre-downloading dependency for XcodeGen'
15
+ predownload_dep
16
+ end
17
+
18
+ Pod::UI.title 'Generating project using XcodeGen'
14
19
  XcodeGen::cleanupRome
15
20
  XcodeGen::clearDependencies(options.xcodegen_dependencies_file)
16
21
  XcodeGen::generate
17
22
 
18
- Pod::UI.title "Preparing environment..."
23
+ Pod::UI.title 'Preparing environment...'
19
24
  podfile.prepare_for_xcodegen
20
25
 
21
- Pod::UI.title "Continuing with normal CocoaPods"
26
+ Pod::UI.title 'Continuing with normal CocoaPods'
27
+ end
28
+
29
+ private
30
+
31
+ def should_predownload_dep
32
+ File.readlines('project.yml').grep(/Pods\/AppwiseCore\/XcodeGen/).any? &&
33
+ !File.directory?('Pods/AppwiseCore/XcodeGen')
34
+ end
35
+
36
+ def predownload_dep
37
+ system(
38
+ 'rm -rf Pods/AppwiseCore && '\
39
+ 'mkdir -p Pods && '\
40
+ 'rm -f /tmp/ac.zip && '\
41
+ 'curl -L "https://github.com/appwise-labs/AppwiseCore/archive/master.zip" > /tmp/ac.zip && '\
42
+ 'unzip -q -d Pods /tmp/ac.zip && '\
43
+ 'mv Pods/AppwiseCore-master Pods/AppwiseCore'
44
+ )
22
45
  end
23
46
  end
24
47
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAlexandria
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-alexandria
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jennes