bib-vagrant 0.0.2 → 0.1.0

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 CHANGED
@@ -1,4 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in bib-vagrant.gemspec
4
+ # (no idea how to get the github-reference below in .gemspec)
4
5
  gemspec
6
+
7
+ group :development do
8
+ gem "vagrant", git: "git://github.com/mitchellh/vagrant.git", tag: "v1.3.5"
9
+ end
data/LICENSE.txt CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2013 till
1
+ Copyright (c) 2013 Till Klampaeckel, Florian Holzhauer, ImagineEasy Solutions LLC
2
+ All rights reserved.
2
3
 
3
- MIT License
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
4
6
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
12
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
17
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
20
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
21
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
22
+ OF THE POSSIBILITY OF SUCH DAMAGE.
data/Vagrantfile ADDED
@@ -0,0 +1,7 @@
1
+ Vagrant.require_plugin "bib-vagrant"
2
+
3
+ Vagrant.configure("2") do |config|
4
+ foo = ::Bib::Vagrant::Config.new()
5
+ puts foo.get.inspect
6
+ config.vm.box = "precise"
7
+ end
data/bib-vagrant.gemspec CHANGED
@@ -6,12 +6,12 @@ require 'bib/vagrant/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "bib-vagrant"
8
8
  spec.version = Bib::Vagrant::VERSION
9
- spec.authors = ["till", "fh"]
9
+ spec.authors = ["tillk", "fh"]
10
10
  spec.email = ["till@php.net"]
11
11
  spec.description = "A rubygem to centralize configuration and setup in every project's Vagrantfile"
12
12
  spec.summary = "Centralize configuration and setup"
13
13
  spec.homepage = "https://github.com/easybiblabs/bib-vagrant"
14
- spec.license = "BSD"
14
+ spec.license = "New BSD License"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -23,7 +23,7 @@ module Bib
23
23
  create(get_path, vagrantconfig)
24
24
  end
25
25
 
26
- return vagrantconfig
26
+ vagrantconfig
27
27
  end
28
28
 
29
29
  def has?
@@ -0,0 +1,28 @@
1
+ begin
2
+ require "vagrant"
3
+ rescue LoadError
4
+ raise "This is a vagrant plugin, do not use standalone."
5
+ end
6
+
7
+ if Vagrant::VERSION < "1.2.0"
8
+ raise "This vagrant plugin needs vagrant 1.2.0+"
9
+ end
10
+
11
+ require_relative 'config'
12
+ require_relative 'version'
13
+
14
+ module VagrantPlugins
15
+ module Bib
16
+ module Vagrant
17
+ class Plugin < ::Vagrant.plugin("2")
18
+
19
+ puts "MEH"
20
+ name "bib-vagrant"
21
+ description <<-DESC
22
+ This is a fake plugin to get bib::vagrant into vagrant
23
+ DESC
24
+
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,5 +1,5 @@
1
1
  module Bib
2
2
  module Vagrant
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -0,0 +1,7 @@
1
+ begin
2
+ require "vagrant"
3
+ rescue LoadError
4
+ raise "This plugin must be run within Vagrant."
5
+ end
6
+
7
+ require "bib/vagrant/plugin"
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bib-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - till
8
+ - tillk
9
9
  - fh
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-01 00:00:00.000000000 Z
13
+ date: 2013-12-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -138,15 +138,18 @@ files:
138
138
  - LICENSE.txt
139
139
  - README.md
140
140
  - Rakefile
141
+ - Vagrantfile
141
142
  - bib-vagrant.gemspec
142
143
  - bin/bib-vagrant
144
+ - lib/bib-vagrant.rb
143
145
  - lib/bib/vagrant.rb
144
146
  - lib/bib/vagrant/config.rb
147
+ - lib/bib/vagrant/plugin.rb
145
148
  - lib/bib/vagrant/version.rb
146
149
  - test/config_test.rb
147
150
  homepage: https://github.com/easybiblabs/bib-vagrant
148
151
  licenses:
149
- - BSD
152
+ - New BSD License
150
153
  post_install_message:
151
154
  rdoc_options: []
152
155
  require_paths: