cocoapods-lazy 0.1.0 → 0.1.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: d87ba143103b95aefc36a1b32a72b940caaab827
4
- data.tar.gz: 6727705de861acbd677e6871faae26301e176f2f
3
+ metadata.gz: 8abc92d6d0e0f85cb93e59c964c2225ff7db7aa0
4
+ data.tar.gz: 4ae3d3b5115d4ff98f91a50587f86b762ed17fc4
5
5
  SHA512:
6
- metadata.gz: 81be5ca2843d006332947e9e4617faf132fe76830c3c29c05f244770b1234e67cc47e94b9426dc798a160a26b4f83c09d312254edcf1aa2fbea20b352dc5cf99
7
- data.tar.gz: 867dce4e9d8b32dafc4e52005df326ded1b3417b3f37f292377d25e77b24559b117980e79588e9f8c84a9a285e75ea269e5122156cf5fdcc7e9e456a35112ab2
6
+ metadata.gz: 1de5992ec3e8726514c1f15c9c28c8f2a828fe87dc3600d0ca8ea9adfcc5853e32bd3bba62c36cd56f322d3dd5530037888ca8c7f843706d726760ca81123ac6
7
+ data.tar.gz: 23c39fc6db6c000cef8f6bac6624664aed918e842b735683143164dd184ae38727f04f9911393ee85287ad064cfda4d6723b1a1f775150c82a80159b2a63a1d8
@@ -1,10 +1,11 @@
1
1
  require 'dotenv'
2
+ require 'shellwords'
2
3
 
3
4
  class Repository
4
5
  def initialize(file)
5
- Dotenv.load("#{file}")
6
- @user = ENV['STORE_USER']
7
- @password = ENV['STORE_PASSWORD']
6
+ Dotenv.load(file)
7
+ @user = Shellwords.escape ENV['STORE_USER']
8
+ @password = Shellwords.escape ENV['STORE_PASSWORD']
8
9
  @base_url = ENV['BASE_URL']
9
10
  end
10
11
 
@@ -18,9 +19,11 @@ class Repository
18
19
 
19
20
  def upload(name:)
20
21
  zip_name = "#{name}.zip"
22
+ unless File.exist?(zip_name)
23
+ puts "Make zip: #{zip_name}"
24
+ `zip -9 -r -y #{zip_name} Pods`
25
+ end
21
26
  url = @base_url + zip_name
22
- puts "Make zip: #{zip_name}"
23
- `zip -9 -r -y #{zip_name} Pods`
24
27
  puts "Storing to #{url}"
25
28
  `curl --fail -v -u #{@user}:#{@password} --upload-file #{zip_name} #{url}`
26
29
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsLazy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.1.0
4
+ version: 0.1.1
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-06-30 00:00:00.000000000 Z
11
+ date: 2019-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv