kubelink 0.1.14 → 0.1.15

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: bf73dbc873d08c80a31219609f1a116fa4827f41b79ace802c1385b9049a5c9f
4
- data.tar.gz: 90c0a761d29dd3ddfed0d3955162f0da85f09b59334858daae2a83efb14e4c6b
3
+ metadata.gz: 708c28fa0b64b000172054f9a7d97a85483290d1a11b8db8d6153557c3ec9681
4
+ data.tar.gz: '0835029225c378529c8fa1d30d3f8b18115337f28cba9db84f1039a35372804d'
5
5
  SHA512:
6
- metadata.gz: 0326b44add7fa9a2a7b18535cc338756288006dd4555c7d977c9a88478e50fcf8dea688776e679a310fad75bf7b6f1d1356cdd651310685ef304863051312121
7
- data.tar.gz: d6aa5a37d584f76f090c2b1b8636cf37e3117a8fe6fadab414f8267bef7016a42898c1ebd732ec24e4b748ee06b7b4032c64e0f451a11e74d0d2fd1681a3a5d1
6
+ metadata.gz: be6198cb87514c2b6c175e084a72939bb6e61a585399a56d1997805cd7afb5bedccaec4b4c90e4eb94017ee8b4e9bf8f489e63a00b917d7320bf7f6128c0ab65
7
+ data.tar.gz: 7223c02677b93ad873cf0038a623d89c2d23147d05df30628d970e16a895b42f08a0d5f490263c23764026cc148470c805f3b1e2540a98de55e89f5be47cfdd9
@@ -1,4 +1,6 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'kubelink/version'
4
6
 
@@ -8,7 +10,7 @@ Gem::Specification.new do |s|
8
10
  s.author = 'Martino di Filippo'
9
11
  s.email = 'difilippo@shaman.xyz'
10
12
  s.homepage = 'https://git.shaman.xyz/shaman/kubelink'
11
- s.summary = %q{Integrate a Rails app with our Kubernetes environment}
13
+ s.summary = 'Integrate a Rails app with our Kubernetes environment'
12
14
  s.license = 'MIT'
13
15
  s.metadata = {
14
16
  'source_code_uri' => 'https://git.shaman.xyz/shaman/kubelink/tree/master'
@@ -16,7 +18,7 @@ Gem::Specification.new do |s|
16
18
 
17
19
  s.required_ruby_version = '>= 2.3.0'
18
20
 
19
- s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ s.files = Dir.chdir(File.expand_path(__dir__)) do
20
22
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
23
  end
22
24
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -24,9 +26,9 @@ Gem::Specification.new do |s|
24
26
 
25
27
  s.add_dependency 'activesupport', '>= 5.1', '< 7'
26
28
  s.add_dependency 'lograge', '~> 0.11.2'
27
- s.add_dependency 'prometheus_exporter', '~> 0.4.16'
29
+ s.add_dependency 'prometheus_exporter', '~> 0.4.17'
28
30
  s.add_dependency 'rails', '>= 5.1', '< 7'
29
- s.add_dependency 'sentry-raven', '~> 2.12.3'
31
+ s.add_dependency 'sentry-raven', '~> 2.13.0'
30
32
 
31
33
  s.add_development_dependency 'bundler', '~> 2.0.2'
32
34
  s.add_development_dependency 'rake', '~> 12.3'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Kubelink
2
4
  class Sentry < Rails::Railtie
3
5
  def self.sentry_dsn
@@ -5,12 +7,12 @@ module Kubelink
5
7
  u = URI.parse(ENV['SENTRY_DSN'])
6
8
  u.password = nil
7
9
  u.to_s
8
- rescue
9
- nil
10
+ rescue StandardError
11
+ nil
10
12
  end
11
13
  end
12
14
 
13
- initializer "kubelink.sentry_integration" do
15
+ initializer 'kubelink.sentry_integration' do
14
16
  ActiveSupport.on_load :action_view do
15
17
  include Helpers
16
18
  end
@@ -27,7 +29,7 @@ module Kubelink
27
29
  include Controller
28
30
  end
29
31
  elsif Rails.env.production? && !defined?(Rake)
30
- throw "This application cannot run in production without setting SENTRY_DSN"
32
+ throw 'This application cannot run in production without setting SENTRY_DSN'
31
33
  end
32
34
  end
33
35
 
@@ -35,13 +37,12 @@ module Kubelink
35
37
  def sentry_include_tag
36
38
  return unless Sentry.sentry_dsn.present?
37
39
 
38
- script = 'https://browser.sentry-cdn.com/5.9.0/bundle.min.js'
40
+ script = 'https://browser.sentry-cdn.com/5.11.0/bundle.min.js'
39
41
 
40
- [ javascript_include_tag(script, crossorigin: :anonymous),
41
- javascript_tag(nonce: true) do
42
- %Q{Sentry.init({ dsn: "#{Sentry.sentry_dsn}" });}.html_safe
43
- end
44
- ].join("\n").html_safe
42
+ [javascript_include_tag(script, crossorigin: :anonymous),
43
+ javascript_tag(nonce: true) do
44
+ %{Sentry.init({ dsn: "#{Sentry.sentry_dsn}" });}.html_safe
45
+ end].join("\n").html_safe
45
46
  end
46
47
  end
47
48
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Kubelink
2
- VERSION = '0.1.14'
4
+ VERSION = '0.1.15'
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubelink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martino di Filippo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2020-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.4.16
53
+ version: 0.4.17
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.4.16
60
+ version: 0.4.17
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rails
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -84,14 +84,14 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 2.12.3
87
+ version: 2.13.0
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 2.12.3
94
+ version: 2.13.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: bundler
97
97
  requirement: !ruby/object:Gem::Requirement