kubelink 0.1.11 → 0.1.16

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: 112e0b27a13c857999d6bc8e6b2a34edb4c5c1f64f88e708351e83452623a446
4
- data.tar.gz: 0af7174dc5a083ec3b841f6c41aa0d07571786232b16f868df38c3790b2ef808
3
+ metadata.gz: e73c99c9d55cad9e9f003f0bc47aeed8cfee3e8047fa19c00a3798dc1eb2f048
4
+ data.tar.gz: 0ac13dc6510d25888995b1776c727ee9ab476a74e7028ed951fd3c75926da27f
5
5
  SHA512:
6
- metadata.gz: 665e84908e98d2c6cef713819ecebd8daacf45d060099d43876c5c5a205ec677b8fcd3414e8af903582b1ecf3cca942372d1d436158485f0dda2fe9c36de9220
7
- data.tar.gz: 7b15e0e8cb5be7b628b8eb2b1a4c8ab61a0b9ffe785288e6dab38ba3e759a7ec5b804aa530e3ce55636ff188eebbd905674c5c31b7cf4e4c2c93c2e0e53dcf91
6
+ metadata.gz: 78d8a8a848a5f23acd0a326b26f24b1f2f5751652002675a8d427bb3d99c78fdab2e96ca8ad41ae556492efceb02d1a03c07c57a4c4b530ba28c10b41923a0c7
7
+ data.tar.gz: cf6d882a07dc989c9536f6e310f20126aefece1422ce82d5a1ca09d4e00b5b56281869c4e2bb661bc558b43e51cd933b9900727d3afa1bfcff771adcd80faed7
@@ -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,18 +18,18 @@ 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) }
23
25
  s.require_paths = ['lib']
24
26
 
25
27
  s.add_dependency 'activesupport', '>= 5.1', '< 7'
26
- s.add_dependency 'lograge', '~> 0.10.0'
27
- s.add_dependency 'prometheus_exporter', '~> 0.4.0'
28
+ s.add_dependency 'lograge', '~> 0.11.2'
29
+ s.add_dependency 'prometheus_exporter', '~> 0.5.3'
28
30
  s.add_dependency 'rails', '>= 5.1', '< 7'
29
- s.add_dependency 'sentry-raven', '~> 2.7'
31
+ s.add_dependency 'sentry-raven', '~> 3.1.1'
30
32
 
31
- s.add_development_dependency 'bundler', '~> 1.16'
32
- s.add_development_dependency 'rake', '~> 10.0'
33
+ s.add_development_dependency 'bundler', '~> 2.0.2'
34
+ s.add_development_dependency 'rake', '~> 12.3'
33
35
  end
@@ -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/4.6.3/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.11'
4
+ VERSION = '0.1.16'
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.11
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martino di Filippo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-10 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.10.0
39
+ version: 0.11.2
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.10.0
46
+ version: 0.11.2
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: prometheus_exporter
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.4.0
53
+ version: 0.5.3
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.0
60
+ version: 0.5.3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rails
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -84,43 +84,43 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '2.7'
87
+ version: 3.1.1
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.7'
94
+ version: 3.1.1
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: bundler
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '1.16'
101
+ version: 2.0.2
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '1.16'
108
+ version: 2.0.2
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rake
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '10.0'
115
+ version: '12.3'
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '10.0'
123
- description:
122
+ version: '12.3'
123
+ description:
124
124
  email: difilippo@shaman.xyz
125
125
  executables: []
126
126
  extensions: []
@@ -147,7 +147,7 @@ licenses:
147
147
  - MIT
148
148
  metadata:
149
149
  source_code_uri: https://git.shaman.xyz/shaman/kubelink/tree/master
150
- post_install_message:
150
+ post_install_message:
151
151
  rdoc_options: []
152
152
  require_paths:
153
153
  - lib
@@ -162,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
- rubygems_version: 3.0.2
166
- signing_key:
165
+ rubygems_version: 3.1.4
166
+ signing_key:
167
167
  specification_version: 4
168
168
  summary: Integrate a Rails app with our Kubernetes environment
169
169
  test_files: []