smpl_prflr 0.0.3 → 0.0.4

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: a849c934abcb8d5c5aff39c0afa470b08ce5bdd55d567e0d30a107448cb72d0d
4
- data.tar.gz: 89014767287aca0f12a948eb397a886072f14944a1256b46b6da7a0e616bc995
3
+ metadata.gz: 4aa1604560c3f6c646b15211198c683537c74896a312c96befbd675caad9c02b
4
+ data.tar.gz: dc74c4b885f3edded7964add212c8a8063714fc6c7bda30c3a0129fb2795bb16
5
5
  SHA512:
6
- metadata.gz: 1a45fba0d3cd6abe515783e94380e972f496e0c2f22fc3f72c0475c3712c1b7dfc3aa8968c32a5616161bbac9e9bacf532626fa683fa80bbb7a7fda749c77340
7
- data.tar.gz: a7d9c830ca1adf59737f1646ba60664530a9828b5f8f2c96a7ed9b289b98c5ec30ffc40ebd02cd60ca330b8518374e6b329ee025d848e1d326114df839ac6ffb
6
+ metadata.gz: 03f4ee75268ef2a8c3870b002d2ddf55f6f217c788f719540ea7f6bc8a469bbd2d5fbcb10484d5654f9867bfe21a46aaa5635d9bb0428ae73863c4b58eaf55cf
7
+ data.tar.gz: 5af5cca8a5e42bbaa947c7f36997a64ddd16f971ee6b07c69ba599aecdd4e26b289b17441c4c538b32dbeeaac6fc274b407e6563b30a4e5063f38014e930a199
data/lib/smpl_prflr.rb CHANGED
@@ -55,15 +55,14 @@ class SmplPrflr
55
55
  # @author KILYA
56
56
  # Profile block of your code
57
57
  # @return [nil]
58
- def p
59
- profiled = ""
58
+ def p(prof: "")
60
59
  result = RubyProf.profile do
61
60
  yield
62
61
  end
63
62
 
64
63
  printer = RubyProf::FlatPrinter.new(result)
65
- printer.print(profiled, min_percent: 0)
66
- @redis.set(:profile, profiled)
64
+ printer.print(prof, min_percent: 0)
65
+ @redis.set(:profile, prof)
67
66
 
68
67
  nil
69
68
  rescue StandardError => e
data/smpl_prflr.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.rubygems_version = '2.7'
8
8
  s.required_ruby_version = '>=2.2'
9
9
  s.name = 'smpl_prflr'
10
- s.version = '0.0.3'
10
+ s.version = '0.0.4'
11
11
  s.executables << 'smpl_prflr'
12
12
  s.license = 'MIT'
13
13
  s.summary = 'Profiler'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smpl_prflr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Kondratev