ci-cache 1.1.0 → 1.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,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 79c6f62e7140ce98a3a46c1152220de94933c108
4
- data.tar.gz: 3c5747e523e18f4e5b2c611b9e94adbde1771fca
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWQxODA0Y2Y2ZTQzNzYzMDY0NDIzZGE5OGZmNDEwYWI4ODRiOWY1Ng==
5
+ data.tar.gz: !binary |-
6
+ NDM4Y2FmMjlkZTY1YTkwMDk1ZjlhZmJjZDU0OTdiNDA4ODQ0NTRmNw==
5
7
  SHA512:
6
- metadata.gz: 5b743cdac3da092db121d537c2e84ff68470bc2054303f929729d248c3c6a87a6e8d27bd676c0c2e297d4f45ec85c6337a96d4e7c01c7f4e2d8da7e603305439
7
- data.tar.gz: 2da6f3d3b85076f74edcbddb78fa83e5fc4adfe1964882eef2df2961a68f9954330f2af68770f273e03aa5fbb764cf6a444483da8b57d1fb68dd56857dc50a12
8
+ metadata.gz: !binary |-
9
+ ODI2ZTA3OGU1OWU3MjFjYzMwOGUxY2RhNmZlNDUzYzk4YWE4NmM3NGE0YjRk
10
+ YWMxNjRjNjdmNThiNjZiMDIxZWMzYjIxMjBjNmNhNTUyOGE1MWNiY2JkMDM5
11
+ MDA4YTI4YWQwYzJiN2ZhNjAwODRjYjY2Yjc3Zjc4M2I4NGRlOTE=
12
+ data.tar.gz: !binary |-
13
+ NjhhZTk3NzVkNTk2ZGM1MTRhYTdkYzVhZWU5M2QzNzA1YmQ1ZDUwNzFlNWYx
14
+ MDJhN2UyYjdiZjM1OWEyZGE3NTEwNWNjNzIwMTkwNDEyNTZkNmY4YzlmOTI4
15
+ NmMzZWU5NDI0Njk4Y2M5YmYxYjQ0ODg4OTc4YTIyZTI4OTkyZmU=
data/.travis.yml CHANGED
@@ -1,14 +1,18 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
- - 2.0.0
5
- - jruby-19mode
6
- - rbx-19mode
4
+ - "2.0"
5
+ - "2.1"
6
+ - "2.2"
7
+ - jruby
8
+ - rbx-2
7
9
  deploy:
8
10
  provider: rubygems
9
11
  gem: ci-cache
10
12
  on:
13
+ ruby: "2.2"
11
14
  tags: true
12
15
  repo: johanneswuerbach/ci-cache
13
16
  api_key:
14
17
  secure: AMbQe7WSmP/41Fi9XCHlTF+qxlPhbTSu9/6r7FUPK3b5lFoegdiQCyFw1QdKHtBHW8Rcjb7MyDKehlnnUhNbO6jA5ioccfLCZsvc3mh3Ce5HO0xhJiN9sZ+7Odt5Xgj1OPrMPeyt3bV5J84MwUrrRhP2EOwrfSArJnWaFdAJ/dc=
18
+ sudo: false
data/README.md CHANGED
@@ -1,9 +1,35 @@
1
- # ci-cache [![Build Status](https://travis-ci.org/johanneswuerbach/ci-cache.png?branch=master)](https://travis-ci.org/johanneswuerbach/ci-cache)
1
+ # ci-cache [![Gem Version](https://badge.fury.io/rb/ci-cache.svg)](http://badge.fury.io/rb/ci-cache) [![Build Status](https://travis-ci.org/johanneswuerbach/ci-cache.svg?branch=master)](https://travis-ci.org/johanneswuerbach/ci-cache) [![Code Climate](https://codeclimate.com/github/johanneswuerbach/ci-cache.svg)](https://codeclimate.com/github/johanneswuerbach/ci-cache) [![Dependency Status](https://gemnasium.com/johanneswuerbach/ci-cache.svg)](https://gemnasium.com/johanneswuerbach/ci-cache)
2
+ Cache files and folders between continues integration builds for faster build execution. Usable with Travis CI and others.
2
3
 
3
- Cache files and folders between continues integration builds.
4
+ ### Usage
4
5
 
6
+ #### Configuration
7
+ The ci-cache uses environment variables to receive the AWS config.
8
+ ```bash
9
+ CI_CACHE_S3_BUCKET="cache-bucket"
10
+ CI_CACHE_S3_PREFIX="prefix-for-files/"
11
+ CI_CACHE_S3_KEY="aws-key"
12
+ CI_CACHE_S3_SECRET="aws-secret"
13
+ ```
14
+
15
+ #### Download cached file / folder
16
+ ```bash
17
+ ci-cache get --name cache-key --output-path .
18
+ ```
19
+
20
+ #### Upload cached file / folder
21
+ ```
22
+ ci-cache set --name cache-key --content cache-folder --hash-file version.lock
23
+ ```
24
+ The cached is only re-uploaded, if the `hash-file` has changed.
25
+
26
+ ### Examples (Travis CI)
27
+
28
+ You should encrypt your AWS credentials
29
+ ```
30
+ travis encrypt CI_CACHE_S3_KEY=AWS_KEY CI_CACHE_S3_SECRET=AWS_SECRET --add
31
+ ```
5
32
 
6
- ### Examples
7
33
 
8
34
  #### Bundler
9
35
 
@@ -16,12 +42,55 @@ rvm:
16
42
  env:
17
43
  global:
18
44
  - CI_CACHE_S3_BUCKET="cache-bucket"
45
+ - CI_CACHE_S3_PREFIX="$TRAVIS_REPO_SLUG/"
19
46
  - CI_CACHE_S3_KEY="cache-aws-key"
20
47
  - CI_CACHE_S3_SECRET="cache-aws-secret"
21
48
  before_install:
22
- - gem install ci-cache
49
+ - travis_retry gem install ci-cache --no-ri --no-rdoc
23
50
  - ci-cache get --name bundler-cache --output-path ~
24
51
  after_script:
25
52
  - bundle clean
26
53
  - ci-cache set --name bundler-cache --content ~/.bundle --hash-file Gemfile.lock
27
54
  ```
55
+
56
+ #### Node.js - NPM
57
+
58
+ ```yaml
59
+ language: node_js
60
+ node_js:
61
+ - '0.10'
62
+ env:
63
+ global:
64
+ - CI_CACHE_S3_BUCKET="cache-bucket"
65
+ - CI_CACHE_S3_PREFIX="$TRAVIS_REPO_SLUG/"
66
+ - CI_CACHE_S3_KEY="cache-aws-key"
67
+ - CI_CACHE_S3_SECRET="cache-aws-secret"
68
+ before_install:
69
+ - travis_retry gem install ci-cache --no-ri --no-rdoc
70
+ - ci-cache get --name node_modules --output-path .
71
+ - npm prune
72
+ after_script:
73
+ - ci-cache set --name node_modules --content node_modules --hash-file package.json
74
+ ```
75
+
76
+ #### Bower (path app/bower_components)
77
+
78
+ ```yaml
79
+ language: node_js
80
+ node_js:
81
+ - '0.10'
82
+ env:
83
+ global:
84
+ - CI_CACHE_S3_BUCKET="cache-bucket"
85
+ - CI_CACHE_S3_PREFIX="$TRAVIS_REPO_SLUG/"
86
+ - CI_CACHE_S3_KEY="cache-aws-key"
87
+ - CI_CACHE_S3_SECRET="cache-aws-secret"
88
+ before_install:
89
+ - travis_retry gem install ci-cache --no-ri --no-rdoc
90
+ - ci-cache get --name bower_components --output-path app
91
+ - travis_retry npm install -g bower
92
+ - bower prune
93
+ - travis_retry bower install
94
+ after_script:
95
+ - ci-cache set --name bower_components --content app/bower_components --hash-file bower.json
96
+ ```
data/ci-cache.gemspec CHANGED
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.require_path = 'lib'
17
17
  s.required_ruby_version = '>= 1.8.7'
18
18
 
19
- s.add_runtime_dependency 'aws-sdk'
19
+ s.add_runtime_dependency 'aws-sdk', '~> 1.64'
20
20
 
21
- s.add_development_dependency 'rspec'
21
+ s.add_development_dependency 'rspec', '~> 2.99'
22
22
  s.add_development_dependency 'rake'
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module CiCache
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Würbach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.64'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.64'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2.99'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '2.99'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: cache files in an ephemeral continuous integration environment
@@ -92,23 +92,18 @@ require_paths:
92
92
  - lib
93
93
  required_ruby_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ! '>='
96
96
  - !ruby/object:Gem::Version
97
97
  version: 1.8.7
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ! '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.1.3
105
+ rubygems_version: 2.4.5
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: ci cache tool
109
- test_files:
110
- - spec/cli_spec.rb
111
- - spec/get_spec.rb
112
- - spec/set_spec.rb
113
- - spec/spec_helper.rb
114
- - spec/storage_spec.rb
109
+ test_files: []