instana 1.9.1 → 1.9.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
  SHA256:
3
- metadata.gz: 4e778abc3a02b507d19a21a97a2f675492c8f3b0a9b330819681dec32fe5408f
4
- data.tar.gz: 7229ba517c01e1957b3e68263ec80e3f6c1641e2d786a66072c657fda81d84a6
3
+ metadata.gz: cfd06dbcdef17ee23af827a31d44a8164cf411741f6b1e24cf663db29525aa78
4
+ data.tar.gz: cd225402ace448611a928ea3d791f6e5b14a1f0ce84d466cceb9946a9cb79c40
5
5
  SHA512:
6
- metadata.gz: b0d1509d303d98ac8750a9adf09df794056cdf2ca12631ba079a681b9d7c0a346c14a81b78cd09b95684959f25adecc2a41dbbcb0075704ebcd22d6a85227942
7
- data.tar.gz: a8c0d8dab39ae7e2ce27e677855c9ed477f95fb7845a46d8a3edc56c442919d6387477d911ae5918bbd9d67a62871814d711ef7bc9f5703cb0dabcadde9cbd85
6
+ metadata.gz: c66287deebd47b616870b4bc662ce5036f0bcb107dc722935c0c8c9df63b6c7a7e0cba6df2d0a7114980e77419d6f4e9972995c5d9427bf4c9af710b6349749f
7
+ data.tar.gz: 8c44efe3ab78a4a889ed829ece255fae612e1b5438024253a4577960a7634d891011c0b750a210040c215f2838746d5451c860f4b98bbd57a7a5ae725db5be7d
data/instana.gemspec CHANGED
@@ -32,12 +32,12 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency('pry', '>= 0.10.0')
33
33
  spec.add_development_dependency('pry-byebug', '>= 3.0.0')
34
34
 
35
- spec.add_runtime_dependency('sys-proctable', '>= 1.2.0')
35
+ spec.add_runtime_dependency('sys-proctable', '>= 0.9.2')
36
36
  spec.add_runtime_dependency('get_process_mem', '>= 0.2.1')
37
37
  spec.add_runtime_dependency('timers', '>= 4.0.0')
38
- spec.add_runtime_dependency('oj', '~> 3.3')
38
+ spec.add_runtime_dependency('oj', '>=3.0.11')
39
39
 
40
40
  # Indirect dependency
41
41
  # https://github.com/instana/ruby-sensor/issues/10
42
- spec.add_runtime_dependency('ffi', '>= 1.8.1')
42
+ spec.add_runtime_dependency('ffi', '>=1.0.11')
43
43
  end
data/lib/instana/util.rb CHANGED
@@ -137,7 +137,19 @@ module Instana
137
137
  if File.exist?(cmdline_file)
138
138
  cmdline = IO.read(cmdline_file).split(?\x00)
139
139
  else
140
- cmdline = ProcTable.ps(:pid => Process.pid).cmdline.split(' ')
140
+ # Attempt to support older versions of sys-proctable and ffi.
141
+ #
142
+ # Alternatively we could use Sys::ProcTable::VERSION here but the
143
+ # consistency across historical versions is unknown. Alternative
144
+ # to the alternative, would be Ruby metaprogramming using the `arity`
145
+ # and `parameters` methods.
146
+ # e.g ProcTable.method(:ps).arity/parameters
147
+ if Gem.loaded_specs.key?("sys-proctable") &&
148
+ (Gem.loaded_specs["sys-proctable"].version >= Gem::Version.new("1.2.0"))
149
+ cmdline = ProcTable.ps(:pid => Process.pid).cmdline.split(' ')
150
+ else
151
+ cmdline = ProcTable.ps(Process.pid).cmdline.split(' ')
152
+ end
141
153
  end
142
154
 
143
155
  if RUBY_PLATFORM =~ /darwin/i
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.9.1"
2
+ VERSION = "1.9.2"
3
3
  VERSION_FULL = "instana-#{VERSION}"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-12 00:00:00.000000000 Z
11
+ date: 2019-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 1.2.0
103
+ version: 0.9.2
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 1.2.0
110
+ version: 0.9.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: get_process_mem
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -140,30 +140,30 @@ dependencies:
140
140
  name: oj
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '3.3'
145
+ version: 3.0.11
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: '3.3'
152
+ version: 3.0.11
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: ffi
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 1.8.1
159
+ version: 1.0.11
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 1.8.1
166
+ version: 1.0.11
167
167
  description: The Instana gem collects and reports Ruby metrics and distibuted traces
168
168
  to your Instana dashboard.
169
169
  email:
@@ -316,8 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  - !ruby/object:Gem::Version
317
317
  version: '0'
318
318
  requirements: []
319
- rubyforge_project:
320
- rubygems_version: 2.7.6
319
+ rubygems_version: 3.0.3
321
320
  signing_key:
322
321
  specification_version: 4
323
322
  summary: Ruby Distributed Tracing & Metrics Sensor for Instana