omnijack 0.1.0 → 0.1.1

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: 5cadaf238bfb0ff5f33ed95b1329043182bd8151
4
- data.tar.gz: 890034875797b786f1fcda49430aff51ad5e7abc
3
+ metadata.gz: 5638f033cac40057697fd82308130205bd707e4d
4
+ data.tar.gz: e323ed7ecdcb6b3e2e6aec4efc0931a606c62201
5
5
  SHA512:
6
- metadata.gz: 703d6eca87963b31a99564b84c80f709621fde3440b9c8254ebe8d4260560c49ec7e6ded97d2151564c822fa9a0d24651f71c1bef7d828ca2d71c2e693bc1cf7
7
- data.tar.gz: 1eed214f4e432ba6b1c70191a48cefd63a7ca1d1cddb369bf99eb11b4a6566ec693084d5f4e588b6b2df082f752d5faa997d19f11993b91ade3027eecf7d8cf3
6
+ metadata.gz: eaabc4a15602a381e633f609373bafd6e73f3c0a2cc6acd38e0fa6b97414cc2516fa95b5c19d5f2c8e3a2561b544d058c3aa3c64b52927f74dea34b6a0c977ee
7
+ data.tar.gz: 6b446ddc2fa4ee35f7adde80f51341cf5ae020eb7967891028dd874490b4e0cae204cf4ccfecf121dbb0a52f31bd5b4a6731b7979e9777a04495d93c42545fea
data/CHANGELOG.md CHANGED
@@ -1,11 +1,14 @@
1
1
  Omnijack Gem CHANGELOG
2
2
  ======================
3
3
 
4
+ v0.1.1 (2014-09-12)
5
+ -------------------
6
+ - Don't load vendored Chef classes if Chef itself is already loaded
7
+
4
8
  v0.1.0 (2014-09-12)
5
9
  -------------------
6
10
  - Initial release!
7
11
 
8
-
9
12
  v0.0.1 (2014-09-02)
10
13
  -------------------
11
14
  - Development started
data/README.md CHANGED
@@ -5,7 +5,7 @@ Omnijack
5
5
  [![Build Status](http://img.shields.io/travis/RoboticCheese/omnijack-ruby.svg)][travis]
6
6
  [![Code Climate](http://img.shields.io/codeclimate/github/kabisaict/flow.svg)][codeclimate]
7
7
  [![Coverage Status](http://img.shields.io/coveralls/RoboticCheese/omnijack-ruby.svg)][coveralls]
8
- [![Dependency Status](http://img.shields.io/gemnasium/RoboticCheese/omnijack.svg)][gemnasium]
8
+ [![Dependency Status](http://img.shields.io/gemnasium/RoboticCheese/omnijack-ruby.svg)][gemnasium]
9
9
 
10
10
  [fury]: http://badge.fury.io/rb/omnijack
11
11
  [travis]: http://travis-ci.org/RoboticCheese/omnijack-ruby
@@ -16,9 +16,6 @@
16
16
  # See the License for the specific language governing permissions and
17
17
  # limitations under the License.
18
18
 
19
- require_relative '../../vendor/chef/lib/chef/exceptions'
20
- require_relative '../../vendor/chef/lib/chef/mixin/params_validate'
21
-
22
19
  class Omnijack
23
20
  # Offer a config to base all the metaruby off of
24
21
  #
@@ -20,8 +20,6 @@ require 'ohai'
20
20
  require 'open-uri'
21
21
  require_relative 'config'
22
22
  require_relative '../omnijack'
23
- require_relative '../../vendor/chef/lib/chef/exceptions'
24
- require_relative '../../vendor/chef/lib/chef/mixin/params_validate'
25
23
 
26
24
  class Omnijack
27
25
  # A class for representing an Omnitruck metadata object
@@ -22,8 +22,6 @@ require_relative 'list'
22
22
  require_relative 'metadata'
23
23
  require_relative 'platforms'
24
24
  require_relative 'project/metaprojects'
25
- require_relative '../../vendor/chef/lib/chef/exceptions'
26
- require_relative '../../vendor/chef/lib/chef/mixin/params_validate'
27
25
 
28
26
  class Omnijack
29
27
  # A parent project that can contain metadata, a pkg list, and platforms
@@ -20,5 +20,5 @@
20
20
  #
21
21
  # @author Jonathan Hartman <j@p4nt5.com>
22
22
  class Omnijack
23
- VERSION = '0.1.0'
23
+ VERSION = '0.1.1'
24
24
  end
data/lib/omnijack.rb CHANGED
@@ -16,8 +16,10 @@
16
16
  # See the License for the specific language governing permissions and
17
17
  # limitations under the License.
18
18
 
19
- require_relative '../vendor/chef/lib/chef/exceptions'
20
- require_relative '../vendor/chef/lib/chef/mixin/params_validate'
19
+ unless Module.const_defined?(:Chef)
20
+ require_relative '../vendor/chef/lib/chef/exceptions'
21
+ require_relative '../vendor/chef/lib/chef/mixin/params_validate'
22
+ end
21
23
  require_relative 'omnijack/config'
22
24
  require_relative 'omnijack/project'
23
25
  require_relative 'omnijack/list'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnijack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Hartman