specinfra 1.8.0 → 1.9.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: e5c2b978aecc51f4b3eeb4606557d80a3f78539d
4
- data.tar.gz: 911aa8bac641318bcdee6fb1708c00ffb2e729b8
3
+ metadata.gz: 4eeb384bd812671cb87c1f274afddb397675c6e1
4
+ data.tar.gz: 487011418240f72292df698c40a1831ff7791ff9
5
5
  SHA512:
6
- metadata.gz: b034ba312e05484ca2585d3312e6ed0a1e305120f634cc331630b67cd964f5b7791ac7c31e1cffe0f48ab100d8a51c3d2909b70d14733acb13bf851ddddf77b6
7
- data.tar.gz: 50735443098590029652c18dce3b20e6ebb251acfd27320d9853bcfc8274d6ba0344d0bb507440c8af84a7625658028eee612b1774932d4355f0c12c1b369d50
6
+ metadata.gz: f7390e25288b043c110fdc3d4457f8ef954295ed328fc92323c90f61612eb4327aa55b9faaa5cc5354c5c084b5927b89573ebba93c190876b12703f877e9b336
7
+ data.tar.gz: 19f3f6388cd7eb6479efd3393d717ffd02791c1b234a53f74634c253430d99e286aa461208fc06cea0ff7be44eb3fcb04f4f2c5b8095dd919dbb431263bfa8c4
@@ -36,6 +36,16 @@ module SpecInfra
36
36
  "sudo -u #{user} -s /bin/test -#{access} #{file}"
37
37
  end
38
38
 
39
+ def check_installed(package, version=nil)
40
+ escaped_package = escape(package)
41
+ if version
42
+ cmd = "/usr/local/bin/brew info #{escaped_package} | grep -E '^\/usr\/local\/Cellar\/#{escaped_package}\/#{escape(version)}'"
43
+ else
44
+ cmd = "/usr/local/bin/brew list -1 | grep -E '^#{escaped_package}$'"
45
+ end
46
+ cmd
47
+ end
48
+
39
49
  def install(package)
40
50
  cmd = "brew install '#{package}'"
41
51
  end
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.0"
3
3
  end
data/wercker.yml CHANGED
@@ -26,6 +26,10 @@ build:
26
26
  name: Run vagrant up centos65
27
27
  code: vagrant up centos65 --provider=digital_ocean
28
28
  cwd: $WORKING_DIR
29
+ - script:
30
+ name: Run vagrant reload centos65
31
+ code: vagrant reload centos65
32
+ cwd: $WORKING_DIR
29
33
  - script:
30
34
  name: Run rake spec:centos65
31
35
  code: rake spec:centos65
@@ -34,6 +38,10 @@ build:
34
38
  name: Run vagrant up ubuntu1310
35
39
  code: vagrant up ubuntu1310 --provider=digital_ocean
36
40
  cwd: $WORKING_DIR
41
+ - script:
42
+ name: Run vagrant reload ubuntu1310
43
+ code: vagrant reload ubuntu1310
44
+ cwd: $WORKING_DIR
37
45
  - script:
38
46
  name: Run rake spec:ubuntu1310
39
47
  code: rake spec:ubuntu1310
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.8.0
4
+ version: 1.9.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-05-02 00:00:00.000000000 Z
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler