coral_vagrant 0.1.1 → 0.1.2

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.
data/Gemfile.lock CHANGED
@@ -4,13 +4,13 @@ GEM
4
4
  archive-tar-minitar (0.5.2)
5
5
  childprocess (0.3.7)
6
6
  ffi (~> 1.0, >= 1.0.6)
7
- coral_cloud (0.1.1)
7
+ coral_cloud (0.1.2)
8
8
  coral_core (~> 0.1)
9
- coral_core (0.1.2)
9
+ coral_core (0.1.4)
10
10
  git (= 1.2.5)
11
11
  json (>= 1.4)
12
12
  log4r (~> 1.1)
13
- coral_plan (0.1.1)
13
+ coral_plan (0.1.2)
14
14
  coral_core (~> 0.1)
15
15
  diff-lcs (1.1.3)
16
16
  erubis (2.7.0)
data/Rakefile CHANGED
@@ -1,11 +1,12 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rubygems'
4
- require 'bundler'
5
4
  require 'rake'
6
- require 'rake/testtask'
7
- require 'rdoc/task'
5
+ require 'bundler'
8
6
  require 'jeweler'
7
+ require 'rspec/core/rake_task'
8
+ require 'rdoc/task'
9
+ require 'yard'
9
10
 
10
11
  require './lib/coral_vagrant.rb'
11
12
 
@@ -47,22 +48,30 @@ Jeweler::RubygemsDotOrgTasks.new
47
48
  #-------------------------------------------------------------------------------
48
49
  # Testing
49
50
 
50
- Rake::TestTask.new(:test) do |test|
51
- test.libs << 'lib' << 'test'
52
- test.pattern = 'test/**/test_*.rb'
53
- test.verbose = true
51
+ RSpec::Core::RakeTask.new(:spec, :tag) do |spec, task_args|
52
+ options = []
53
+ options << "--tag #{task_args[:tag]}" if task_args.is_a?(Array) && ! task_args[:tag].to_s.empty?
54
+ spec.rspec_opts = options.join(' ')
54
55
  end
55
56
 
56
- task :default => :test
57
+ task :default => :spec
57
58
 
58
59
  #-------------------------------------------------------------------------------
59
60
  # Documentation
60
61
 
61
- Rake::RDocTask.new do |rdoc|
62
- version = Coral::Vagrant::VERSION
62
+ version = Coral::Vagrant::VERSION
63
+ doc_title = "coral_vagrant #{version}"
63
64
 
65
+ Rake::RDocTask.new do |rdoc|
64
66
  rdoc.rdoc_dir = 'rdoc'
65
- rdoc.title = "coral_vagrant #{version}"
67
+ rdoc.title = doc_title
66
68
  rdoc.rdoc_files.include('README*')
67
69
  rdoc.rdoc_files.include('lib/**/*.rb')
68
70
  end
71
+
72
+ #---
73
+
74
+ YARD::Rake::YardocTask.new do |ydoc|
75
+ ydoc.files = [ 'README*', 'lib/**/*.rb' ]
76
+ ydoc.options = [ "--output-dir yardoc", "--title '#{doc_title}'" ]
77
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "coral_vagrant"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adrian Webb"]
12
- s.date = "2013-02-07"
12
+ s.date = "2013-02-08"
13
13
  s.description = "= coral_vagrant\n\nThis library contains various commands and exposes a data model to Vagrant\nthat allows for tightly integrated management of Virtual machines that are\nlinked to remote servers. \n\nThis also allows for custom execution plans.\n\nNote: This library is still very early in development!\n\n== Contributing to coral_vagrant\n \n* Check out the latest master to make sure the feature hasn't been implemented \n or the bug hasn't been fixed yet.\n* Check out the issue tracker to make sure someone already hasn't requested \n it and/or contributed it.\n* Fork the project.\n* Start a feature/bugfix branch.\n* Commit and push until you are happy with your contribution.\n* Make sure to add tests for it. This is important so I don't break it in a \n future version unintentionally.\n* Please try not to mess with the Rakefile, version, or history. If you want \n to have your own version, or is otherwise necessary, that is fine, but \n please isolate to its own commit so I can cherry-pick around it.\n\n== Copyright\n\nLicensed under GPLv3. See LICENSE.txt for further details.\n\nCopyright (c) 2013 Adrian Webb <adrian.webb@coraltech.net>\nCoral Technology Group LLC"
14
14
  s.email = "adrian.webb@coraltech.net"
15
15
  s.extra_rdoc_files = [
@@ -31,7 +31,9 @@ Gem::Specification.new do |s|
31
31
  "lib/coral_vagrant/commands/coral_init.rb",
32
32
  "lib/coral_vagrant/commands/coral_push.rb",
33
33
  "lib/coral_vagrant/commands/coral_run.rb",
34
- "lib/coral_vagrant/commands/coral_update.rb"
34
+ "lib/coral_vagrant/commands/coral_update.rb",
35
+ "spec/coral_test_kernel.rb",
36
+ "spec/spec_helper.rb"
35
37
  ]
36
38
  s.homepage = "http://github.com/coraltech/ruby-coral_vagrant"
37
39
  s.licenses = ["GPLv3"]
@@ -0,0 +1,22 @@
1
+
2
+ module Kernel
3
+
4
+ #-----------------------------------------------------------------------------
5
+ # Utilities
6
+
7
+ def capture
8
+ out = StringIO.new
9
+ $stdout = out
10
+
11
+ error = StringIO.new
12
+ $stderr = error
13
+
14
+ # Go do stuff!
15
+ yield
16
+ return out, error
17
+
18
+ ensure
19
+ $stdout = STDOUT
20
+ $stderr = STDERR
21
+ end
22
+ end
@@ -0,0 +1,14 @@
1
+
2
+ require 'rspec'
3
+ require 'stringio'
4
+ require 'coral_vagrant'
5
+
6
+ require 'coral_test_kernel'
7
+
8
+ #-------------------------------------------------------------------------------
9
+
10
+ RSpec.configure do |config|
11
+ config.mock_framework = :rspec
12
+ config.color_enabled = true
13
+ config.formatter = 'documentation'
14
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coral_vagrant
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adrian Webb
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-07 00:00:00 Z
18
+ date: 2013-02-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: vagrant
@@ -193,6 +193,8 @@ files:
193
193
  - lib/coral_vagrant/commands/coral_push.rb
194
194
  - lib/coral_vagrant/commands/coral_run.rb
195
195
  - lib/coral_vagrant/commands/coral_update.rb
196
+ - spec/coral_test_kernel.rb
197
+ - spec/spec_helper.rb
196
198
  homepage: http://github.com/coraltech/ruby-coral_vagrant
197
199
  licenses:
198
200
  - GPLv3