vagrant-cachier 1.0.0 → 1.1.0
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 +4 -4
- data/CHANGELOG.md +15 -2
- data/Gemfile.lock +7 -7
- data/docs/buckets/bower.md +13 -0
- data/docs/template.html +1 -0
- data/lib/vagrant-cachier/bucket.rb +1 -0
- data/lib/vagrant-cachier/bucket/bower.rb +21 -0
- data/lib/vagrant-cachier/cap/linux/bower_path.rb +20 -0
- data/lib/vagrant-cachier/cap/linux/composer_path.rb +4 -1
- data/lib/vagrant-cachier/capabilities.rb +5 -0
- data/lib/vagrant-cachier/version.rb +1 -1
- data/vagrant-cachier.gemspec +0 -12
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 128c2d9a31cfd5c225379939860bbde167859725
|
4
|
+
data.tar.gz: e91ef742421e41a52a8ad6e5dfad8e725b96fbe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f74a3a07f0846be9980cef819a1fb128a32301536f6625860f9cfc5016324115a0a4aa110cf264da99cb04deecb56171ce328e3adb974ea2afa5cd86e75819a
|
7
|
+
data.tar.gz: 1eb97fd445b5981a67b6bad2f4675b4d18f59f6ba823576fbd73f5a1acd1fb8be06d18eb163e59d3a8d00af3d97a2d1bada2027e38b04a134015e770e7fd58a3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## [1.1.0](https://github.com/fgrehm/vagrant-cachier/compare/v1.0.0...v1.1.0) (Oct 15, 2014)
|
2
|
+
|
3
|
+
FEATURES:
|
4
|
+
|
5
|
+
- [Bower bucket](http://fgrehm.viewdocs.io/vagrant-cachier/buckets/bower) [[GH-125]]
|
6
|
+
|
7
|
+
[GH-125]: https://github.com/fgrehm/vagrant-cachier/pull/125
|
8
|
+
|
9
|
+
IMPROVEMENTS:
|
10
|
+
|
11
|
+
- Resolve $HOME even if VM spits bogus new lines [[GH-122]] / [[GH-124]]
|
12
|
+
|
13
|
+
[GH-122]: https://github.com/fgrehm/vagrant-cachier/issues/122
|
14
|
+
[GH-124]: https://github.com/fgrehm/vagrant-cachier/pull/124
|
15
|
+
|
1
16
|
## [1.0.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.9.0...v1.0.0) (Sep 22, 2014)
|
2
17
|
|
3
18
|
Public API is considered stable.
|
@@ -5,8 +20,6 @@ Public API is considered stable.
|
|
5
20
|
|
6
21
|
## [0.9.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.8.0...v0.9.0) (Aug 9, 2014)
|
7
22
|
|
8
|
-
**This is considered a release candidate for a 1.0 that will be cut within ~2 weeks if no major issues are reported**
|
9
|
-
|
10
23
|
FEATURES:
|
11
24
|
|
12
25
|
- Suport for caching packages for Docker containers that doesn't have a base box specified [[GH-116]]
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/fgrehm/vagrant-lxc.git
|
3
|
-
revision:
|
3
|
+
revision: 622366bd64e570478fad56908d2869a7dc2f6c3a
|
4
4
|
specs:
|
5
|
-
vagrant-lxc (1.0.
|
5
|
+
vagrant-lxc (1.0.1)
|
6
6
|
|
7
7
|
GIT
|
8
8
|
remote: git://github.com/fgrehm/vagrant-pristine.git
|
@@ -33,7 +33,7 @@ GIT
|
|
33
33
|
PATH
|
34
34
|
remote: .
|
35
35
|
specs:
|
36
|
-
vagrant-cachier (1.
|
36
|
+
vagrant-cachier (1.1.0)
|
37
37
|
|
38
38
|
GEM
|
39
39
|
remote: https://rubygems.org/
|
@@ -44,13 +44,13 @@ GEM
|
|
44
44
|
builder (3.2.2)
|
45
45
|
celluloid (0.16.0)
|
46
46
|
timers (~> 4.0.0)
|
47
|
-
childprocess (0.5.
|
47
|
+
childprocess (0.5.5)
|
48
48
|
ffi (~> 1.0, >= 1.0.11)
|
49
49
|
erubis (2.7.0)
|
50
|
-
ffi (1.9.
|
50
|
+
ffi (1.9.6)
|
51
51
|
gssapi (1.0.3)
|
52
52
|
ffi (>= 1.0.1)
|
53
|
-
gyoku (1.2.
|
53
|
+
gyoku (1.2.2)
|
54
54
|
builder (>= 2.1.2)
|
55
55
|
hashicorp-checkpoint (0.1.4)
|
56
56
|
hitimes (1.2.2)
|
@@ -58,7 +58,7 @@ GEM
|
|
58
58
|
httpi (0.9.7)
|
59
59
|
rack
|
60
60
|
i18n (0.6.11)
|
61
|
-
listen (2.7.
|
61
|
+
listen (2.7.11)
|
62
62
|
celluloid (>= 0.15.2)
|
63
63
|
rb-fsevent (>= 0.9.3)
|
64
64
|
rb-inotify (>= 0.9)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# [Bower](http://bower.io/)
|
2
|
+
|
3
|
+
Compatible with probably any type of linux guest distro, will cache guests'
|
4
|
+
`$HOME/.cache/bower` if bower is detected.
|
5
|
+
|
6
|
+
To manually enable it:
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
Vagrant.configure("2") do |config|
|
10
|
+
config.vm.box = 'some-box-with-bower-installed'
|
11
|
+
config.cache.enable :bower
|
12
|
+
end
|
13
|
+
```
|
data/docs/template.html
CHANGED
@@ -88,6 +88,7 @@
|
|
88
88
|
<li><a tabindex="-1" href="buckets/apt-cacher">apt-cacher</a></li>
|
89
89
|
<li><a tabindex="-1" href="buckets/chef">Chef</a></li>
|
90
90
|
<li><a tabindex="-1" href="buckets/composer">Composer</a></li>
|
91
|
+
<li><a tabindex="-1" href="buckets/bower">Bower</a></li>
|
91
92
|
<li><a tabindex="-1" href="buckets/pacman">Pacman</a></li>
|
92
93
|
<li><a tabindex="-1" href="buckets/npm">npm</a></li>
|
93
94
|
<li><a tabindex="-1" href="buckets/rubygems">RubyGems</a></li>
|
@@ -96,6 +96,7 @@ require_relative "bucket/rvm"
|
|
96
96
|
require_relative "bucket/apt_cacher"
|
97
97
|
require_relative "bucket/apt_lists"
|
98
98
|
require_relative "bucket/composer"
|
99
|
+
require_relative "bucket/bower"
|
99
100
|
require_relative "bucket/npm"
|
100
101
|
require_relative "bucket/zypper"
|
101
102
|
require_relative "bucket/generic"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module Cachier
|
3
|
+
class Bucket
|
4
|
+
class Bower < Bucket
|
5
|
+
def self.capability
|
6
|
+
:bower_path
|
7
|
+
end
|
8
|
+
|
9
|
+
def install
|
10
|
+
if guest.capability?(:bower_path)
|
11
|
+
if bower_path = guest.capability(:bower_path)
|
12
|
+
user_symlink(bower_path)
|
13
|
+
end
|
14
|
+
else
|
15
|
+
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Bower')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module Cachier
|
3
|
+
module Cap
|
4
|
+
module Linux
|
5
|
+
module BowerPath
|
6
|
+
def self.bower_path(machine)
|
7
|
+
bower_path = nil
|
8
|
+
machine.communicate.tap do |comm|
|
9
|
+
return unless comm.test('which bower')
|
10
|
+
comm.execute 'echo $HOME' do |buffer, output|
|
11
|
+
bower_path = output.chomp if buffer == :stdout
|
12
|
+
end
|
13
|
+
end
|
14
|
+
return "#{bower_path}/.cache/bower"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -7,8 +7,11 @@ module VagrantPlugins
|
|
7
7
|
composer_path = nil
|
8
8
|
machine.communicate.tap do |comm|
|
9
9
|
return unless comm.test('which php')
|
10
|
+
# on some VMs an extra new line seems to come out, so we loop over
|
11
|
+
# the output just in case
|
12
|
+
composer_path = ''
|
10
13
|
comm.execute 'echo $HOME' do |buffer, output|
|
11
|
-
composer_path
|
14
|
+
composer_path += output.chomp if buffer == :stdout
|
12
15
|
end
|
13
16
|
end
|
14
17
|
return "#{composer_path}/.composer/cache"
|
@@ -16,6 +16,11 @@ module VagrantPlugins
|
|
16
16
|
Cap::Linux::ComposerPath
|
17
17
|
end
|
18
18
|
|
19
|
+
guest_capability 'linux', 'bower_path' do
|
20
|
+
require_relative 'cap/linux/bower_path'
|
21
|
+
Cap::Linux::BowerPath
|
22
|
+
end
|
23
|
+
|
19
24
|
guest_capability 'linux', 'chef_file_cache_path' do
|
20
25
|
require_relative 'cap/linux/chef_file_cache_path'
|
21
26
|
Cap::Linux::ChefFileCachePath
|
data/vagrant-cachier.gemspec
CHANGED
@@ -17,16 +17,4 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.post_install_message = %Q{
|
22
|
-
Thanks for installing vagrant-cachier #{VagrantPlugins::Cachier::VERSION}!
|
23
|
-
|
24
|
-
If you are new to vagrant-cachier just follow along with the docs available
|
25
|
-
at http://fgrehm.viewdocs.io/vagrant-cachier.
|
26
|
-
|
27
|
-
If you are upgrading from a previous version, please note that plugin has gone
|
28
|
-
through many backwards incompatible changes recently. Please check out
|
29
|
-
https://github.com/fgrehm/vagrant-cachier/blob/master/CHANGELOG.md
|
30
|
-
before continuing and caching all the things :)
|
31
|
-
}
|
32
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-cachier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Rehm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Caffeine reducer
|
14
14
|
email:
|
@@ -17,7 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
-
|
20
|
+
- .gitignore
|
21
21
|
- CHANGELOG.md
|
22
22
|
- Gemfile
|
23
23
|
- Gemfile.lock
|
@@ -32,6 +32,7 @@ files:
|
|
32
32
|
- docs/buckets/apt-cacher.md
|
33
33
|
- docs/buckets/apt-lists.md
|
34
34
|
- docs/buckets/apt.md
|
35
|
+
- docs/buckets/bower.md
|
35
36
|
- docs/buckets/chef.md
|
36
37
|
- docs/buckets/composer.md
|
37
38
|
- docs/buckets/generic.md
|
@@ -54,6 +55,7 @@ files:
|
|
54
55
|
- lib/vagrant-cachier/bucket/apt.rb
|
55
56
|
- lib/vagrant-cachier/bucket/apt_cacher.rb
|
56
57
|
- lib/vagrant-cachier/bucket/apt_lists.rb
|
58
|
+
- lib/vagrant-cachier/bucket/bower.rb
|
57
59
|
- lib/vagrant-cachier/bucket/chef.rb
|
58
60
|
- lib/vagrant-cachier/bucket/composer.rb
|
59
61
|
- lib/vagrant-cachier/bucket/gem.rb
|
@@ -67,6 +69,7 @@ files:
|
|
67
69
|
- lib/vagrant-cachier/cap/debian/apt_cache_dir.rb
|
68
70
|
- lib/vagrant-cachier/cap/debian/apt_cacher_dir.rb
|
69
71
|
- lib/vagrant-cachier/cap/debian/apt_lists_dir.rb
|
72
|
+
- lib/vagrant-cachier/cap/linux/bower_path.rb
|
70
73
|
- lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb
|
71
74
|
- lib/vagrant-cachier/cap/linux/composer_path.rb
|
72
75
|
- lib/vagrant-cachier/cap/linux/gemdir.rb
|
@@ -91,27 +94,23 @@ homepage: https://github.com/fgrehm/vagrant-cachier
|
|
91
94
|
licenses:
|
92
95
|
- MIT
|
93
96
|
metadata: {}
|
94
|
-
post_install_message:
|
95
|
-
are new to vagrant-cachier just follow along with the docs available\n at http://fgrehm.viewdocs.io/vagrant-cachier.\n\n
|
96
|
-
\ If you are upgrading from a previous version, please note that plugin has gone\n
|
97
|
-
\ through many backwards incompatible changes recently. Please check out\n https://github.com/fgrehm/vagrant-cachier/blob/master/CHANGELOG.md\n
|
98
|
-
\ before continuing and caching all the things :)\n "
|
97
|
+
post_install_message:
|
99
98
|
rdoc_options: []
|
100
99
|
require_paths:
|
101
100
|
- lib
|
102
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
102
|
requirements:
|
104
|
-
- -
|
103
|
+
- - '>='
|
105
104
|
- !ruby/object:Gem::Version
|
106
105
|
version: '0'
|
107
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
107
|
requirements:
|
109
|
-
- -
|
108
|
+
- - '>='
|
110
109
|
- !ruby/object:Gem::Version
|
111
110
|
version: '0'
|
112
111
|
requirements: []
|
113
112
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.0.14
|
115
114
|
signing_key:
|
116
115
|
specification_version: 4
|
117
116
|
summary: Caffeine reducer
|