vagrant-cachier 1.0.0 → 1.1.0

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: 762b3de1f1556c64fb0379988204f2d63cbddb7b
4
- data.tar.gz: 61b92c8d9f3277ace2e5ea2b4b4e9729c3739ec5
3
+ metadata.gz: 128c2d9a31cfd5c225379939860bbde167859725
4
+ data.tar.gz: e91ef742421e41a52a8ad6e5dfad8e725b96fbe2
5
5
  SHA512:
6
- metadata.gz: 81f63a6c0be0a0f8567b98bb49e53e97c4deddb031abf3ca3c8253b77e0f826382207d92d14d587a5e3bd62a9fb9b7fe23b753f9a92f7e01ae4768460c4903e5
7
- data.tar.gz: 2579f5d95b1ef82e532a73df48f3c35db6651081afde6b339d9db60d70c6aaa21ff48338089b814628c25245aaf50ba17b1a82dfa917d220df1d8c91cecb5245
6
+ metadata.gz: 1f74a3a07f0846be9980cef819a1fb128a32301536f6625860f9cfc5016324115a0a4aa110cf264da99cb04deecb56171ce328e3adb974ea2afa5cd86e75819a
7
+ data.tar.gz: 1eb97fd445b5981a67b6bad2f4675b4d18f59f6ba823576fbd73f5a1acd1fb8be06d18eb163e59d3a8d00af3d97a2d1bada2027e38b04a134015e770e7fd58a3
@@ -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]]
@@ -1,8 +1,8 @@
1
1
  GIT
2
2
  remote: git://github.com/fgrehm/vagrant-lxc.git
3
- revision: 3f7c7ecabf887fa5580bf8d5464440ec8925ca5f
3
+ revision: 622366bd64e570478fad56908d2869a7dc2f6c3a
4
4
  specs:
5
- vagrant-lxc (1.0.0.alpha.3)
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.0.0)
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.3)
47
+ childprocess (0.5.5)
48
48
  ffi (~> 1.0, >= 1.0.11)
49
49
  erubis (2.7.0)
50
- ffi (1.9.3)
50
+ ffi (1.9.6)
51
51
  gssapi (1.0.3)
52
52
  ffi (>= 1.0.1)
53
- gyoku (1.2.1)
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.9)
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
+ ```
@@ -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 = output.chomp if buffer == :stdout
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Cachier
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -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.0.0
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-09-23 00:00:00.000000000 Z
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
- - ".gitignore"
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: "\n Thanks for installing vagrant-cachier 1.0.0!\n\n If you
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.2.2
113
+ rubygems_version: 2.0.14
115
114
  signing_key:
116
115
  specification_version: 4
117
116
  summary: Caffeine reducer