mpv 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29da0d1a24212c4800d44aa02dd16049cdb5f141
4
- data.tar.gz: 0262da5e385cb0ff7b9033b0aabdaacc210a55cc
3
+ metadata.gz: e5ed13792f8ad422553645912a940852844ddb28
4
+ data.tar.gz: da4612449029835f8099dda59096494045033c12
5
5
  SHA512:
6
- metadata.gz: 2dcf8821cea06930d43d6453d9804002d3e45ebb2e18e933e0ff33937f6dab753a8bd218504f7620ba0e5e455ebff31d1dcb14d1ef56761a1856c0faa7d8583c
7
- data.tar.gz: c45b063e7a1d6e9ac9ed0441cffd2181627da9692a0bd9060ec8e60862851df3cc4f331e472b2a1096a193b5f6c0e9128dffc46dbd89ec6f7af112261d06d954
6
+ metadata.gz: c71bdf9ee462dcea6fcd2640d341165ceaffa79624ae74dee7f4915b834e6595a9a8b321436e52ef353a6d2e53a2b3b8bdb998228a5bbc3d231532719e043325
7
+ data.tar.gz: b7f3d3bc2559a194f6c77bd9daa5bfed88dec12c54dc2053e581d7be339f07dba721cd04dd912036826cc22b414a664a9baf9345d82f6ee7f1796751ddaa82fd
data/lib/mpv.rb CHANGED
@@ -9,5 +9,5 @@ require_relative "mpv/session"
9
9
  # The toplevel namespace for ruby-mpv.
10
10
  module MPV
11
11
  # The current version of ruby-mpv.
12
- VERSION = "3.0.0"
12
+ VERSION = "3.0.1"
13
13
  end
@@ -52,9 +52,7 @@ module MPV
52
52
  # (defaults to a tmpname in `/tmp`)
53
53
  # @param user_args [Array<String>] additional arguments to use when
54
54
  # spawning mpv
55
- def initialize(path: Dir::Tmpname.make_tmpname("/tmp/mpv", ".sock"),
56
- user_args: [])
57
-
55
+ def initialize(path: File.join('/tmp', Utils.tmpsock), user_args: [])
58
56
  @socket_path = path
59
57
  @args = [
60
58
  "--idle",
@@ -21,8 +21,7 @@ module MPV
21
21
  # (defaults to a tmpname in `/tmp`)
22
22
  # @param user_args [Array<String>] additional arguments to use when
23
23
  # spawning mpv
24
- def initialize(path: Dir::Tmpname.make_tmpname("/tmp/mpv", ".sock"),
25
- user_args: [])
24
+ def initialize(path: File.join('/tmp', Utils.tmpsock), user_args: [])
26
25
  @socket_path = path
27
26
 
28
27
  @server = Server.new(path: @socket_path, user_args: user_args)
@@ -12,5 +12,10 @@ module MPV
12
12
  File.executable?(File.join(path, util))
13
13
  end
14
14
  end
15
+
16
+ def self.tmpsock
17
+ t = Time.now.strftime("%Y%m%d")
18
+ "mpv#{t}-#{$$}-#{rand(0x100000000).to_s(36)}.sock"
19
+ end
15
20
  end
16
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpv
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-30 00:00:00.000000000 Z
11
+ date: 2018-02-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for creating and controlling mpv instances.
14
14
  email: william@tuffbizz.com
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  version: '0'
46
46
  requirements: []
47
47
  rubyforge_project:
48
- rubygems_version: 2.6.11
48
+ rubygems_version: 2.6.13
49
49
  signing_key:
50
50
  specification_version: 4
51
51
  summary: mpv - A ruby library for controlling mpv processes.