diffend 0.2.27 → 0.2.28

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
  SHA256:
3
- metadata.gz: f6539b727e33d38eb0b3fb6f38f25c3fd2abda05f337f50af2db1fe135575510
4
- data.tar.gz: c6808082290c195a846117fd4c16a4fa4cb20f65cc289cbadbd71532f8ae5713
3
+ metadata.gz: 0c100adca589f5e4e22488ecc8d12a865b2ec8a5bb6be4bf15f3b4bf5d5ad089
4
+ data.tar.gz: 8e5820badb850ee24606874e8de80a8e19114a08276f9fca3933a54e4fb825bc
5
5
  SHA512:
6
- metadata.gz: 9eb4e7749b9a9a0824770921d150e180ed5b40ba19a7f22d1f65154474347110221dc96049c2b4b5d7136c850c5775c07bc4e840b005dda13043742ac74238d2
7
- data.tar.gz: 427d6b00c913174e535de300020f8fe715bda9b3f946f1fbe25906dfa734bb4dd3c349735470fbacb9740c287dd5252bcf6b481e40120daba3138afda6f334e9
6
+ metadata.gz: 70b2798f074676511abc75974db24ee116dcbf9fc87983a4cfc6d9e69246c12b0970c376ced03e08a6fb0a9ba09fa9cd11a3da5d728715c6ec676030bd7ebccd
7
+ data.tar.gz: fd130a1283b65d6487bab7323eb2a7d7c9d3db6cea7c777e4c7a023f77e9b0d0ee4078cd38c9228fe18b1555ee9e9ec9efd0fa1033a7c8ed5e19859cb8e11970
@@ -1,2 +1,2 @@
1
- �Ęk�oش�_��Ip��BGZ�hήO���D[���S�;��o��x�"Q�������#I� ir h����H��o�� ��E��R^��[Ñ~����fg*��ᢩ{H-�s'�:��2cINX��r]w˛� qo���$��_�5�9��.G�H�P
2
- ������2��LE>��=�L$6�;Y��{���`{�=��G���_�JĬ��V{#jB-G!b��*{T9= ��_cC��7��̂̈́V9>m*Fs���� 0���0�$�X�:u4��� ��"�5D��{K9CIz` �K�1��O�P��Py��Ѱ�3����\���_����S:��<;�vA����9 �;�@�+#�&�
1
+ Z�X��ԯ���.��#}C*��4p&$��>��o��XHv4�ъ�$\Ǐ?�w�^�4K��.�da p Dȴ�[��p9k��9�!]�<�9��0[���u*��&z.���6] i\#�ز�"nM��w���]�~Tb�0��k8ĩJ�~l�e*�x!�(�����f��2q cs���D`�#şF ��m.5 ͩl,���>J���TA7�SO����I�yP3��eݥ��Үu�����EJ���>�S`� �7�~��s�$[���w�U�'����QY����V�㑩OiW�+5��S}������[�H��Ö=�L3
2
+ E��V��uc3�B�lϴEY�1��6�����JV
data.tar.gz.sig CHANGED
Binary file
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased][master]
4
4
 
5
+ ## [0.2.28] (2020-09-19)
6
+ - start `Diffend::Monitor` only if not in development or test ([#44](https://github.com/diffend-io/diffend-ruby/pull/44))
7
+ - better host command expose ([#45](https://github.com/diffend-io/diffend-ruby/pull/45))
8
+
5
9
  ## [0.2.27] (2020-09-16)
6
10
  - introduce `Diffend::RequestObject` ([#40](https://github.com/diffend-io/diffend-ruby/pull/40))
7
11
  - clean up error codes and introduce `DIFFEND_INGORE_EXCEPTIONS` ([#41](https://github.com/diffend-io/diffend-ruby/pull/41))
@@ -60,7 +64,8 @@
60
64
 
61
65
  - initial release
62
66
 
63
- [master]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.27...HEAD
67
+ [master]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.28...HEAD
68
+ [0.2.28]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.27...v0.2.28
64
69
  [0.2.27]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.26...v0.2.27
65
70
  [0.2.26]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.25...v0.2.26
66
71
  [0.2.25]: https://github.com/diffend-io/diffend-ruby/compare/v0.2.24...v0.2.25
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- diffend (0.2.27)
4
+ diffend (0.2.28)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -29,7 +29,7 @@
29
29
  # Diffend main namespace
30
30
  module Diffend
31
31
  # Current plugin version
32
- VERSION = '0.2.27'
32
+ VERSION = '0.2.28'
33
33
  # Diffend homepage
34
34
  HOMEPAGE = 'https://diffend.io'
35
35
 
@@ -22,7 +22,9 @@
22
22
  versions/remote
23
23
  ].each { |file| require "diffend/voting/#{file}" }
24
24
 
25
- Thread.new do
26
- track = Diffend::Track.new
27
- track.start
25
+ unless %w[development test].include?(ENV['DIFFEND_ENV'])
26
+ Thread.new do
27
+ track = Diffend::Track.new
28
+ track.start
29
+ end
28
30
  end
@@ -162,10 +162,16 @@ module Diffend
162
162
  #
163
163
  # @return [Hash]
164
164
  def build_host_command
165
- {
166
- 'name' => $PROGRAM_NAME.split('/').last.strip,
167
- 'options' => ARGV.join(' ')
168
- }
165
+ if File.exist?($PROGRAM_NAME)
166
+ array = `ps -p #{Process.pid} -o command=`.strip.split(' ')
167
+ array.shift if array.first.end_with?('bin/ruby')
168
+ name = array.shift.split('/').last.strip
169
+ command = "#{name} #{array.join(' ')}"
170
+
171
+ { 'name' => command, 'title' => '' }
172
+ else
173
+ { 'name' => ARGV.join(' '), 'title' => $PROGRAM_NAME }
174
+ end
169
175
  end
170
176
 
171
177
  # Build host ips, except localhost and loopback
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diffend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.27
4
+ version: 0.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Pajor
@@ -34,7 +34,7 @@ cert_chain:
34
34
  9MmF6uCQa1EjK2p8tYT0MnbHrFkoehxdX4VO9y99GAkhZyJNKPYPtyAUFV27sT2V
35
35
  LfCJRk4ifKIN/FUCwDSn8Cz0m6oH265q0p6wdzI6qrWOjP8tGOMBTA==
36
36
  -----END CERTIFICATE-----
37
- date: 2020-09-16 00:00:00.000000000 Z
37
+ date: 2020-09-19 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: bundler
metadata.gz.sig CHANGED
Binary file