vagrant-hitch 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 1.9.2
5
+ - 1.9.1
6
+ - 1.8.7
7
+ branches:
8
+ only:
9
+ - master
data/Gemfile CHANGED
@@ -1,2 +1,3 @@
1
1
  source :rubygems
2
+ gem 'rake', :group => :test
2
3
  gemspec :path => '.'
data/Gemfile.lock CHANGED
@@ -1,18 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vagrant-hitch (0.0.2)
4
+ vagrant-hitch (0.0.9)
5
+ backports
5
6
  vagrant
6
7
 
7
8
  GEM
8
9
  remote: http://rubygems.org/
9
10
  specs:
10
11
  archive-tar-minitar (0.5.2)
11
- childprocess (0.3.6)
12
+ backports (2.7.1)
13
+ childprocess (0.3.7)
12
14
  ffi (~> 1.0, >= 1.0.6)
13
15
  diff-lcs (1.1.3)
14
16
  erubis (2.7.0)
15
- ffi (1.1.5)
17
+ ffi (1.3.1)
16
18
  i18n (0.6.1)
17
19
  json (1.5.4)
18
20
  log4r (1.1.10)
@@ -27,7 +29,7 @@ GEM
27
29
  rspec-expectations (2.11.3)
28
30
  diff-lcs (~> 1.1.3)
29
31
  rspec-mocks (2.11.3)
30
- vagrant (1.0.5)
32
+ vagrant (1.0.6)
31
33
  archive-tar-minitar (= 0.5.2)
32
34
  childprocess (~> 0.3.1)
33
35
  erubis (~> 2.7.0)
data/Rakefile CHANGED
@@ -1,3 +1,28 @@
1
1
  require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
2
3
 
4
+ task :default => [:test]
5
+
6
+ desc "run all functional specs in this ruby environment"
7
+ RSpec::Core::RakeTask.new(:test) do |t|
8
+ t.pattern = 'spec/*_spec.rb'
9
+
10
+ t.rspec_opts = [
11
+ '--format', 'documentation',
12
+ # This is only really needed once - we can remove it from all the specs
13
+ #'--require ./spec/spec_helper.rb',
14
+ '--color',
15
+ ]
16
+ end
17
+
18
+ desc "run the specs through all the supported rubies"
19
+ task :rubies do
20
+ system("rvm 1.8.7-p370,1.9.3-p194 do rake spec")
21
+ end
22
+
23
+ desc "set up all ruby environments"
24
+ namespace :bootstrap do
25
+ task :all_rubies do
26
+ end
27
+ end
3
28
 
data/lib/vagrant-hitch.rb CHANGED
@@ -1,10 +1,11 @@
1
1
  require 'yaml'
2
2
  require 'vagrant'
3
+ require 'backports'
3
4
  require File.join(File.dirname(__FILE__),'deep_merge')
4
5
 
5
6
  module VagrantHitch
6
7
  def self.validate(cfdir)
7
- unless Dir.exist?(cfdir)
8
+ unless File.exist?(cfdir) && File.directory?(cfdir)
8
9
  puts "The directory #{cfdir} is not valid"
9
10
  exit
10
11
  end
@@ -12,7 +13,6 @@ module VagrantHitch
12
13
 
13
14
  def self.up!(cfdir)
14
15
  self.validate(cfdir)
15
-
16
16
  return lambda do |config_dir, config|
17
17
  #Load up Config Files
18
18
  begin
@@ -33,8 +33,8 @@ module VagrantHitch
33
33
  # Typically, this should be used for any YAML anchors
34
34
  # that may be reused for other Vagrantbox definitions
35
35
  ignore_config = ['default']
36
- profiles.delete_if do |profile, config|
37
- true if ignore_config.find_index { |ignore_key| profile.include?(ignore_key) }
36
+ profiles.delete_if do |p, c|
37
+ true if ignore_config.find_index { |ignore_key| p.include?(ignore_key) }
38
38
  end
39
39
 
40
40
  profiles.each do |profile, node_config|
@@ -8,6 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.homepage = "https://github.com/fup/vagrant-hitch"
9
9
 
10
10
  gem.add_dependency "vagrant"
11
+ gem.add_dependency "backports"
11
12
  gem.add_development_dependency "rspec"
12
13
 
13
14
  gem.files = `git ls-files`.split($\)
@@ -15,5 +16,5 @@ Gem::Specification.new do |gem|
15
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
17
  gem.name = "vagrant-hitch"
17
18
  gem.require_paths = ["lib"]
18
- gem.version = "0.0.9"
19
+ gem.version = "0.1.0"
19
20
  end
metadata CHANGED
@@ -1,59 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hitch
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.9
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Aziz Shamim
9
14
  - James Fryman
10
15
  autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
- date: 2012-11-10 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
18
+
19
+ date: 2013-02-02 00:00:00 Z
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: vagrant
17
- requirement: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
18
25
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
23
33
  type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: backports
24
37
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
38
+ requirement: &id002 !ruby/object:Gem::Requirement
26
39
  none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: '0'
31
- - !ruby/object:Gem::Dependency
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
32
50
  name: rspec
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- type: :development
40
51
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
42
53
  none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ type: :development
62
+ version_requirements: *id003
47
63
  description: Creates and use a data driven vagrant environment
48
- email:
64
+ email:
49
65
  - azizshamim@gmail.com
50
66
  - james@frymanet.com
51
67
  executables: []
68
+
52
69
  extensions: []
70
+
53
71
  extra_rdoc_files: []
54
- files:
72
+
73
+ files:
55
74
  - .gitignore
56
75
  - .rspec
76
+ - .travis.yml
57
77
  - Gemfile
58
78
  - Gemfile.lock
59
79
  - LICENSE
@@ -71,27 +91,36 @@ files:
71
91
  - vagrant-hitch.gemspec
72
92
  homepage: https://github.com/fup/vagrant-hitch
73
93
  licenses: []
94
+
74
95
  post_install_message:
75
96
  rdoc_options: []
76
- require_paths:
97
+
98
+ require_paths:
77
99
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
100
+ required_ruby_version: !ruby/object:Gem::Requirement
79
101
  none: false
80
- requirements:
81
- - - ! '>='
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ hash: 3
106
+ segments:
107
+ - 0
108
+ version: "0"
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
110
  none: false
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ hash: 3
115
+ segments:
116
+ - 0
117
+ version: "0"
90
118
  requirements: []
119
+
91
120
  rubyforge_project:
92
- rubygems_version: 1.8.23
121
+ rubygems_version: 1.8.24
93
122
  signing_key:
94
123
  specification_version: 3
95
124
  summary: Creates and use a data driven vagrant environment
96
- test_files:
125
+ test_files:
97
126
  - spec/hitch_spec.rb