specinfra 1.5.1 → 1.6.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: 054c617d16d6de6d43bb54dc285a87a070a5e2d3
4
- data.tar.gz: 4e198a55dc520b4e5c014c53285343b8f361782d
3
+ metadata.gz: 6361a10be88cbdefe56f1f3c81c75d56bf1e7566
4
+ data.tar.gz: 2be2105e1659881aeac93bd9aef68b827361b4d9
5
5
  SHA512:
6
- metadata.gz: 563022af3f1938dc9f35e08b5d2aef545fa7a45dd0d407b029886543fe492b81c8a91e50d66dcb30cda0fcae66bd1e13bb631be34e888fee14a1bacec23f46ab
7
- data.tar.gz: b06613c0d7167a6894c89028003b436b1051eb5c39ed46748e89ab3ccdecfae33a152c1df17b0fdde9506b0c44eed17bc74dc7ccfe3a9b42c68a79be9c82c5b7
6
+ metadata.gz: 65ae10325e47408b2e000aae8ab16db791674740c34d9ade192e1f377d6187b901ea6e319241c7fdb6d4b644000115e2b6f31742a93e483cb179dc90d675433b
7
+ data.tar.gz: 39a52e6dda5d5cfe71b8b127cc5f47ffdb92de49ad98a87c1326e7e827572224bb608a5ff1850962ef4ee6917307b19952d8259fb0ef20a7010fc9ebfa82661b
@@ -16,6 +16,10 @@ module SpecInfra
16
16
  def check_running(service)
17
17
  "svcs -l #{escape(service)} status 2> /dev/null |grep -wx '^state.*online$'"
18
18
  end
19
+
20
+ def get_package_version(package, opts=nil)
21
+ "pkgin list | cut -f 1 -d ' ' | grep -E '^#{escape(package)}-([^-])+$' | grep -Eo '(\\.|\\w)+$'"
22
+ end
19
23
  end
20
24
  end
21
25
  end
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.5.1"
2
+ VERSION = "1.6.0"
3
3
  end
data/wercker.yml CHANGED
@@ -1,4 +1,4 @@
1
- box: wercker/ruby
1
+ box: mizzy/serverspec-base
2
2
  build:
3
3
  steps:
4
4
  - script:
@@ -30,11 +30,23 @@ build:
30
30
  name: Run rake spec:centos65
31
31
  code: rake spec:centos65
32
32
  cwd: $WORKING_DIR
33
+ - script:
34
+ name: Run vagrant up ubuntu1310
35
+ code: vagrant up ubuntu1310 --provider=digital_ocean
36
+ cwd: $WORKING_DIR
37
+ - script:
38
+ name: Run rake spec:ubuntu1310
39
+ code: rake spec:ubuntu1310
40
+ cwd: $WORKING_DIR
33
41
 
34
42
  after-steps:
35
43
  - script:
36
- name: Run vagrant destroy
44
+ name: Run vagrant destroy centos65
37
45
  code: vagrant destroy centos65 --force
38
46
  cwd: $WORKING_DIR
47
+ - script:
48
+ name: Run vagrant destroy ubuntu1310
49
+ code: vagrant destroy ubuntu1310 --force
50
+ cwd: $WORKING_DIR
39
51
  - 1syo/idobata-notify@0.1.1:
40
52
  token: $IDOBATA_TOKEN
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler