cocoapods-lazy 0.3.1 → 0.4.0

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
- SHA1:
3
- metadata.gz: 4095207def62a0b31cd6f694f414be7f9af39e14
4
- data.tar.gz: 76aeb7d7d01db1562d144d7a8a13418f7555eb98
2
+ SHA256:
3
+ metadata.gz: 314356a73a54b659060bacb62b7757ef91cdb990a7cab5ee829d6ea7bf30f93c
4
+ data.tar.gz: 80f5f4b201a06404fddfe2ec05855969b4fd99e442f05ce6cb0dbefc946f7087
5
5
  SHA512:
6
- metadata.gz: d7ab9d10355b09208de74526955187e89f33e92bdfebc6cfb6653b67627183d589f9d601bca58b68f635f39177031303cb4c4afd7e07bf8765178cc42790a160
7
- data.tar.gz: 606bf8fe70e6dcdeec61cb0b98e073cc6ed7dafe6cc7366b8761b30cff384bc15a89ae38a7602877284c0d63bbdb4f217083feaeb2386d8a7d00be5d61a8c299
6
+ metadata.gz: f651bb5fb512aa931f68cdb4b09b35e8f074464d8361112a8673dc95d69346142b1b236848ba6d6197b6c766ce2b2ee989b85254f262ba304f632492ae54d60a
7
+ data.tar.gz: 6edadf6c31878afc7af5ffb1a24ee17855db5a39b85b82f546d52c5054f28ef1ac862f250d85e6428342b16a11d5b460b6c34afa028efff0bfa7803bcc835ae9
@@ -18,7 +18,8 @@ module Pod
18
18
  Logger.info 'Checksum IS NOT EQUAL'
19
19
  Logger.info 'Drop Pods directory'
20
20
  `rm -rf Pods`
21
- @repository.fetch(name: @fetched_checksum)
21
+ file_name = add_xcode_version @fetched_checksum
22
+ @repository.fetch(name: file_name)
22
23
  @is_generated_pods = !Dir.exist?('Pods')
23
24
  else
24
25
  Logger.info 'Checksum IS EQUAL'
@@ -32,7 +33,8 @@ module Pod
32
33
 
33
34
  def store
34
35
  Logger.info "Reason for store: #{store_reason || 'Not reason for store'}"
35
- @repository.store(name: read_podfile_checksum())
36
+ file_name = add_xcode_version @fetched_checksum
37
+ @repository.store(name: file_name)
36
38
  end
37
39
 
38
40
  private
@@ -65,6 +67,15 @@ module Pod
65
67
  lockfile = Lockfile.from_file(path.realpath)
66
68
  lockfile.internal_data['PODFILE CHECKSUM']
67
69
  end
70
+
71
+ def add_xcode_version(name)
72
+ name + "_" + xcode_version
73
+ end
74
+
75
+ def xcode_version
76
+ info = `xcodebuild -version`
77
+ info.lines.first.sub!(" ", "_").chomp
78
+ end
68
79
  end
69
80
  end
70
81
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsLazy
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-lazy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Mylnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -85,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.5.2.3
88
+ rubygems_version: 3.0.6
90
89
  signing_key:
91
90
  specification_version: 4
92
91
  summary: Gem for store and share pods