ass_launcher 0.3.1 → 0.3.2

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: 5ce5f130ca948ee87e4ab6c108e4af1068cae5b5
4
- data.tar.gz: 5f6918afd82336020a57dc0c4c8af65ed192b51e
3
+ metadata.gz: 373d693ca8f89ef9add4bd3509c4b33db81bd15a
4
+ data.tar.gz: cb0139e84f94d44a6aafa883749f1f4135e0b9fb
5
5
  SHA512:
6
- metadata.gz: b1477d0459019b54d22c00c888e51ff39e7185bede03fde5c5e78a36d75ab3b7eb9e75c4dea6380d930c848f5e9aa4bc1c572073f79f7936290bb8c50532c98d
7
- data.tar.gz: 8043d1209749b63fab1db9a68680298940a23180d7ea3c3651be3f6dd9d37405686fc8caa0b105259a6e6b53ff9de7bea0b1434ec7ff8b918e64877bf4f99524
6
+ metadata.gz: b35f33f8eba865b49c417126ce452f3bed61f21e4d18b67789c23224503f38de52a5516a0d3d8cb3145e88b8f6bbc7fdb31adff584f1a65c0b99b7db1c684bfa
7
+ data.tar.gz: b2216677d4547f9d1b46ff5f7d0e02d719a8fb6f0c5efd52caedd5db9bd6cbb39571c1b5a70026a338904beb83debc069ef51d0ebbe9ccd646d7eaa399dc8633
data/.codeclimate.yml ADDED
@@ -0,0 +1,3 @@
1
+ engines:
2
+ rubocop:
3
+ enabled: false
@@ -35,14 +35,14 @@ module AssLauncher
35
35
  # (see Rpm.version)
36
36
  def self.version(file)
37
37
  pkg = pkg(file)
38
- out = `apt-cache policy #{pkg} | grep -i installed:`
39
- v = out.strip.split(':')[1].strip.gsub('-', '.')
40
- Gem::Version.new(v)
38
+ return if pkg.to_s.empty?
39
+ out = `dpkg-query --showformat '${Version}' --show #{pkg}`.strip
40
+ Gem::Version.new(out.gsub('-', '.'))
41
41
  end
42
42
 
43
43
  # (see Rpm.version)
44
44
  def self.pkg(file)
45
- `dpkg -S #{file}`.strip.split(':')[0]
45
+ out = `dpkg -S #{file}`.strip.split(': ')[0]
46
46
  end
47
47
 
48
48
  # (see Rpm.manager?)
@@ -1,5 +1,5 @@
1
1
  module AssLauncher
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  module KNOWN_ENTERPRISE_VERSIONS
4
4
  require 'ass_launcher/enterprise/cli_defs_loader'
5
5
  extend AssLauncher::Enterprise::CliDefsLoader
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ass_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Vlasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile
@@ -200,6 +200,7 @@ executables:
200
200
  extensions: []
201
201
  extra_rdoc_files: []
202
202
  files:
203
+ - ".codeclimate.yml"
203
204
  - ".gitignore"
204
205
  - ".rubocop.yml"
205
206
  - ".simplecov"