carthage_cache 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: 238fcf9d5f7e84e39be472c133b2f9cdd5b8dce3
4
- data.tar.gz: e5ed89563a88889ce4a33e61381572a950be5c62
3
+ metadata.gz: 73f25b7f3faf2752a706604302019b44055064b6
4
+ data.tar.gz: 9f5f12a1ab98e03619bb977205573639d5aee282
5
5
  SHA512:
6
- metadata.gz: 9ce69ef9c53fdcf821e9854d3e8517e9cc8c2ea554049a94e3931058a3e081cb9940cdd36c61734fb49ea2c2a19ce7b4e4aefa6a688954b8239057a37ae17883
7
- data.tar.gz: acaf5511fd246746bc2fb84f7782cc43a073ed1592fb5880c181dbbc865c3f431915d161ad1178691204d7e1bffc7641f60e30ef683ccc30b6d57b378510a96f
6
+ metadata.gz: 9461791d5b6d4e6ba87e2426fb36db02697d8288bc3b84776a2155e8a71b6550e1761cd5d9df0f891fdc69a991065cd304ac18cbfedc5d5afec7549b3776dfcf
7
+ data.tar.gz: a5286795ede05c4d3a694350c7420d3405cd778a5aaa2f84e7f1ee7d9ec9ba938ecc0b4ad90bc220772df30373131d00a007990686b54755df1dec4bd9ee6256
data/README.md CHANGED
@@ -10,7 +10,7 @@ Most libraries don't provide pre-compiled binaries, `.framework` files, in their
10
10
 
11
11
  When you add slow building environments like Travis CI to the mix, a project bootstrap could take around 25 minutes just to build all your dependencies. Which is a lot for every push or pull request. You want your build and test to run really fast.
12
12
 
13
- CarthageCache generate a hash key based on the content of your `Cartfile.resolved` and checks if there is a cache archive (a zip file of your `Carthage/Build` directory) associated to that hash. If there is one it will download it and install it in your project avoiding the need to run `carthage bootstrap`.
13
+ CarthageCache generates a hash key based on the content of your `Cartfile.resolved` and checks if there is a cache archive (a zip file of your `Carthage/Build` directory) associated to that hash. If there is one it will download it and install it in your project avoiding the need to run `carthage bootstrap`.
14
14
 
15
15
  ## Installation
16
16
 
@@ -28,6 +28,28 @@ Or install it yourself as:
28
28
 
29
29
  $ gem install carthage_cache
30
30
 
31
+ ## Setup
32
+
33
+ ### AWS credentials
34
+
35
+ First of all you need to configure your AWS credentials. You can do this by a `.carthage_cache.yml` file. CarthageCache will try to find this file in the current working directory. It is recommended to generate this file in each project you want to use CarthageCache.
36
+
37
+ To generate a `.carthage_cache.yml` you just need to run
38
+
39
+ ```
40
+ carthage_cache config
41
+ ```
42
+
43
+ You can also set your credentials using the following environmental variables
44
+
45
+ * `AWS_REGION`
46
+ * `AWS_ACCESS_KEY_ID`
47
+ * `AWS_SECRET_ACCESS_KEY`
48
+
49
+ ### AWS S3 bucket
50
+
51
+ CarthageCache will assume there is a bucket named `carthage-cache`. You can change the bucket to be used by using the option `-b` or `--bucket-name`.
52
+
31
53
  ## Usage
32
54
 
33
55
  If you want to bootstrap a project from cache and if there is none then fallback to Carthage.
@@ -48,6 +70,28 @@ If you want to check whether a cache exists for the current `Carfile.resolved`
48
70
  carthage_cache exist
49
71
  ```
50
72
 
73
+ For more information run the help command
74
+
75
+ ```
76
+ carthage_cache help
77
+ ```
78
+
79
+ ### Project's root directory
80
+
81
+ The `carthage_cache` command assumes that the project's root directory is the current working directory and that the `Cartfile.resolved` file is located in the project's root directory. All `carthage_cache` accept an optional argument to set the project's root directory. For example
82
+
83
+ ```
84
+ carthage_cache install
85
+ ```
86
+ Will try to read the `Cartfile.resolved` file from the current working directory and will install the cache archive in `./Carthage/Build`.
87
+
88
+ ```
89
+ carthage_cache install PATH/TO/MY/PROJECT
90
+ ```
91
+ Will try to read the `PATH/TO/MY/PROJECT/Cartfile.resolved` file from the current working directory and will install the cache archive in `PATH/TO/MY/PROJECT/Carthage/Build`.
92
+
93
+
94
+
51
95
  ## Development
52
96
 
53
97
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -34,7 +34,7 @@ module CarthageCache
34
34
  end
35
35
 
36
36
  def install_archive
37
- if archive_exist
37
+ if archive_exist?
38
38
  archive_installer.install
39
39
  else
40
40
  terminal.puts "There is no cached archive for the current Cartfile.resolved file."
@@ -1,3 +1,3 @@
1
1
  module CarthageCache
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carthage_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guido Marucci Blas