mind_control 0.1.0 → 0.1.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: 9d3b0a0e916eeadf4ef8d8d7bf4ceafe05c45fcf
4
- data.tar.gz: f93222fed2eb383935dfc31b8bdebbf5386652b4
3
+ metadata.gz: ae35290f4f7d0100c3ca8bf7df326d629c9a928a
4
+ data.tar.gz: 153d9050ab124979dceccfc64f059f5abc492473
5
5
  SHA512:
6
- metadata.gz: dea7601b54a74ac38a745dbf604a537f079f87f16c011e5bb4890be00ce1d677e1d3bac34a1c40ed44bd9435af3cc6ce3bb8ef56a863e7ebf8ba15c9bbe9e038
7
- data.tar.gz: 22ba438dfddb4cbac25c4192889a5491af89041e63bd22b4f85a3302f48457a72aafc7e76b5e556279aebb713343fe768a5a7195bd9b4a4ba401f25465520abb
6
+ metadata.gz: 987c0e69ef53d7a4362142fdbf52875d871254c7732831b41fa88f77fd95438b3acc8cae598c52d3012a4c44022a316b9e8f7e1f84503558f00fe044def62ce5
7
+ data.tar.gz: e54ab48fb9883a0b2c149f9ff0dbf77cfb3c9f5e44acb4750e80d430fe76a0748f10403327bab4895ff2ea80109ad2245c302192d7ae4db419e16de3a1c83c11
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module MindControl
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
data/lib/mind_control.rb CHANGED
@@ -34,6 +34,9 @@ module MindControl
34
34
  # The default is process name of the host program (eg. "ruby").
35
35
  process_name = options[ :name ] || $PROGRAM_NAME
36
36
 
37
+ # Make name filesystem safe
38
+ process_name.gsub! /[^[[:alnum:]]\-_]/, "_"
39
+
37
40
  # Some shared temp directory for sockets.
38
41
  socket_dir = options[ :sockets_dir ] || DEFAULT_SOCKETS_DIR
39
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mind_control
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Diachkov