appsignal 1.0.5.beta.3 → 1.0.5.beta.4

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: c11d01582a42d050f75ede7b8b0fbd0736e2c600
4
- data.tar.gz: 049e4b5c7728b3dc1efbc3a20527b70d8b9cb5cd
3
+ metadata.gz: e3909b435c213f05b56ebf19ab271f3950b56933
4
+ data.tar.gz: 6d35f9aa371394bfe50f6b45d534f63a504684ed
5
5
  SHA512:
6
- metadata.gz: d9ffe4b983a86b8b38e9d15969c9887c494311336470648f66837e0a70e4c58ae5fe92a6dd037e0bed8523befab31e0affd439515d1e9f520a29a034953f50a8
7
- data.tar.gz: 1a808810e53ba4a781b93fc0f1c44ef4509c927df2b4f661cdff1497d0da8d41e61e1d5f5e4958644c15e42f4bef850b700aa47551c921ae529a699beca32138
6
+ metadata.gz: c96e6efc5e0a1492db16ccfb4da3af5b41942cdf5a849bc81ce4b46b01552fac592ddebba6bc7986e4df4014330db40e677a0789a0a5980f43817d4dbc4f6b63
7
+ data.tar.gz: e75cc1ec2fd6954482f0a9b333874b7b748770830284643743f41d5da32ee9701d33c08ca1710b86964ac29782002167c8a4231f32d9940817e9dd57d1c0ff2d
@@ -3,6 +3,7 @@
3
3
  * Improved mongoid/mongodb sanitization
4
4
  * Minor performance improvements
5
5
  * Better handling for non-utf8 convertable strings
6
+ * Make gem installable (but not functional) on jRuby
6
7
 
7
8
  # 1.0.4
8
9
  * Make working dir configurable using `APPSIGNAL_WORKING_DIR_PATH` or `:working_dir_path`
@@ -1,6 +1,5 @@
1
1
  require 'digest'
2
2
  require 'logger'
3
- require 'mkmf'
4
3
  require 'fileutils'
5
4
  require 'open-uri'
6
5
  require 'zlib'
@@ -30,6 +29,13 @@ end
30
29
  def install
31
30
  logger.info "Installing appsignal agent #{Appsignal::VERSION} for Ruby #{RUBY_VERSION} on #{RUBY_PLATFORM}"
32
31
 
32
+ if RUBY_PLATFORM =~ /java/
33
+ installation_failed(
34
+ "We do not support jRuby at the moment, email support@appsignal.com if you want to join the beta"
35
+ )
36
+ return
37
+ end
38
+
33
39
  unless AGENT_CONFIG['triples'].keys.include?(ARCH)
34
40
  installation_failed(
35
41
  "AppSignal currently does not support your system architecture (#{ARCH})." \
@@ -70,13 +76,14 @@ def install
70
76
  end
71
77
 
72
78
  logger.info "Creating makefile"
79
+ require 'mkmf'
73
80
  if find_library('appsignal', 'appsignal_start', EXT_PATH) &&
74
81
  find_executable('appsignal-agent', EXT_PATH) &&
75
82
  find_header('appsignal_extension.h', EXT_PATH)
76
83
  create_makefile 'appsignal_extension'
77
84
  logger.info 'Successfully installed appsignal extension'
78
85
  else
79
- installation_failed "Aborting installation, extension files were not present"
86
+ installation_failed "Aborting installation, extension files were not present or could not be loaded"
80
87
  end
81
88
  rescue => ex
82
89
  installation_failed "Exception while installing: #{ex}"
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.0.5.beta.3'
4
+ VERSION = '1.0.5.beta.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5.beta.3
4
+ version: 1.0.5.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-09 00:00:00.000000000 Z
12
+ date: 2016-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack