appsignal 2.9.12.beta.0 → 2.9.18.beta.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
- SHA1:
3
- metadata.gz: b94867bfd3b9d7a22df3651a6abcbc62997e1694
4
- data.tar.gz: 58351ee113e236ef6d7c94e2faf3db5efac0f53c
2
+ SHA256:
3
+ metadata.gz: 497a4a7b4a8d6a2d195f7e509a0a270f75e06a244c662d8294ad9f2b41c6401b
4
+ data.tar.gz: e583e62d155c23794a4e29728be90d8d04cb5c92c6f33970c6f97ea0b9a97e89
5
5
  SHA512:
6
- metadata.gz: b1ef435902580238f0798e1a982d6f3f4fc781ecaf85a990cfaa45a9d4b8c2713325e94f9ee9e9a048ad4f1029bf8e8d08e398ecab4db3286fdb8cfd48eea8d8
7
- data.tar.gz: 566a5070e1b4188414b94bde9a2619bfbebf1fae88ac09f55749e7b15487cdaf140393fdf6c5217acf9e8b374d8300ac1a6ab844aedc8ece86dbbcd31cbf80a6
6
+ metadata.gz: 6164b48d04632a33bd801f303de05fbd77eab91d6611123d80183d19f7b5b934485972883cc3f0e563e1632e8020d2bf229db1d91c53f550cff5c95413b41f6b
7
+ data.tar.gz: e8e6af01a31bc1ffc7c304df523538bd95a58d0e65ffe3cfcbaf63d4fc0791a69d20c5606aed84ba5dbc85df9350796561a8c9d8b57b7b3840360d2c718c1ecb
@@ -30,7 +30,7 @@ after_failure:
30
30
  matrix:
31
31
  fast_finish: true
32
32
  include:
33
- - rvm: 2.6.0
33
+ - rvm: 2.6.4
34
34
  gemfile: gemfiles/no_dependencies.gemfile
35
35
  before_script: ''
36
36
  script:
@@ -93,49 +93,52 @@ matrix:
93
93
  - rvm: 2.5.3
94
94
  gemfile: gemfiles/rails-5.2.gemfile
95
95
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
96
- - rvm: 2.6.0
96
+ - rvm: 2.6.4
97
97
  gemfile: gemfiles/no_dependencies.gemfile
98
98
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
99
- - rvm: 2.6.0
99
+ - rvm: 2.6.4
100
100
  gemfile: gemfiles/capistrano2.gemfile
101
101
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
102
- - rvm: 2.6.0
102
+ - rvm: 2.6.4
103
103
  gemfile: gemfiles/capistrano3.gemfile
104
104
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
105
- - rvm: 2.6.0
105
+ - rvm: 2.6.4
106
106
  gemfile: gemfiles/grape.gemfile
107
107
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
108
- - rvm: 2.6.0
108
+ - rvm: 2.6.4
109
109
  gemfile: gemfiles/padrino.gemfile
110
110
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=1.17.3
111
- - rvm: 2.6.0
111
+ - rvm: 2.6.4
112
112
  gemfile: gemfiles/que.gemfile
113
113
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
114
- - rvm: 2.6.0
114
+ - rvm: 2.6.4
115
+ gemfile: gemfiles/que_beta.gemfile
116
+ env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
117
+ - rvm: 2.6.4
115
118
  gemfile: gemfiles/rails-5.0.gemfile
116
119
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
117
- - rvm: 2.6.0
120
+ - rvm: 2.6.4
118
121
  gemfile: gemfiles/rails-5.1.gemfile
119
122
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
120
- - rvm: 2.6.0
123
+ - rvm: 2.6.4
121
124
  gemfile: gemfiles/rails-5.2.gemfile
122
125
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
123
- - rvm: 2.6.0
126
+ - rvm: 2.6.4
124
127
  gemfile: gemfiles/rails-6.0.gemfile
125
128
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
126
- - rvm: 2.6.0
129
+ - rvm: 2.6.4
127
130
  gemfile: gemfiles/resque.gemfile
128
131
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=1.17.3
129
- - rvm: 2.6.0
132
+ - rvm: 2.6.4
130
133
  gemfile: gemfiles/sequel.gemfile
131
134
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
132
- - rvm: 2.6.0
135
+ - rvm: 2.6.4
133
136
  gemfile: gemfiles/sequel-435.gemfile
134
137
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
135
- - rvm: 2.6.0
138
+ - rvm: 2.6.4
136
139
  gemfile: gemfiles/sinatra.gemfile
137
140
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
138
- - rvm: 2.6.0
141
+ - rvm: 2.6.4
139
142
  gemfile: gemfiles/webmachine.gemfile
140
143
  env: _RUBYGEMS_VERSION=latest _BUNDLER_VERSION=latest
141
144
  - rvm: jruby-19mode
@@ -1,8 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.9.18 (Beta)
4
+ - Bump agent to v-c348132
5
+ - Improve transmitter logging on timeout
6
+ - Improve queued payloads transmitter. Should prevent payloads being sent
7
+ multiple times.
8
+ - Add transaction debug mode
9
+ - Wrap Option in Mutex in TransactionInProgess
10
+
11
+ ## 2.9.17
12
+ - Handle missing file and load errors from `application.rb` in `appsignal
13
+ install` for Rails apps. PR #568
14
+ - Support minutely probes for Puma in clustered mode. PR #570
15
+ See the installation instructions for the Puma plugin:
16
+ https://docs.appsignal.com/ruby/integrations/puma.html
17
+
18
+ ## 2.9.16
19
+ - Check set_error arguments for Exceptions. PR #565
20
+ - Bump agent to v-1d8917f - commit 737d6b1b8fc9cd2c0564050bb04246d9267dceb7
21
+ - Only attempt to send queued payloads if we have a successful transmission.
22
+
23
+ ## 2.9.15
24
+ - Bump agent to v-690f4b8 - commit cf4f3787395c8524079f3bed3b2c2367296482a9
25
+ - Validate transmission_interval option.
26
+
27
+ ## 2.9.14
28
+ - Support mirrors when downloading the agent & extension. PR #558
29
+ - Support Que's upcoming 1.0.0 release. PR #557
30
+
31
+ ## 2.9.13
32
+ - Bump agent to v-e1c9363
33
+ - Detect revision from Heroku dynos automatically when Dyno Metadata is
34
+ turned on.
35
+
3
36
  ## 2.9.12
4
- - Bump agent to a3e0f83
5
- - More reliable detection of whether agent is running on Docker.
37
+ - Bump agent to v-a3e0f83 - commit 3d94dd42645922214fc2f5bc09cfa7c597323198
38
+ - Better detect zombie/defunct processes on containers and consider the
39
+ processes dead. This should improve the appsignal-agent start behavior.
40
+ - Fix Sequel install hook version detection mismatch. PR #553
41
+ - Improve support for older Sidekiq versions. PR #555
6
42
 
7
43
  ## 2.9.11
8
44
  - Bump agent to v-a718022
@@ -5,7 +5,8 @@ require File.expand_path("../lib/appsignal/version", __FILE__)
5
5
  Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength
6
6
  gem.authors = [
7
7
  "Robert Beekman",
8
- "Thijs Cadier"
8
+ "Thijs Cadier",
9
+ "Tom de Bruijn"
9
10
  ]
10
11
  gem.email = ["support@appsignal.com"]
11
12
  gem.description = "The official appsignal.com gem"
@@ -37,10 +38,10 @@ Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength
37
38
  gem.add_dependency "rack"
38
39
 
39
40
  gem.add_development_dependency "rake", "~> 11"
40
- gem.add_development_dependency "rspec", "~> 3.7"
41
+ gem.add_development_dependency "rspec", "~> 3.8"
41
42
  gem.add_development_dependency "pry"
42
43
  gem.add_development_dependency "timecop"
43
44
  gem.add_development_dependency "webmock"
44
45
  gem.add_development_dependency "rubocop", "0.50.0"
45
- gem.add_development_dependency "yard"
46
+ gem.add_development_dependency "yard", ">= 0.9.20"
46
47
  end
@@ -31,7 +31,7 @@ travis: # Default `.travis.yml` contents
31
31
  matrix:
32
32
  fast_finish: true
33
33
  include: # Builds based on the matrix below are added to this list
34
- - rvm: "2.6.0"
34
+ - rvm: "2.6.4"
35
35
  gemfile: "gemfiles/no_dependencies.gemfile"
36
36
  before_script: "" # Unset default: No need to install the extension
37
37
  script:
@@ -49,7 +49,6 @@ matrix:
49
49
  minimal:
50
50
  - "no_dependencies"
51
51
  - "rails-5.2"
52
- - "rails-6.2"
53
52
 
54
53
  ruby:
55
54
  - ruby: "2.0.0"
@@ -66,7 +65,7 @@ matrix:
66
65
  gems: "none"
67
66
  - ruby: "2.5.3"
68
67
  gems: "minimal"
69
- - ruby: "2.6.0"
68
+ - ruby: "2.6.4"
70
69
  - ruby: "jruby-19mode"
71
70
  gems: "minimal"
72
71
  gems:
@@ -77,16 +76,20 @@ matrix:
77
76
  - gem: "padrino"
78
77
  bundler: "1.17.3"
79
78
  - gem: "que"
79
+ - gem: "que_beta"
80
+ exclude:
81
+ ruby:
82
+ - "2.0.0"
80
83
  - gem: "rails-3.2"
81
84
  bundler: "1.17.3"
82
85
  exclude:
83
86
  ruby:
84
- - "2.6.0"
87
+ - "2.6.4"
85
88
  - gem: "rails-4.2"
86
89
  bundler: "1.17.3"
87
90
  exclude:
88
91
  ruby:
89
- - "2.6.0"
92
+ - "2.6.4"
90
93
  - gem: "rails-5.0"
91
94
  exclude:
92
95
  ruby:
@@ -103,6 +106,10 @@ matrix:
103
106
  exclude:
104
107
  ruby:
105
108
  - "2.0.0"
109
+ - "2.1.8"
110
+ - "2.2.4"
111
+ - "2.3.8"
112
+ - "2.4.5"
106
113
  - gem: "resque"
107
114
  bundler: "1.17.3"
108
115
  - gem: "sequel"
@@ -15,14 +15,13 @@ task :default do
15
15
  report["language"]["implementation"] = "jruby"
16
16
  report["build"]["library_type"] = library_type
17
17
  next unless check_architecture
18
- arch_config = AGENT_CONFIG["triples"][ARCH]
19
18
 
20
19
  if local_build?
21
20
  report["build"]["source"] = "local"
22
21
  else
23
- archive = download_archive(arch_config, library_type)
22
+ archive = download_archive(library_type)
24
23
  next unless archive
25
- next unless verify_archive(archive, arch_config, library_type)
24
+ next unless verify_archive(archive, library_type)
26
25
  unarchive(archive)
27
26
  end
28
27
  successful_installation
@@ -1,67 +1,70 @@
1
1
  ---
2
- version: a3e0f83
2
+ version: c348132
3
+ mirrors:
4
+ - https://appsignal-agent-releases.global.ssl.fastly.net
5
+ - https://d135dj0rjqvssy.cloudfront.net
3
6
  triples:
4
7
  x86_64-darwin:
5
8
  static:
6
- checksum: 1c69f3afb99150de620f7ed605e48e4d0e3a3470e996974725dd7038605b28a7
7
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-static.tar.gz
9
+ checksum: cb287c8e2072fe5b8cf14449bd6892989c392d0c651ce339895ae0302cb69785
10
+ filename: appsignal-x86_64-darwin-all-static.tar.gz
8
11
  dynamic:
9
- checksum: f391373750c9fe25a76cb55bfbc5790cf1f1242cb5a6ebbbac92b65c890120fe
10
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-dynamic.tar.gz
12
+ checksum: af1ed2e9d29859ffbfc8e6903e4c51764dee94d7b4877ca8d30270b6f133a10f
13
+ filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
11
14
  universal-darwin:
12
15
  static:
13
- checksum: 1c69f3afb99150de620f7ed605e48e4d0e3a3470e996974725dd7038605b28a7
14
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-static.tar.gz
16
+ checksum: cb287c8e2072fe5b8cf14449bd6892989c392d0c651ce339895ae0302cb69785
17
+ filename: appsignal-x86_64-darwin-all-static.tar.gz
15
18
  dynamic:
16
- checksum: f391373750c9fe25a76cb55bfbc5790cf1f1242cb5a6ebbbac92b65c890120fe
17
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-darwin-all-dynamic.tar.gz
19
+ checksum: af1ed2e9d29859ffbfc8e6903e4c51764dee94d7b4877ca8d30270b6f133a10f
20
+ filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
18
21
  i686-linux:
19
22
  static:
20
- checksum: 5c4e33f0b64c5848a6e755d0e6d8876750d33dcf6f20a4161053ae9be6fd5322
21
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-static.tar.gz
23
+ checksum: 2c3bcd102592bf38fbdb27e7c70502dccbe54a0dc2739a9d54aaa694fcfb41fb
24
+ filename: appsignal-i686-linux-all-static.tar.gz
22
25
  dynamic:
23
- checksum: 13b0871611d81a1f6af2b16f759aaee0fc9d53946e1716ad80ab31709e26dbcb
24
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-dynamic.tar.gz
26
+ checksum: 1c037b8370b755d706340e25d3e4b2f4acb279dd03873cc53bcf0a6ec0832653
27
+ filename: appsignal-i686-linux-all-dynamic.tar.gz
25
28
  x86-linux:
26
29
  static:
27
- checksum: 5c4e33f0b64c5848a6e755d0e6d8876750d33dcf6f20a4161053ae9be6fd5322
28
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-static.tar.gz
30
+ checksum: 2c3bcd102592bf38fbdb27e7c70502dccbe54a0dc2739a9d54aaa694fcfb41fb
31
+ filename: appsignal-i686-linux-all-static.tar.gz
29
32
  dynamic:
30
- checksum: 13b0871611d81a1f6af2b16f759aaee0fc9d53946e1716ad80ab31709e26dbcb
31
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-all-dynamic.tar.gz
33
+ checksum: 1c037b8370b755d706340e25d3e4b2f4acb279dd03873cc53bcf0a6ec0832653
34
+ filename: appsignal-i686-linux-all-dynamic.tar.gz
32
35
  i686-linux-musl:
33
36
  static:
34
- checksum: b90655365fb23cc2f5c6a79056520f4b54004039bdcc286f384e41545ceba8ce
35
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-musl-all-static.tar.gz
37
+ checksum: 0add9eed4452feda7fc5e1bbd0acdff32c353e4ea0b5d527959df57deb1bdcb2
38
+ filename: appsignal-i686-linux-musl-all-static.tar.gz
36
39
  x86-linux-musl:
37
40
  static:
38
- checksum: b90655365fb23cc2f5c6a79056520f4b54004039bdcc286f384e41545ceba8ce
39
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-i686-linux-musl-all-static.tar.gz
41
+ checksum: 0add9eed4452feda7fc5e1bbd0acdff32c353e4ea0b5d527959df57deb1bdcb2
42
+ filename: appsignal-i686-linux-musl-all-static.tar.gz
40
43
  x86_64-linux:
41
44
  static:
42
- checksum: 38681af7ddba4015f29c59dca210f0a71698ddb85f5f014239b0a2d400f9a55f
43
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-all-static.tar.gz
45
+ checksum: d11221c127c00128da16b419c503281407e429c0ea6f5bfe1691640b8e995e4e
46
+ filename: appsignal-x86_64-linux-all-static.tar.gz
44
47
  dynamic:
45
- checksum: b8e2eeccc1d0d49442480dc2484ccd09ef98eeebb6087b6a62a07198ea5745a1
46
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-all-dynamic.tar.gz
48
+ checksum: 6869ab461fde55487d55805c396d55f36cb881998556f44236035b949939b0af
49
+ filename: appsignal-x86_64-linux-all-dynamic.tar.gz
47
50
  x86_64-linux-musl:
48
51
  static:
49
- checksum: a0949cae6b52231033f035a60458081d32825b9c8bf7953c98b85581ee2f31bb
50
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-musl-all-static.tar.gz
52
+ checksum: 7ce44dc23c578933ca37a79d244bc367fdc2438408c2a61558adb92bcfebb1fa
53
+ filename: appsignal-x86_64-linux-musl-all-static.tar.gz
51
54
  dynamic:
52
- checksum: 3c32012d8eab7cdc6d320816ed1ef35f3fa3400ffe714205700e540f67a0e50b
53
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-linux-musl-all-dynamic.tar.gz
55
+ checksum: 78d98f468e3a12cc09baff9e68bc4d9cd3b79f4a3bbe744036bff685415546a4
56
+ filename: appsignal-x86_64-linux-musl-all-dynamic.tar.gz
54
57
  x86_64-freebsd:
55
58
  static:
56
- checksum: ce04f0484def30697300c62b0a0fbdcd4fce34d553848a68775e8aa3d1e901c3
57
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-static.tar.gz
59
+ checksum: df5f8b61e6ecca40f349cf5c83d5f37f031850d367793dee90dc56f13974431d
60
+ filename: appsignal-x86_64-freebsd-all-static.tar.gz
58
61
  dynamic:
59
- checksum: 4ca2de50ee31c21cf3b8f74515822175cc0b0fae070a8d01296e80149592e47b
60
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-dynamic.tar.gz
62
+ checksum: 30d0303e97386014640c5b8194b777a5741e08ab5497ba58a7d8229bd4890fc5
63
+ filename: appsignal-x86_64-freebsd-all-dynamic.tar.gz
61
64
  amd64-freebsd:
62
65
  static:
63
- checksum: ce04f0484def30697300c62b0a0fbdcd4fce34d553848a68775e8aa3d1e901c3
64
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-static.tar.gz
66
+ checksum: df5f8b61e6ecca40f349cf5c83d5f37f031850d367793dee90dc56f13974431d
67
+ filename: appsignal-x86_64-freebsd-all-static.tar.gz
65
68
  dynamic:
66
- checksum: 4ca2de50ee31c21cf3b8f74515822175cc0b0fae070a8d01296e80149592e47b
67
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/a3e0f83/appsignal-x86_64-freebsd-all-dynamic.tar.gz
69
+ checksum: 30d0303e97386014640c5b8194b777a5741e08ab5497ba58a7d8229bd4890fc5
70
+ filename: appsignal-x86_64-freebsd-all-dynamic.tar.gz
@@ -12,6 +12,7 @@ AGENT_CONFIG = YAML.load(File.read(File.join(EXT_PATH, "agent.yml"))).freeze
12
12
 
13
13
  AGENT_PLATFORM = Appsignal::System.agent_platform
14
14
  ARCH = "#{RbConfig::CONFIG["host_cpu"]}-#{AGENT_PLATFORM}".freeze
15
+ ARCH_CONFIG = AGENT_CONFIG["triples"][ARCH].freeze
15
16
  CA_CERT_PATH = File.join(EXT_PATH, "../resources/cacert.pem").freeze
16
17
 
17
18
  def ext_path(path)
@@ -102,31 +103,53 @@ def check_architecture
102
103
  end
103
104
  end
104
105
 
105
- def download_archive(arch_config, type)
106
+ def download_archive(type)
106
107
  report["build"]["source"] = "remote"
107
- if arch_config.key?(type)
108
- download_url = arch_config[type]["download_url"]
109
- report["download"]["download_url"] = download_url
110
- open(download_url, :ssl_ca_cert => CA_CERT_PATH)
111
- else
108
+
109
+ unless ARCH_CONFIG.key?(type)
112
110
  abort_installation(
113
111
  "AppSignal currently does not support your system. " \
114
- "Expected config for architecture '#{ARCH}' and package type '#{type}', but none found. " \
112
+ "Expected config for architecture '#{arch}' and package type '#{type}', but none found. " \
115
113
  "For a full list of supported systems visit: " \
116
114
  "https://docs.appsignal.com/support/operating-systems.html"
117
115
  )
116
+ return
118
117
  end
118
+
119
+ version = AGENT_CONFIG["version"]
120
+ filename = ARCH_CONFIG[type]["filename"]
121
+ attempted_mirror_urls = []
122
+
123
+ AGENT_CONFIG["mirrors"].each do |mirror|
124
+ download_url = [mirror, version, filename].join("/")
125
+ attempted_mirror_urls << download_url
126
+ report["download"]["download_url"] = download_url
127
+
128
+ begin
129
+ return open(download_url, :ssl_ca_cert => CA_CERT_PATH)
130
+ rescue
131
+ next
132
+ end
133
+ end
134
+
135
+ attempted_mirror_urls_mapped = attempted_mirror_urls.map { |mirror| "- #{mirror}" }
136
+ abort_installation(
137
+ "Could not download archive from any of our mirrors. " \
138
+ "Attempted to download the archive from the following urls:\n" \
139
+ "#{attempted_mirror_urls_mapped.join("\n")}\n" \
140
+ "Please make sure your network allows access to any of these mirrors."
141
+ )
119
142
  end
120
143
 
121
- def verify_archive(archive, arch_config, type)
122
- if Digest::SHA256.hexdigest(archive.read) == arch_config[type]["checksum"]
144
+ def verify_archive(archive, type)
145
+ if Digest::SHA256.hexdigest(archive.read) == ARCH_CONFIG[type]["checksum"]
123
146
  report["download"]["checksum"] = "verified"
124
147
  true
125
148
  else
126
149
  report["download"]["checksum"] = "invalid"
127
150
  abort_installation(
128
151
  "Checksum of downloaded archive could not be verified: " \
129
- "Expected '#{arch_config[type]["checksum"]}', got '#{checksum}'."
152
+ "Expected '#{ARCH_CONFIG[type]["checksum"]}', got '#{checksum}'."
130
153
  )
131
154
  end
132
155
  end
@@ -11,14 +11,13 @@ def install
11
11
  report["language"]["implementation"] = "ruby"
12
12
  report["build"]["library_type"] = library_type
13
13
  return unless check_architecture
14
- arch_config = AGENT_CONFIG["triples"][ARCH]
15
14
 
16
15
  if local_build?
17
16
  report["build"]["source"] = "local"
18
17
  else
19
- archive = download_archive(arch_config, library_type)
18
+ archive = download_archive(library_type)
20
19
  return unless archive
21
- return unless verify_archive(archive, arch_config, library_type)
20
+ return unless verify_archive(archive, library_type)
22
21
  unarchive(archive)
23
22
  end
24
23
 
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'que', '1.0.0.beta3'
4
+ if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new("2.1.0")
5
+ gem 'public_suffix', "~> 2.0.0"
6
+ else
7
+ gem 'public_suffix'
8
+ end
9
+
10
+ gemspec :path => '../'
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 6.0.0.beta.1'
3
+ gem 'rails', '~> 6.0.0'
4
4
 
5
5
  gemspec :path => '../'