vagrant-softlayer 0.3.3 → 0.4.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.
@@ -1,55 +1,55 @@
1
- $:.unshift File.expand_path("../lib", __FILE__)
2
- require "vagrant-softlayer/version"
3
-
4
- Gem::Specification.new do |spec|
5
- spec.name = "vagrant-softlayer"
6
- spec.version = VagrantPlugins::SoftLayer::VERSION
7
- spec.authors = "Audiolize GmbH"
8
- spec.email = ""
9
- spec.homepage = "https://github.com/audiolize/vagrant-softlayer"
10
- spec.description = "Enables Vagrant to manages SoftLayer CCI."
11
- spec.summary = "Enables Vagrant to manages SoftLayer CCI."
12
- spec.license = "MIT"
13
-
14
- # The following block of code determines the files that should be included
15
- # in the gem. It does this by reading all the files in the directory where
16
- # this gemspec is, and parsing out the ignored files from the gitignore.
17
- # Note that the entire gitignore(5) syntax is not supported, specifically
18
- # the "!" syntax, but it should mostly work correctly.
19
- root_path = File.dirname(__FILE__)
20
- all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
21
- all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
22
- gitignore_path = File.join(root_path, ".gitignore")
23
- gitignore = File.readlines(gitignore_path)
24
- gitignore.map! { |line| line.chomp.strip }
25
- gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
26
-
27
- unignored_files = all_files.reject do |file|
28
- # Ignore any directories, the gemspec only cares about files
29
- next true if File.directory?(file)
30
-
31
- # Ignore any paths that match anything in the gitignore. We do
32
- # two tests here:
33
- #
34
- # - First, test to see if the entire path matches the gitignore.
35
- # - Second, match if the basename does, this makes it so that things
36
- # like '.DS_Store' will match sub-directories too (same behavior
37
- # as git).
38
- #
39
- gitignore.any? do |ignore|
40
- File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
41
- File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
42
- end
43
- end
44
-
45
- spec.files = unignored_files
46
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
47
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
48
- spec.require_path = "lib"
49
-
50
- spec.add_dependency "softlayer_api", "~> 1.0"
51
-
52
- spec.add_development_dependency "bundler", "~> 1.3"
53
- spec.add_development_dependency "rake"
54
- spec.add_development_dependency "rspec"
55
- end
1
+ $:.unshift File.expand_path("../lib", __FILE__)
2
+ require "vagrant-softlayer/version"
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "vagrant-softlayer"
6
+ spec.version = VagrantPlugins::SoftLayer::VERSION
7
+ spec.authors = "Audiolize GmbH"
8
+ spec.email = ""
9
+ spec.homepage = "https://github.com/audiolize/vagrant-softlayer"
10
+ spec.description = "Enables Vagrant to manages SoftLayer CCI."
11
+ spec.summary = "Enables Vagrant to manages SoftLayer CCI."
12
+ spec.license = "MIT"
13
+
14
+ # The following block of code determines the files that should be included
15
+ # in the gem. It does this by reading all the files in the directory where
16
+ # this gemspec is, and parsing out the ignored files from the gitignore.
17
+ # Note that the entire gitignore(5) syntax is not supported, specifically
18
+ # the "!" syntax, but it should mostly work correctly.
19
+ root_path = File.dirname(__FILE__)
20
+ all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
21
+ all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
22
+ gitignore_path = File.join(root_path, ".gitignore")
23
+ gitignore = File.readlines(gitignore_path)
24
+ gitignore.map! { |line| line.chomp.strip }
25
+ gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
26
+
27
+ unignored_files = all_files.reject do |file|
28
+ # Ignore any directories, the gemspec only cares about files
29
+ next true if File.directory?(file)
30
+
31
+ # Ignore any paths that match anything in the gitignore. We do
32
+ # two tests here:
33
+ #
34
+ # - First, test to see if the entire path matches the gitignore.
35
+ # - Second, match if the basename does, this makes it so that things
36
+ # like '.DS_Store' will match sub-directories too (same behavior
37
+ # as git).
38
+ #
39
+ gitignore.any? do |ignore|
40
+ File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
41
+ File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
42
+ end
43
+ end
44
+
45
+ spec.files = unignored_files
46
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
47
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
48
+ spec.require_path = "lib"
49
+
50
+ spec.add_dependency "softlayer_api", "~> 3.0"
51
+
52
+ spec.add_development_dependency "bundler", "~> 1.3"
53
+ spec.add_development_dependency "rake"
54
+ spec.add_development_dependency "rspec"
55
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Audiolize GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-21 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: softlayer_api
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement