specinfra 2.0.0.beta46 → 2.0.0.beta47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/command/base/package.rb +1 -1
- data/lib/specinfra/version.rb +1 -1
- data/spec/command/base/package_spec.rb +7 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a484b18deb5a7c3741669f1e31036b9b4e8175e4
|
4
|
+
data.tar.gz: 43f6be61279cd7e7a97e083fce8db300050f1ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1569faa6cdd2f048747c902d0f7ac6804c4fa2c27fcde68cc57f87a17363578a9fae55cf8bcd531d96fd3dc44efb953d410e5f25e2662ea016fdacaa0a2894fc
|
7
|
+
data.tar.gz: 152313739da25255bde4adf19b52c27d5568224d52638c38d49166964bd0a83901e6de3338939f592bd844d3612ce737a21ce3290b46f38280c23f5ac775c0d6
|
@@ -3,7 +3,7 @@ class Specinfra::Command::Base::Package < Specinfra::Command::Base
|
|
3
3
|
def check_is_installed_by_gem(name, version=nil)
|
4
4
|
regexp = "^#{name}"
|
5
5
|
cmd = "gem list --local | grep -w -- #{escape(regexp)}"
|
6
|
-
cmd =
|
6
|
+
cmd = %Q!#{cmd} | grep -w -- "[( ]#{escape(version)}[,)]"! if version
|
7
7
|
cmd
|
8
8
|
end
|
9
9
|
|
data/lib/specinfra/version.rb
CHANGED
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: 2.0.0.
|
4
|
+
version: 2.0.0.beta47
|
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-09-
|
11
|
+
date: 2014-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -328,6 +328,7 @@ files:
|
|
328
328
|
- spec/backend/ssh/build_command_spec.rb
|
329
329
|
- spec/command/base/file_spec.rb
|
330
330
|
- spec/command/base/localhost_spec.rb
|
331
|
+
- spec/command/base/package_spec.rb
|
331
332
|
- spec/command/base/user_spec.rb
|
332
333
|
- spec/command/debian/service_spec.rb
|
333
334
|
- spec/command/factory_spec.rb
|
@@ -375,6 +376,7 @@ test_files:
|
|
375
376
|
- spec/backend/ssh/build_command_spec.rb
|
376
377
|
- spec/command/base/file_spec.rb
|
377
378
|
- spec/command/base/localhost_spec.rb
|
379
|
+
- spec/command/base/package_spec.rb
|
378
380
|
- spec/command/base/user_spec.rb
|
379
381
|
- spec/command/debian/service_spec.rb
|
380
382
|
- spec/command/factory_spec.rb
|