cocoapods-downloader 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.
Potentially problematic release.
This version of cocoapods-downloader might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.markdown +3 -2
- data/lib/cocoapods-downloader/api.rb +9 -9
- data/lib/cocoapods-downloader/base.rb +2 -2
- data/lib/cocoapods-downloader/gem_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d377a6d06e0bfbd7d45bf3db915a0158b2d6a18
|
4
|
+
data.tar.gz: 33ce72c4fff0d49e5f8b7d356c7ae67b35862b07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ece45c163428cac9a408830c76e18d36c41708b7b94922b21a007efd7dfdcb01f2d8cedbd336c1a66d48b7bdd605d1a9aa7d322610a749027e5d74b077c9e1a
|
7
|
+
data.tar.gz: cf877d611978080d7c7794d9a042a2925c1f3e1681c4cf9742668b79f8c1537ee3279443a0d17f1b9bb68717a5afb84351431e7b992a3a01f38f77135121f024
|
data/README.markdown
CHANGED
@@ -3,17 +3,18 @@
|
|
3
3
|
A small library for downloading files from remotes in a folder.
|
4
4
|
|
5
5
|
[](https://travis-ci.org/CocoaPods/cocoapods-downloader)
|
6
|
+
[](https://coveralls.io/r/CocoaPods/cocoapods-downloader)
|
6
7
|
|
7
8
|
## Install
|
8
9
|
|
9
10
|
```
|
10
|
-
$ [sudo] gem install
|
11
|
+
$ [sudo] gem install cocoapods-downloader
|
11
12
|
```
|
12
13
|
|
13
14
|
## Usage
|
14
15
|
|
15
16
|
```ruby
|
16
|
-
require 'cocoapods-
|
17
|
+
require 'cocoapods-downloader'
|
17
18
|
|
18
19
|
target_path = './Downloads/MyDownload'
|
19
20
|
options = { :git => 'example.com' }
|
@@ -7,7 +7,7 @@ module Pod
|
|
7
7
|
module API
|
8
8
|
|
9
9
|
# Executes
|
10
|
-
# @return [String] the
|
10
|
+
# @return [String] the output of the command.
|
11
11
|
#
|
12
12
|
def execute_command(executable, command, raise_on_failure = false)
|
13
13
|
output = `\n#{executable} #{command} 2>&1`
|
@@ -16,7 +16,7 @@ module Pod
|
|
16
16
|
output
|
17
17
|
end
|
18
18
|
|
19
|
-
#
|
19
|
+
# Checks if the just executed command completed successfully.
|
20
20
|
#
|
21
21
|
# @raise If the command failed.
|
22
22
|
#
|
@@ -28,30 +28,30 @@ module Pod
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
# Indicates that an action will be
|
31
|
+
# Indicates that an action will be performed. The action is passed as a
|
32
32
|
# block.
|
33
33
|
#
|
34
34
|
# @param [String] message
|
35
35
|
# The message associated with the action.
|
36
36
|
#
|
37
|
-
# @yield The action, this block is always
|
37
|
+
# @yield The action, this block is always executed.
|
38
38
|
#
|
39
|
-
# @
|
39
|
+
# @return [void]
|
40
40
|
#
|
41
41
|
def ui_action(message)
|
42
42
|
puts message
|
43
43
|
yield
|
44
44
|
end
|
45
45
|
|
46
|
-
# Indicates that a minor action will be
|
46
|
+
# Indicates that a minor action will be performed. The action is passed as
|
47
47
|
# a block.
|
48
48
|
#
|
49
49
|
# @param [String] message
|
50
50
|
# The message associated with the action.
|
51
51
|
#
|
52
|
-
# @yield The action, this block is always
|
52
|
+
# @yield The action, this block is always executed.
|
53
53
|
#
|
54
|
-
# @
|
54
|
+
# @return [void]
|
55
55
|
#
|
56
56
|
def ui_sub_action(message)
|
57
57
|
puts message
|
@@ -63,7 +63,7 @@ module Pod
|
|
63
63
|
# @param [String] message
|
64
64
|
# The message associated with the action.
|
65
65
|
#
|
66
|
-
# @
|
66
|
+
# @return [void]
|
67
67
|
#
|
68
68
|
def ui_message(message)
|
69
69
|
puts message
|
@@ -193,8 +193,8 @@ module Pod
|
|
193
193
|
|
194
194
|
private
|
195
195
|
|
196
|
-
# Defines two methods for an executable, based on its name. The bag
|
197
|
-
# raises if the executable terminates with a non-zero exit code.
|
196
|
+
# Defines two methods for an executable, based on its name. The bag
|
197
|
+
# version raises if the executable terminates with a non-zero exit code.
|
198
198
|
#
|
199
199
|
# For example
|
200
200
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-downloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
52
|
rubyforge_project:
|
53
|
-
rubygems_version: 2.0.
|
53
|
+
rubygems_version: 2.0.3
|
54
54
|
signing_key:
|
55
55
|
specification_version: 3
|
56
56
|
summary: A small library for downloading files from remotes in a folder.
|