appsignal 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/CHANGELOG.md +3 -0
- data/Rakefile +16 -12
- data/circle.yml +7 -0
- data/ext/agent.yml +11 -11
- data/ext/extconf.rb +7 -7
- data/lib/appsignal/extension.rb +1 -1
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/extension_spec.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a97493676106452572f060f431a43d086d14f307
|
4
|
+
data.tar.gz: f08d472b67de0c9c60281534c89630610c8ff3ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f64225eb581be6726079d4e68d74f4060e28d3c53a648a3863871d0a7cf4ed44ecb294a94e4e61658436a7be3fb6a036a0fc0b13b698f6a0d3335471f59aaac
|
7
|
+
data.tar.gz: 8d312bcadddab44f10ccd60e2490a832e39e46187dd7f3176ab4859c00dc883fbdb8acaa0a2315870f1d2a8323ddb28c6386e1252ef99fcb4e9c6de36d5a17bb
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -24,12 +24,12 @@ RUBY_VERSIONS = %w(
|
|
24
24
|
)
|
25
25
|
|
26
26
|
EXCLUSIONS = {
|
27
|
-
'rails-5.0' => %w( 1.9.3
|
27
|
+
'rails-5.0' => %w( 1.9.3 2.0.0 2.1.8)
|
28
28
|
}
|
29
29
|
|
30
30
|
VERSION_MANAGERS = {
|
31
|
-
:rbenv =>
|
32
|
-
:rvm =>
|
31
|
+
:rbenv => lambda { |version| "rbenv local #{version}" },
|
32
|
+
:rvm => lambda { |version| "rvm use --default #{version.split('-').first}" }
|
33
33
|
}
|
34
34
|
|
35
35
|
task :publish do
|
@@ -103,7 +103,7 @@ task :publish do
|
|
103
103
|
end
|
104
104
|
|
105
105
|
task :install do
|
106
|
-
system 'cd ext && rm -f libappsignal.a && ruby extconf.rb && make
|
106
|
+
system 'cd ext && rm -f libappsignal.a appsignal-agent appsignal_extension.h Makefile appsignal_extension.bundle && ruby extconf.rb && make && cd ..'
|
107
107
|
GEMFILES.each do |gemfile|
|
108
108
|
system "bundle --gemfile gemfiles/#{gemfile}.gemfile"
|
109
109
|
end
|
@@ -119,7 +119,7 @@ end
|
|
119
119
|
task :generate_bundle_and_spec_all do
|
120
120
|
VERSION_MANAGERS.each do |version_manager, switch_command|
|
121
121
|
out = []
|
122
|
-
if version_manager ==
|
122
|
+
if version_manager == :rvm
|
123
123
|
out << '#!/bin/bash --login'
|
124
124
|
else
|
125
125
|
out << '#!/bin/sh'
|
@@ -127,14 +127,17 @@ task :generate_bundle_and_spec_all do
|
|
127
127
|
out << 'rm -f .ruby-version'
|
128
128
|
out << "echo 'Using #{version_manager}'"
|
129
129
|
RUBY_VERSIONS.each do |version|
|
130
|
-
|
131
|
-
out << "
|
132
|
-
out <<
|
130
|
+
short_version = version.split('-').first
|
131
|
+
out << "echo 'Switching to #{short_version}'"
|
132
|
+
out << "#{switch_command.call(version)} || { echo 'Switching Ruby failed'; exit 1; }"
|
133
|
+
out << "ruby -v"
|
134
|
+
out << "echo 'Compiling extension'"
|
135
|
+
out << 'cd ext && rm -f appsignal-agent appsignal_extension.bundle appsignal_extension.h libappsignal.a Makefile && ruby extconf.rb && make && cd ..'
|
133
136
|
GEMFILES.each do |gemfile|
|
134
|
-
unless EXCLUSIONS[gemfile] && EXCLUSIONS[gemfile].include?(
|
135
|
-
out << "echo 'Bundling #{gemfile} in #{
|
137
|
+
unless EXCLUSIONS[gemfile] && EXCLUSIONS[gemfile].include?(short_version)
|
138
|
+
out << "echo 'Bundling #{gemfile} in #{short_version}'"
|
136
139
|
out << "bundle --quiet --gemfile gemfiles/#{gemfile}.gemfile || { echo 'Bundling failed'; exit 1; }"
|
137
|
-
out << "echo 'Running #{gemfile} in #{
|
140
|
+
out << "echo 'Running #{gemfile} in #{short_version}'"
|
138
141
|
out << "env BUNDLE_GEMFILE=gemfiles/#{gemfile}.gemfile bundle exec rspec || { echo 'Running specs failed'; exit 1; }"
|
139
142
|
end
|
140
143
|
end
|
@@ -142,7 +145,8 @@ task :generate_bundle_and_spec_all do
|
|
142
145
|
out << 'rm -f .ruby-version'
|
143
146
|
out << "echo 'Successfully ran specs for all environments'"
|
144
147
|
|
145
|
-
script = "bundle_and_spec_all_#{version_manager}
|
148
|
+
script = "bundle_and_spec_all_#{version_manager}"
|
149
|
+
FileUtils.rm_f(script)
|
146
150
|
File.open(script, 'w') do |file|
|
147
151
|
file.write out.join("\n")
|
148
152
|
end
|
data/circle.yml
ADDED
data/ext/agent.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
|
2
|
+
version: 9e5359a
|
3
|
+
triples:
|
4
4
|
x86_64-linux:
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
checksum: cafe3e12730619db156edc7d36ce4c6e7a367fba94dcb509c0373e46beeacc00
|
6
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9e5359a/appsignal-agent-x86_64-linux-static.tar.gz
|
7
|
+
lib_filename: libappsignal.a
|
8
8
|
i686-linux:
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
checksum: 4f5453174877e5bbc61e686eadfd741870eb5ed7713a405440ba8cfa77a884d8
|
10
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9e5359a/appsignal-agent-i686-linux-static.tar.gz
|
11
|
+
lib_filename: libappsignal.a
|
12
12
|
x86_64-darwin:
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
checksum: 19d974f0ce1c8e1e296f631876f050992b2de055e0f835c07a811da6513c621d
|
14
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9e5359a/appsignal-agent-x86_64-darwin-static.tar.gz
|
15
|
+
lib_filename: libappsignal.a
|
data/ext/extconf.rb
CHANGED
@@ -30,7 +30,7 @@ end
|
|
30
30
|
def install
|
31
31
|
logger.info "Installing appsignal agent for Ruby #{RUBY_VERSION} on #{RUBY_PLATFORM}"
|
32
32
|
|
33
|
-
unless AGENT_CONFIG[
|
33
|
+
unless AGENT_CONFIG['triples'].keys.include?(ARCH)
|
34
34
|
installation_failed(
|
35
35
|
"AppSignal currently does not support your system architecture (#{ARCH})." \
|
36
36
|
"Please let us know at support@appsignal.com, we aim to support everything our customers run."
|
@@ -38,21 +38,21 @@ def install
|
|
38
38
|
return
|
39
39
|
end
|
40
40
|
|
41
|
-
arch_config = AGENT_CONFIG[
|
41
|
+
arch_config = AGENT_CONFIG['triples'][ARCH]
|
42
42
|
|
43
43
|
unless File.exists?(ext_path('appsignal-agent')) &&
|
44
|
-
File.exists?(ext_path(arch_config[
|
44
|
+
File.exists?(ext_path(arch_config['lib_filename'])) &&
|
45
45
|
File.exists?(ext_path('appsignal_extension.h'))
|
46
|
-
logger.info "Downloading agent release from #{arch_config[
|
46
|
+
logger.info "Downloading agent release from #{arch_config['download_url']}"
|
47
47
|
|
48
|
-
archive = open(arch_config[
|
48
|
+
archive = open(arch_config['download_url'])
|
49
49
|
|
50
|
-
if Digest::SHA256.hexdigest(archive.read) == arch_config[
|
50
|
+
if Digest::SHA256.hexdigest(archive.read) == arch_config['checksum']
|
51
51
|
logger.info 'Checksum of downloaded archive verified, extracting archive'
|
52
52
|
else
|
53
53
|
installation_failed(
|
54
54
|
"Aborting installation, checksum of downloaded archive could not be verified: " \
|
55
|
-
"Expected '#{arch_config[
|
55
|
+
"Expected '#{arch_config['checksum']}', got '#{checksum}'."
|
56
56
|
)
|
57
57
|
return
|
58
58
|
end
|
data/lib/appsignal/extension.rb
CHANGED
data/lib/appsignal/version.rb
CHANGED
@@ -5,8 +5,8 @@ describe "extension loading and operation" do
|
|
5
5
|
describe ".agent_config" do
|
6
6
|
subject { Appsignal::Extension.agent_config }
|
7
7
|
|
8
|
-
it { should have_key(
|
9
|
-
it { should have_key(
|
8
|
+
it { should have_key('version') }
|
9
|
+
it { should have_key('triples') }
|
10
10
|
end
|
11
11
|
|
12
12
|
describe ".agent_version" do
|
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.
|
4
|
+
version: 1.0.1
|
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-01-
|
12
|
+
date: 2016-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- appsignal.gemspec
|
130
130
|
- benchmark.rake
|
131
131
|
- bin/appsignal
|
132
|
+
- circle.yml
|
132
133
|
- ext/agent.yml
|
133
134
|
- ext/appsignal_extension.c
|
134
135
|
- ext/extconf.rb
|