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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7cf4d3d92b5e67aff267fd1880d628c2dc4ba659
4
- data.tar.gz: 68949bc1100768cb6077257b5fe68ae9d04b35e3
3
+ metadata.gz: a97493676106452572f060f431a43d086d14f307
4
+ data.tar.gz: f08d472b67de0c9c60281534c89630610c8ff3ea
5
5
  SHA512:
6
- metadata.gz: b812cb56ebaaac9a3f2a78491e632fcc94610489d8f0270b750287cffd019f9b0aaadf71b72def6295a01e0b0a8d4fe164614be928b73cd7dcc64cb99e96b857
7
- data.tar.gz: 876865353b48096685c24b3c4d3fc19c1fa285cee138fd444408fb80a32f20770734bf0fef8fd119678d9567b4e86b20fa2422effe9f887164d9345004b8f5ff
6
+ metadata.gz: 3f64225eb581be6726079d4e68d74f4060e28d3c53a648a3863871d0a7cf4ed44ecb294a94e4e61658436a7be3fb6a036a0fc0b13b698f6a0d3335471f59aaac
7
+ data.tar.gz: 8d312bcadddab44f10ccd60e2490a832e39e46187dd7f3176ab4859c00dc883fbdb8acaa0a2315870f1d2a8323ddb28c6386e1252ef99fcb4e9c6de36d5a17bb
data/.gitignore CHANGED
@@ -19,8 +19,8 @@ Gemfile.lock
19
19
  gemfiles/*.lock
20
20
  .DS_Store
21
21
  .ruby-version
22
- bundle_and_spec_all_rbenv.sh
23
- bundle_and_spec_all_rvm.sh
22
+ bundle_and_spec_all_rbenv
23
+ bundle_and_spec_all_rvm
24
24
  ext/libappsignal.*
25
25
  ext/appsignal-agent
26
26
  ext/appsignal_extension.h
@@ -1,3 +1,6 @@
1
+ # 1.0.1
2
+ * Fix for bug in gem initialization when using `safe_yaml` gem
3
+
1
4
  # 1.0.0
2
5
  * New version of event formatting and collection
3
6
  * Use native library and agent
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-p551 2.0.0-p648 2.1.8)
27
+ 'rails-5.0' => %w( 1.9.3 2.0.0 2.1.8)
28
28
  }
29
29
 
30
30
  VERSION_MANAGERS = {
31
- :rbenv => 'rbenv local',
32
- :rvm => 'rvm use'
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 clean && make && cd ..'
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 == 'rvm use'
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
- out << "echo 'Switching to #{version}'"
131
- out << "#{switch_command} #{version} || { echo 'Switching Ruby failed'; exit 1; }"
132
- out << 'cd ext && rm -f libappsignal.a && ruby extconf.rb && make clean && make && cd ..'
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?(version)
135
- out << "echo 'Bundling #{gemfile} in #{version}'"
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 #{version}'"
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}.sh"
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
@@ -0,0 +1,7 @@
1
+ dependencies:
2
+ override:
3
+ - rake generate_bundle_and_spec_all
4
+
5
+ test:
6
+ override:
7
+ - ./bundle_and_spec_all_rvm
@@ -1,15 +1,15 @@
1
1
  ---
2
- :version: 9e5359a
3
- :triples:
2
+ version: 9e5359a
3
+ triples:
4
4
  x86_64-linux:
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
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
- :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
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
- :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
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
@@ -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[:triples].keys.include?(ARCH)
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[:triples][ARCH]
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[:lib_filename])) &&
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[:download_url]}"
46
+ logger.info "Downloading agent release from #{arch_config['download_url']}"
47
47
 
48
- archive = open(arch_config[:download_url])
48
+ archive = open(arch_config['download_url'])
49
49
 
50
- if Digest::SHA256.hexdigest(archive.read) == arch_config[:checksum]
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[:checksum]}', got '#{checksum}'."
55
+ "Expected '#{arch_config['checksum']}', got '#{checksum}'."
56
56
  )
57
57
  return
58
58
  end
@@ -20,7 +20,7 @@ module Appsignal
20
20
  end
21
21
 
22
22
  def self.agent_version
23
- agent_config[:version]
23
+ agent_config['version']
24
24
  end
25
25
  end
26
26
  end
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -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(:version) }
9
- it { should have_key(:triples) }
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.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 00:00:00.000000000 Z
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