server-blender-manifest 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.18
1
+ 0.0.19
@@ -1,4 +1,15 @@
1
1
  module Blender::Manifest::Mixer
2
+ # installs cookbook gems if needed and loads them into the environment
3
+ def cookbook(cb, version)
4
+ # skip cookbooks that are unapcked into the /cookbooks/ directory
5
+ return if File.directory?("cookbooks/#{cb}/files") || File.directory?("cookbooks/#{cb}/lib")
6
+
7
+ gem cb, version
8
+ rescue Gem::LoadError
9
+ system "gem install --no-ri --no-rdoc #{cb} -v#{version}"
10
+ gem cb, version
11
+ end
12
+
2
13
  # mixes recipe module
3
14
  #
4
15
  # The purpose is to make the mixing of recipes cleaner and easier on the eyes :)
@@ -101,4 +101,4 @@ include Blender::Manifest::Mixer
101
101
  $: << "recipes"
102
102
 
103
103
  # add all recipes in the cookbooks directory to the path
104
- $:.concat Dir["cookbooks/*/recipes"]
104
+ $:.concat Dir["cookbooks/*/lib"]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{server-blender-manifest}
8
- s.version = "0.0.18"
8
+ s.version = "0.0.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vitaly Kushner"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server-blender-manifest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vitaly Kushner