vagrant-vyatta 0.0.1 → 0.0.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.
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GuestVyatta
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,55 +1,24 @@
1
- # coding: utf-8
2
- $:.unshift File.expand_path("../lib", __FILE__)
3
- require 'vagrant-vyatta/version'
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/vagrant-vyatta/version', __FILE__)
4
3
 
5
- Gem::Specification.new do |s|
6
- s.name = "vagrant-vyatta"
7
- s.version = VagrantPlugins::GuestVyatta::VERSION
8
- s.authors = ["KUSAKABE Yuya"]
9
- s.email = ["yuya.kusakabe@gmail.com"]
10
- s.description = "Enables Vagrant to manage Vyatta"
11
- s.summary = "Enables Vagrant to manage Vyatta"
12
- s.homepage = "https://github.com/higebu/vagrant-vyatta"
13
- s.license = "MIT"
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "vagrant-vyatta"
6
+ spec.version = VagrantPlugins::GuestVyatta::VERSION
7
+ spec.authors = ["KUSAKABE Yuya"]
8
+ spec.email = ["yuya.kusakabe@gmail.com"]
9
+ spec.description = "Vyatta Guest Support for Vagrant"
10
+ spec.summary = "A small gem that adds Vyatta guest support to vagrant."
11
+ spec.homepage = ""
12
+ spec.license = "MIT"
14
13
 
15
- s.required_rubygems_version = ">= 1.8.23"
16
- s.rubyforge_project = "vagrant-vyatta"
14
+ spec.files = `git ls-files`.split($\)
15
+ spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ["lib"]
17
18
 
18
- s.add_development_dependency "bundler", "~> 1.3"
19
- s.add_development_dependency "rake"
19
+ spec.required_rubygems_version = ">= 1.8.23"
20
+ spec.rubyforge_project = "vagrant-vyatta"
20
21
 
21
- # The following block of code determines the files that should be included
22
- # in the gem. It does this by reading all the files in the directory where
23
- # this gemspec is, and parsing out the ignored files from the gitignore.
24
- # Note that the entire gitignore(5) syntax is not supported, specifically
25
- # the "!" syntax, but it should mostly work correctly.
26
- root_path = File.dirname(__FILE__)
27
- all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
28
- all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
29
- gitignore_path = File.join(root_path, ".gitignore")
30
- gitignore = File.readlines(gitignore_path)
31
- gitignore.map! { |line| line.chomp.strip }
32
- gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
33
-
34
- unignored_files = all_files.reject do |file|
35
- # Ignore any directories, the gemspec only cares about files
36
- next true if File.directory?(file)
37
-
38
- # Ignore any paths that match anything in the gitignore. We do
39
- # two tests here:
40
- #
41
- # - First, test to see if the entire path matches the gitignore.
42
- # - Second, match if the basename does, this makes it so that things
43
- # like '.DS_Store' will match sub-directories too (same behavior
44
- # as git).
45
- #
46
- gitignore.any? do |ignore|
47
- File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
48
- File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
49
- end
50
- end
51
-
52
- s.files = unignored_files
53
- s.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
54
- s.require_path = 'lib'
22
+ spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency "rake"
55
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vyatta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,27 +43,27 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: Enables Vagrant to manage Vyatta
46
+ description: Vyatta Guest Support for Vagrant
47
47
  email:
48
48
  - yuya.kusakabe@gmail.com
49
49
  executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
+ - .gitignore
53
54
  - Gemfile
54
- - Rakefile
55
+ - LICENSE
55
56
  - README.md
56
- - lib/vagrant-vyatta/version.rb
57
- - lib/vagrant-vyatta/plugin.rb
58
- - lib/vagrant-vyatta/guest.rb
57
+ - Rakefile
58
+ - lib/vagrant-vyatta.rb
59
59
  - lib/vagrant-vyatta/cap/change_host_name.rb
60
60
  - lib/vagrant-vyatta/cap/configure_networks.rb
61
61
  - lib/vagrant-vyatta/cap/halt.rb
62
- - lib/vagrant-vyatta.rb
63
- - LICENSE
62
+ - lib/vagrant-vyatta/guest.rb
63
+ - lib/vagrant-vyatta/plugin.rb
64
+ - lib/vagrant-vyatta/version.rb
64
65
  - vagrant-vyatta.gemspec
65
- - .gitignore
66
- homepage: https://github.com/higebu/vagrant-vyatta
66
+ homepage: ''
67
67
  licenses:
68
68
  - MIT
69
69
  post_install_message:
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: 4242460176597138424
81
+ hash: -422392049039402316
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -90,5 +90,5 @@ rubyforge_project: vagrant-vyatta
90
90
  rubygems_version: 1.8.23
91
91
  signing_key:
92
92
  specification_version: 3
93
- summary: Enables Vagrant to manage Vyatta
93
+ summary: A small gem that adds Vyatta guest support to vagrant.
94
94
  test_files: []