poise-boiler 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80e476aeda84b3778c7086069c2b92101ca52b7d
4
- data.tar.gz: 65a6fb3c15e854bd8f7bdb67d849f49b3ce33fca
3
+ metadata.gz: 655c4dec302223a0561e3dd796f2558b89de756b
4
+ data.tar.gz: 1fc9889a53e6d067af760965d20d82319dc40958
5
5
  SHA512:
6
- metadata.gz: 07651ae11a31bd28d9a16c722d46bcea7a01cc8b7e27d4f21131009d7ae555f137d83873b98b8811c574d446241989c0aec41b08be1343743e4e351178c82460
7
- data.tar.gz: b95721f7ff51004117a9fbd91582625c171b9d0883dbfa49ee9c11f0ba6f68b5cbda532690fdd2301045563359d2941c4141e35c0eefb5949756186119f85b15
6
+ metadata.gz: 1aeb8f0b44d0b107cc3d22e217fa953869fa2b87bee5c756f655d38db2ec6b45e0763a83f98b979c9a3c3717c6763e7bd762a86d814053f8424ced1a4fe62759
7
+ data.tar.gz: 46394c02f8ca753c3bdf68627a6633dc9f127d90cdb01641057d80ec0b845464c8e43dae658cd8ce4d8e7f2903900f35681c5a613901de0622f411c8f0257915
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
2
  .yardoc/
3
3
  doc/
4
+ pkg/*
data/.travis.yml CHANGED
@@ -1,18 +1,18 @@
1
1
  sudo: false
2
2
  cache: bundler
3
3
  language: ruby
4
+ addons:
5
+ apt:
6
+ packages:
7
+ - libgecode-dev
4
8
  rvm:
5
9
  - "2.0"
6
10
  - "2.1"
7
11
  - "2.2"
12
+ gemfile:
13
+ - gemfiles/default.gemfile
14
+ - gemfiles/master.gemfile
8
15
  env:
9
16
  global:
10
17
  - USE_SYSTEM_GECODE=true
11
- before_install:
12
- - curl -o ~/gecode.tar.gz https://poise-gecode.s3.amazonaws.com/gecode-3.7.3-ubuntu12.04-x86_64.tar.gz
13
- - tar xzf ~/gecode.tar.gz -C ~
14
- - rm ~/gecode.tar.gz
15
- - bundle config build.dep_selector "--with-cflags=\"-I$HOME/gecode-3.7.3/include\"
16
- --with-cppflags=\"-I$HOME/gecode-3.7.3/include\" --with-ldflags=\"-L$HOME/gecode-3.7.3/lib
17
- -Wl,-rpath=$HOME/gecode-3.7.3/lib\""
18
18
  script: bundle exec rake test
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.1.0
4
+
5
+ Support for kitchen-rackspace'd cookbooks.
6
+
3
7
  ## v1.0.0
4
8
 
5
9
  Initial release!
data/Gemfile CHANGED
@@ -16,15 +16,12 @@
16
16
 
17
17
  source 'https://rubygems.org/'
18
18
 
19
- gemspec
19
+ gemspec path: File.expand_path('..', __FILE__)
20
20
 
21
- def dev_gem(name, path: File.join('..', name), github: "poise/#{name}")
22
- github = "#{github}/#{name}" unless github.include?('/')
21
+ def dev_gem(name, path: File.join('..', name))
23
22
  path = File.expand_path(File.join('..', path), __FILE__)
24
23
  if File.exist?(path)
25
24
  gem name, path: path
26
- else
27
- gem name, github: github
28
25
  end
29
26
  end
30
27
 
@@ -0,0 +1,17 @@
1
+ #
2
+ # Copyright 2015, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../Gemfile', __FILE__)
@@ -0,0 +1,20 @@
1
+ #
2
+ # Copyright 2015, Noah Kantrowitz
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ eval_gemfile File.expand_path('../../Gemfile', __FILE__)
18
+
19
+ gem 'chef', github: 'chef/chef'
20
+ gem 'halite', github: 'poise/halite'
@@ -45,8 +45,12 @@ module PoiseBoiler
45
45
  File.chmod(0755, './docker')
46
46
  end
47
47
 
48
+ file '.ssh/id_rsa' do
49
+ sh 'ssh-keygen -f ~/.ssh/id_rsa -b 768 -P ""'
50
+ end
51
+
48
52
  desc 'Run Test-Kitchen integration tests.'
49
- task 'travis:integration' => %w{test/docker/docker.key ./docker} do
53
+ task 'travis:integration' => ( integration_rackspace? ? %w{.ssh/id_rsa} : %w{test/docker/docker.key ./docker} ) do
50
54
  sh './bin/kitchen test -d always'
51
55
  end
52
56
 
@@ -67,6 +71,14 @@ module PoiseBoiler
67
71
  ENV['TRAVIS_SECURE_ENV_VARS'] && !ENV['TRAVIS_SECURE_ENV_VARS'].empty? && !ENV['BUNDLE_GEMFILE'].to_s.include?('master')
68
72
  end
69
73
 
74
+ # Should we set things up for Rackspace integration tests? The default
75
+ # is to use Docker.
76
+ #
77
+ # @return [Boolean]
78
+ def integration_rackspace?
79
+ File.exist?('.kitchen.travis.yml') && IO.read('.kitchen.travis.yml').include?('name: rackspace')
80
+ end
81
+
70
82
  # Convert a Time object to nanoseconds since the epoch.
71
83
  #
72
84
  # @param t [Time] Time object to convert.
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseBoiler
19
- VERSION = '1.0.0'
19
+ VERSION = '1.1.0'
20
20
  end
@@ -31,7 +31,7 @@ EOH
31
31
  file 'README.md'
32
32
 
33
33
  context 'no secure vars' do
34
- environment TRAVIS_SECURE_ENV_VARS: nil
34
+ environment TRAVIS_SECURE_ENV_VARS: ''
35
35
 
36
36
  its(:stdout) { is_expected.to include 'Running task spec' }
37
37
  its(:stdout) { is_expected.to include 'Running task chef:foodcritic' }
@@ -44,7 +44,11 @@ EOH
44
44
 
45
45
  its(:stdout) { is_expected.to include 'Running task spec' }
46
46
  its(:stdout) { is_expected.to include 'Running task chef:foodcritic' }
47
- its(:stdout) { is_expected.to include 'Running task travis:integration' }
47
+ if (ENV['BUNDLE_GEMFILE'] || '').include?('master')
48
+ its(:stdout) { is_expected.to_not include 'Running task travis:integration' }
49
+ else
50
+ its(:stdout) { is_expected.to include 'Running task travis:integration' }
51
+ end
48
52
  its(:exitstatus) { is_expected.to eq 0 }
49
53
  end # /context secure vars
50
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-boiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -358,6 +358,8 @@ files:
358
358
  - LICENSE
359
359
  - README.md
360
360
  - Rakefile
361
+ - gemfiles/default.gemfile
362
+ - gemfiles/master.gemfile
361
363
  - lib/poise-boiler.rb
362
364
  - lib/poise_boiler.rb
363
365
  - lib/poise_boiler/error.rb