app_profiler 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app_profiler/profile.rb +3 -0
- data/lib/app_profiler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4342f9415d422d77b172d358f968f9bc6c0ae670364e2ed351c7d1daf7cfcd3f
|
4
|
+
data.tar.gz: 4868b701483cc23fef7dad0432437afe61a65ff4ff5bcd752eec37636f4eeddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3d7f1677cc9f3a645ca23cf5fc2b3125cd498cbaace7640e31aad8b45e8f9c23bda135bf470b105e723cafeb1c0456149618c3268cc9ea5674fe2427b00fe0
|
7
|
+
data.tar.gz: 12189f7de4e869d34939d9c3cdbeeb94d257de0f31c232f2deff2011a879fadc8aaccfde44f9780eec6bd863375f9a098f3c571ed53bc65c9e9825f83be6d96a
|
data/lib/app_profiler/profile.rb
CHANGED
@@ -4,6 +4,7 @@ module AppProfiler
|
|
4
4
|
class Profile
|
5
5
|
INTERNAL_METADATA_KEYS = %i(id context)
|
6
6
|
private_constant :INTERNAL_METADATA_KEYS
|
7
|
+
class UnsafeFilename < StandardError; end
|
7
8
|
|
8
9
|
delegate :[], to: :@data
|
9
10
|
attr_reader :id, :context
|
@@ -70,6 +71,8 @@ module AppProfiler
|
|
70
71
|
Socket.gethostname,
|
71
72
|
].compact.join("-") << ".json"
|
72
73
|
|
74
|
+
raise UnsafeFilename if /[^0-9A-Za-z.\-\_]/.match(filename)
|
75
|
+
|
73
76
|
AppProfiler.profile_root.join(filename)
|
74
77
|
end
|
75
78
|
end
|
data/lib/app_profiler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_profiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gannon McGibbon
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2021-
|
16
|
+
date: 2021-06-09 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activesupport
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
185
|
+
rubygems_version: 3.2.17
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Collect performance profiles for your Rails application.
|