bib-vagrant 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile +3 -2
- data/LICENSE.txt +10 -19
- data/bib-vagrant.gemspec +42 -10
- data/lib/bib/version.rb +1 -1
- metadata +20 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 397b153bb8941581adb820b1a25ff6134ef1f4e2
|
4
|
+
data.tar.gz: d533a91dab365b58b4a0798c900958c83afc0ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e13223a455d8b70da95a5d1e6a1b31a59dcff8e8549b820946f9307ed164562e0c910038c29e7d4bc0a612282a0b93acd07cb9feb25ee28ac7fe486c216125de
|
7
|
+
data.tar.gz: 026ec7b41265d195101ffafa844e77df21e18495c1ad04f617d51ee4ab8e29de839909fc10d9fbf71a521d850e4af2eae6fcd53583a57445366ab9631d9314e5
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -2,10 +2,10 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in bib-vagrant.gemspec
|
4
4
|
# (no idea how to get the github-reference below in .gemspec)
|
5
|
-
gemspec
|
5
|
+
# gemspec
|
6
6
|
|
7
7
|
group :development do
|
8
|
-
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
|
8
|
+
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git', tag: "v1.9.1"
|
9
9
|
# gem "vagrant", git: "git://github.com/mitchellh/vagrant.git", tag: "v1.7.4"
|
10
10
|
# gem "vagrant", git: "git://github.com/mitchellh/vagrant.git", tag: "v1.3.5"
|
11
11
|
end
|
@@ -13,3 +13,4 @@ end
|
|
13
13
|
group :plugins do
|
14
14
|
gem 'bib-vagrant', path: '.'
|
15
15
|
end
|
16
|
+
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,13 @@
|
|
1
|
-
Copyright
|
2
|
-
All rights reserved.
|
1
|
+
Copyright 2016 Chegg Inc.
|
3
2
|
|
4
|
-
|
5
|
-
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
6
|
|
7
|
-
|
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.
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
WARRANTIES
|
16
|
-
|
17
|
-
|
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.
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/bib-vagrant.gemspec
CHANGED
@@ -1,30 +1,62 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'bib/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'bib-vagrant'
|
8
8
|
spec.version = Bib::Vagrant::VERSION
|
9
|
-
spec.authors = %w(tillk fh gilleyj seppsepp)
|
9
|
+
spec.authors = %w(tillk fh gilleyj seppsepp baccenfutter)
|
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 = '
|
14
|
+
spec.license = 'Apache-2.0'
|
15
15
|
|
16
|
-
spec.
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ['lib']
|
20
|
-
|
21
|
-
spec.add_dependency 'thor', '>= 0.18.1'
|
16
|
+
spec.add_dependency 'thor', '>= 0.19.4'
|
22
17
|
spec.add_dependency 'colored', '>= 1.2'
|
23
|
-
spec.add_dependency '
|
18
|
+
spec.add_dependency 'rest-client', '>= 1.6.0', '< 3.0'
|
24
19
|
spec.add_dependency 'json'
|
25
20
|
|
26
21
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
27
22
|
spec.add_development_dependency 'rake'
|
28
23
|
spec.add_development_dependency 'minitest', '~> 5.0.8'
|
29
24
|
spec.add_development_dependency 'coveralls'
|
25
|
+
|
26
|
+
# The following block of code determines the files that should be included
|
27
|
+
# in the gem. It does this by reading all the files in the directory where
|
28
|
+
# this gemspec is, and parsing out the ignored files from the gitignore.
|
29
|
+
# Note that the entire gitignore(5) syntax is not supported, specifically
|
30
|
+
# the "!" syntax, but it should mostly work correctly.
|
31
|
+
root_path = File.dirname(__FILE__)
|
32
|
+
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
|
33
|
+
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
|
34
|
+
gitignore_path = File.join(root_path, ".gitignore")
|
35
|
+
gitignore = File.readlines(gitignore_path)
|
36
|
+
gitignore.map! { |line| line.chomp.strip }
|
37
|
+
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
|
38
|
+
|
39
|
+
unignored_files = all_files.reject do |file|
|
40
|
+
# Ignore any directories, the gemspec only cares about files
|
41
|
+
next true if File.directory?(file)
|
42
|
+
|
43
|
+
# Ignore any paths that match anything in the gitignore. We do
|
44
|
+
# two tests here:
|
45
|
+
#
|
46
|
+
# - First, test to see if the entire path matches the gitignore.
|
47
|
+
# - Second, match if the basename does, this makes it so that things
|
48
|
+
# like '.DS_Store' will match sub-directories too (same behavior
|
49
|
+
# as git).
|
50
|
+
#
|
51
|
+
gitignore.any? do |ignore|
|
52
|
+
File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
|
53
|
+
File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
spec.files = unignored_files
|
58
|
+
spec.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
|
59
|
+
spec.require_path = 'lib'
|
60
|
+
|
61
|
+
|
30
62
|
end
|
data/lib/bib/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bib-vagrant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tillk
|
8
8
|
- fh
|
9
9
|
- gilleyj
|
10
10
|
- seppsepp
|
11
|
+
- baccenfutter
|
11
12
|
autorequire:
|
12
13
|
bindir: bin
|
13
14
|
cert_chain: []
|
14
|
-
date:
|
15
|
+
date: 2017-02-14 00:00:00.000000000 Z
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
17
18
|
name: thor
|
@@ -19,14 +20,14 @@ dependencies:
|
|
19
20
|
requirements:
|
20
21
|
- - ">="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
23
|
+
version: 0.19.4
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
26
|
version_requirements: !ruby/object:Gem::Requirement
|
26
27
|
requirements:
|
27
28
|
- - ">="
|
28
29
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
30
|
+
version: 0.19.4
|
30
31
|
- !ruby/object:Gem::Dependency
|
31
32
|
name: colored
|
32
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,19 +43,25 @@ dependencies:
|
|
42
43
|
- !ruby/object:Gem::Version
|
43
44
|
version: '1.2'
|
44
45
|
- !ruby/object:Gem::Dependency
|
45
|
-
name:
|
46
|
+
name: rest-client
|
46
47
|
requirement: !ruby/object:Gem::Requirement
|
47
48
|
requirements:
|
48
49
|
- - ">="
|
49
50
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
51
|
+
version: 1.6.0
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
51
55
|
type: :runtime
|
52
56
|
prerelease: false
|
53
57
|
version_requirements: !ruby/object:Gem::Requirement
|
54
58
|
requirements:
|
55
59
|
- - ">="
|
56
60
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
61
|
+
version: 1.6.0
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '3.0'
|
58
65
|
- !ruby/object:Gem::Dependency
|
59
66
|
name: json
|
60
67
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,6 +150,9 @@ files:
|
|
143
150
|
- Vagrantfile
|
144
151
|
- bib-vagrant.gemspec
|
145
152
|
- bin/bib-vagrant
|
153
|
+
- coverage/.last_run.json
|
154
|
+
- coverage/.resultset.json
|
155
|
+
- coverage/.resultset.json.lock
|
146
156
|
- lib/bib/bib_vagrant.rb
|
147
157
|
- lib/bib/bib_vagrant_config.rb
|
148
158
|
- lib/bib/bib_vagrant_npm_provisioner.rb
|
@@ -152,7 +162,7 @@ files:
|
|
152
162
|
- test/config_test.rb
|
153
163
|
homepage: https://github.com/easybiblabs/bib-vagrant
|
154
164
|
licenses:
|
155
|
-
-
|
165
|
+
- Apache-2.0
|
156
166
|
metadata: {}
|
157
167
|
post_install_message:
|
158
168
|
rdoc_options: []
|
@@ -170,9 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
180
|
version: '0'
|
171
181
|
requirements: []
|
172
182
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.4.8
|
174
184
|
signing_key:
|
175
185
|
specification_version: 4
|
176
186
|
summary: Centralize configuration and setup
|
177
|
-
test_files:
|
178
|
-
- test/config_test.rb
|
187
|
+
test_files: []
|