cocoapods-lazy 0.4.1 → 0.4.2

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
2
  SHA256:
3
- metadata.gz: d885199fad8a92772f27ac8cc68bb48e79635151cba7b20b794ae14013432c62
4
- data.tar.gz: 5d151c29890200f3551100f5ca2aef68ad9443927ee65962e8b7a322018f3bdb
3
+ metadata.gz: 7379aa38032ac50d1f1963b2b1978d8d4693195e7dc0af6b69724f47f8e98215
4
+ data.tar.gz: 930e38893f93f94c847dcb7f668d42bfce779ebabf5165c9dff6e906cf867937
5
5
  SHA512:
6
- metadata.gz: 70667829bdb9c73d040e439eae777ba900c55fbb03cfeb9f42a2e629d74ea2156a3a78e0b2dadf63d03b0c63e56edcf7d1cefd16666c456c3af05b31dcc1bd1d
7
- data.tar.gz: 95847d871d448916f97f8df4926e7bee75e739029754f27db496f16b8afa1b116bacc48afbc829bea04229e2a98f15279c89f6e4e88abcc245cbed9a4e83f037
6
+ metadata.gz: 71b36e259361f586bb6830020069405a6f399463f6871435f37f140beed9018df3bb138cfd70bf3b4895ccf665cf5b9a906d378a871caf33e0253c7ecdd80542
7
+ data.tar.gz: e3397ad6cba014ace9f368e03a5e2e676ca5a7a87cb842f850832f2ac050761ad2f21c6995644a4569a905577225b681b82143b6cc24b92f7503d74f059394bd
@@ -13,7 +13,7 @@ module Pod
13
13
 
14
14
  def login
15
15
  return @login unless @login.nil?
16
- Logger.important "Write login from #{@base_url}"
16
+ Pod::Lazy::Logger.important "Write login from #{@base_url}"
17
17
  @login = $stdin.gets
18
18
  return @login
19
19
  end
@@ -24,7 +24,7 @@ module Pod
24
24
 
25
25
  def password
26
26
  return @password unless @password.nil?
27
- Logger.important "Write password from #{@base_url}"
27
+ Pod::Lazy::Logger.important "Write password from #{@base_url}"
28
28
  @password = Shellwords.escape $stdin.gets.chomp
29
29
  return @password
30
30
  end
@@ -11,5 +11,3 @@ module Pod
11
11
  end
12
12
  end
13
13
  end
14
-
15
- Logger = Pod::Lazy::Logger
@@ -15,24 +15,24 @@ module Pod
15
15
  end
16
16
 
17
17
  def run
18
- Logger.info "Redirection to cocoapods-lazy"
18
+ Pod::Lazy::Logger.info "Redirection to cocoapods-lazy"
19
19
  lazy_config = load_credential()
20
20
  unless lazy_config.nil?
21
- Logger.info "cocoapods-lazy is enabled in Podfile"
22
- Logger.info "Lazy config:\n#{lazy_config}"
21
+ Pod::Lazy::Logger.info "cocoapods-lazy is enabled in Podfile"
22
+ Pod::Lazy::Logger.info "Lazy config:\n#{lazy_config}"
23
23
  remote_storage = Pod::Lazy::RemoteStorage.new(lazy_config)
24
24
  repository = Pod::Lazy::Repository.new(remote_storage)
25
25
  repository.fetch() if @should_fetch
26
- Logger.info "Run origin command"
26
+ Pod::Lazy::Logger.info "Run origin command"
27
27
  super
28
28
  if repository.should_store && @should_store
29
- Logger.info "Storing..."
29
+ Pod::Lazy::Logger.info "Storing..."
30
30
  repository.store()
31
31
  end
32
- Logger.info "Flow cocoapods-lazy if finished"
32
+ Pod::Lazy::Logger.info "Flow cocoapods-lazy if finished"
33
33
  else
34
- Logger.info "cocoapods-lazy is not enabled in Podfile"
35
- Logger.info "Run origin command"
34
+ Pod::Lazy::Logger.info "cocoapods-lazy is not enabled in Podfile"
35
+ Pod::Lazy::Logger.info "Run origin command"
36
36
  super
37
37
  end
38
38
  end
@@ -18,13 +18,13 @@ module Pod
18
18
  def store(name:)
19
19
  zip_name = "#{name}.zip"
20
20
  unless File.exist?(zip_name)
21
- Logger.info "Make zip: #{zip_name}"
21
+ Pod::Lazy::Logger.info "Make zip: #{zip_name}"
22
22
  `zip -9 -r -y #{zip_name} Pods`
23
23
  end
24
24
  url = @config.base_url + zip_name
25
- Logger.info "Storing to #{url}"
25
+ Pod::Lazy::Logger.info "Storing to #{url}"
26
26
  `curl --fail -u #{@config.login}:#{@config.password} --upload-file #{zip_name} #{url}`
27
- Logger.info "Remove #{zip_name}"
27
+ Pod::Lazy::Logger.info "Remove #{zip_name}"
28
28
  `rm -rf #{zip_name}`
29
29
  end
30
30
  end
@@ -12,17 +12,17 @@ module Pod
12
12
  def fetch
13
13
  @fetched_checksum = read_podfile_checksum()
14
14
  if @fetched_checksum.nil?
15
- Logger.info "Podfile.lock not found"
15
+ Pod::Lazy::Logger.info "Podfile.lock not found"
16
16
  @is_generated_pods = true
17
17
  elsif @fetched_checksum != read_manifest_checksum()
18
- Logger.info 'Checksum IS NOT EQUAL'
19
- Logger.info 'Drop Pods directory'
18
+ Pod::Lazy::Logger.info 'Checksum IS NOT EQUAL'
19
+ Pod::Lazy::Logger.info 'Drop Pods directory'
20
20
  `rm -rf Pods`
21
21
  file_name = add_xcode_version @fetched_checksum
22
22
  @repository.fetch(name: file_name)
23
23
  @is_generated_pods = !Dir.exist?('Pods')
24
24
  else
25
- Logger.info 'Checksum IS EQUAL'
25
+ Pod::Lazy::Logger.info 'Checksum IS EQUAL'
26
26
  @is_generated_pods = false
27
27
  end
28
28
  end
@@ -32,7 +32,7 @@ module Pod
32
32
  end
33
33
 
34
34
  def store
35
- Logger.info "Reason for store: #{store_reason || 'Not reason for store'}"
35
+ Pod::Lazy::Logger.info "Reason for store: #{store_reason || 'Not reason for store'}"
36
36
  @fetched_checksum = @fetched_checksum || read_podfile_checksum()
37
37
  file_name = add_xcode_version @fetched_checksum
38
38
  @repository.store(name: file_name)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsLazy
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.4.1
4
+ version: 0.4.2
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-11-22 00:00:00.000000000 Z
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods