execution_time 0.1.3 → 0.1.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: db79ec20431ed5134a18fb0b21029400df60851760d2bf4e5390d4f22a3d0b69
4
- data.tar.gz: 1f6a6575fba8d55758c9a2a6b591d3084f418b390ef9ec1884e7e67399f7315f
3
+ metadata.gz: fdf5b2936b0ba018e9d552f58a688e42c8fd687d909d7f0ebda250073cb8f65e
4
+ data.tar.gz: b786631413bff61f616d7b178a5ff271b1c58280ad56d540aad64ff0304fae93
5
5
  SHA512:
6
- metadata.gz: 4efa6a6e4482fc17fcdcf8637c2f835e8fddf5f10446f21288bd6da669e66fc20611e2dbe3f2d136d61f42caa833d148727fcb9824f032499a0c9c070d6a751d
7
- data.tar.gz: be78c6409bf4ce01056a367a0921db07a44af8738f242a404949d1654a9e72aae10158b0c9e3db16fd866cb6a3fa81bad6d3ace7b9640bd91a120af46256ad7b
6
+ metadata.gz: 98189559f4ae66c349537799b7e7562c189c427174d86c6481ae6e1b5b23fa73e2d9697d911aa9ec45ea728210aca85be4aba7c4e8372b20dd2ef8a68b2b90e4
7
+ data.tar.gz: a962c753502dac4140d77f0ff2992051ee9875de5c3c79717e805b32aa3a2967a4a0a9e97755001873f21cdafbce729f0490d6d9cdf0164d255515faeadef551
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # ExecutionTime
2
2
 
3
+ [![Listed on OpenSource-Heroes.com](https://opensource-heroes.com/badge-v1.svg)](https://opensource-heroes.com/r/igorkasyanchuk/execution_time)
4
+
3
5
  Monitor execution time and other metrics directly in `rails console`, similar to what you see after each request.
4
6
 
5
7
  `[METRICS] Completed in 908.3ms | Allocations: 2894 | ActiveRecord: 0.9ms (queries: 13)`
@@ -54,3 +56,6 @@ You are welcome to contribute.
54
56
 
55
57
  ## License
56
58
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
59
+
60
+ [<img src="https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/more_gems.png?raw=true"
61
+ />](https://www.railsjazz.com/?utm_source=github&utm_medium=bottom&utm_campaign=execution_time)
@@ -1,3 +1,3 @@
1
1
  module ExecutionTime
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
@@ -72,7 +72,7 @@ module ExecutionTime
72
72
  module IrbContextExt
73
73
  def evaluate(*args)
74
74
  Measurer.watch do
75
- if RUBY_VERSION.to_s =~ /^3/
75
+ if RUBY_VERSION.to_s =~ /^3/ && !args[2].nil?
76
76
  super(args[0], args[1], **args[2])
77
77
  else
78
78
  super(*args)
@@ -99,4 +99,4 @@ module ExecutionTime
99
99
  super(code)
100
100
  end
101
101
  end
102
- end
102
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execution_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-09 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: irb
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  description: Measure execution time in Rails console
42
70
  email:
43
71
  - igorkasyanchuk@gmail.com
@@ -71,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
99
  - !ruby/object:Gem::Version
72
100
  version: '0'
73
101
  requirements: []
74
- rubygems_version: 3.2.3
102
+ rubygems_version: 3.4.13
75
103
  signing_key:
76
104
  specification_version: 4
77
105
  summary: Measure execution time in Rails console