mikeplayer 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: 121090e98631767a7c640e074f662732b39c4593bd30270c0d9f816a7833bb3f
4
- data.tar.gz: 618b4294b29fa83a8263530cee8c480e050c3ce56be457086933366aef08977e
3
+ metadata.gz: 44526118ece6d69a3b2711ec7595ebf65da59a0729e49439b663b8c28d0db6ac
4
+ data.tar.gz: fd2a73b35a0d17a834f098a92a8f34485bb67e4d68a7889d05389626f0ea9560
5
5
  SHA512:
6
- metadata.gz: e666ab907816480ede76ad2d4e215116ec920c2ce0152d44687177675ecfb484c94de13b897006f2e110bb89f2c81039abb363a52ea6c43f1ace3e48a19c341a
7
- data.tar.gz: ac571aae2fc74fcef162583c50924a4e8e81dd7ccd141503d9de47e8fbf03898bd6fc8aa2482875068a477ae13fa9ef9a882d7d5379285ee5b9259a19675615f
6
+ metadata.gz: 1642c31f25824a61692fb4c7a8a0d8b1d61c06369ae7ccb85f231a82fbe3c6f62d7c30e7dbbaf77751fb72f0abc67cfa6b2cabacc795f0eb08bf592db0af8b53
7
+ data.tar.gz: 37491c892b710fd8984da1bf95995043a1c7569d04c34856d4b136b00242644f3dc6692088cd75e003749296a838b160f6886ef1907e257abd0d32a490e343ea
@@ -88,11 +88,17 @@ module MikePlayer
88
88
  end
89
89
 
90
90
  def self.cmd_exist?(cmd)
91
- if (true != system('command'))
92
- raise "Missing 'command' command, which is used to test compatibility."
91
+ if @test_cmd.nil?
92
+ if system('command')
93
+ @test_cmd = 'command -v'
94
+ elsif system('bash -c "command"')
95
+ @test_cmd = 'bash -c "command -v"'
96
+ else
97
+ raise "Missing 'command' command, which is used to test compatibility."
98
+ end
93
99
  end
94
100
 
95
- if (true != system("command -v #{cmd} >/dev/null 2>&1"))
101
+ if (true != system("#{@test_cmd} #{cmd} >/dev/null 2>&1"))
96
102
  return false
97
103
  end
98
104
 
@@ -1,3 +1,3 @@
1
1
  module MikePlayer
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikeplayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Crockett
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -113,7 +113,7 @@ homepage: https://github.com/mmcrockett/mikeplayer
113
113
  licenses:
114
114
  - MIT
115
115
  metadata: {}
116
- post_install_message:
116
+ post_install_message:
117
117
  rdoc_options: []
118
118
  require_paths:
119
119
  - lib
@@ -128,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.1.2
132
- signing_key:
131
+ rubygems_version: 3.1.4
132
+ signing_key:
133
133
  specification_version: 4
134
134
  summary: Wraps Sox's `play` command, allowing playslists, find, random and time limit.
135
135
  test_files: []